I know it's not a good habit to write latex this way, But just wonder why \textbf\& is the same as \textbf{\&}, while \textbf\"o is not the same as \textbf{\"o}?
|
|
|||
|
|
|
Others have answered most of your question so I will restrict to why you don't get an error with
It's instructive to go
The first one to make sure the bold fonts are set up before you turn on tracing, and the second one with tracing set, then look in the log file and you will see macros expand: After checking to see what font setup is going to be used to get the accent (OT1 in the default case) TeX finally gets to:
So the argument to So the answer to why this doesn't generate an error is basically just luck (or lack of luck, depending on your point of view) |
|||
|
|
|
|
|||||||||||
|
|
Expanding on Gonzalo's correct answer. TeX operates on tokens scanning them one by one (in normal operations). In
The syntax rules of TeX specify that when a command has an argument (which is the case for
Therefore with On the other hand, in Always use braces for commands with arguments (unless you belong to the category of ninja programmers who are supposed to know what they're doing) and you'll be OK. |
|||||
|
|
|
|||
|
|
