Question: is a yearbook a legal document?
Answer: Diploma, year book, and other school related documents can be in your chosen name. There's no legal reason they can't let you use whatever name you want. A yearbook is definitely not a legal document.