So, I can't think of a state that would allow you to keep anything but your legal name on your paperwork for your license, but your display name can be different depending on how the state deals with it (AZ being one of them). I think the school has a similar relationship where you do actually have to use your legal name in paperwork, but your projected name can be a preference.
As for the authorship above, yes, that does happen, but it does give the perception that it will become a self-fulfilling prophecy and it's kind of known now unlike the last generation. Most hyphenate their names for that reason rather than publish with the maiden name.