Special characters: Difference between revisions

m
→‎{{header|LaTeX}}: Spacing, missing required lines to compile.
(Updated to Nim 1.4. Replaced "openFile" with "open".)
m (→‎{{header|LaTeX}}: Spacing, missing required lines to compile.)
Line 1,105:
To make some of these characters appear literally in output, prefix the character with a \. For example, to typeset 5% of $10 you would type
 
<lang latexLaTeX>5\% of \$10</lang>documentclass{minimal}
\begin{document}
5\% of \$10
\end{document}</lang>
 
Note that the set of special characters in LaTeX isn't really fixed, but can be changed by LaTeX code. For example, the package <tt>ngerman</tt> (providing German-specific definitions, including easier access to umlaut letters) re-defines the double quote character (") as special character, so you can more easily write German words like "hören" (as <tt>h"oren</tt> instead of <tt>h{\"o}ren</tt>).