How latex Formats Names
Description
Examples
When latex processes a Maple object of type name it makes various tests to see if special processing is desirable. This allows LaTeX to produce standard mathematical output in most situations.
On encountering a name, latex first tests to see if the given name refers to an entry in the table latex/special_names. If so, that entry's value is used. This is how Pi is converted to pi, for example.
Next, latex checks to see if the given name is contained in the set latex/greek. If it is, then a backslash is prepended to its value. This allows names like "alpha" and "beta" to be printed as Greek symbols.
Then, latex checks to see if the given name is contained in the set latex/mathops. If it is, then a backslash is prepended to its value. This allows function names like "log" and "cos" to be printed correctly without further processing.
The fonts used by latex are controlled by two variables: latex/csname_font, which is initially set to \it, and latex/verbatim_font, which is initially set to \tt. The former is used for printing multi-character names that do not require back-quoting; the latter is used for those names that do.
The latex command searches for special function formatting rules before it searches for special name formatting rules. See latex/functions for more information.
latex⁡3⁢πI
-3\,i\pi
latex⁡Total_profit⁢Rate
{\it Total\_profit}\,{\it Rate}
latex⁡Γ⁡xγ+ψβ
{\frac {\Gamma \left( x \right) }{\gamma}}+{\frac {\psi}{\beta}}
See Also
latex
latex/functions
Download Help Document
What kind of issue would you like to report? (Optional)