This site is supported by donations to The OEIS Foundation.

Template:LaTeX

From OeisWiki
Jump to: navigation, search

LaTeX


The {{LaTeX}} graphic template is a HTML/CSS implementation of the LaTeX logo.

Usage

{{LaTeX}} (to get default 100% scaling factor, i.e. text size)

or

{{LaTeX|scaling percentage (without the % sign) as real number}}

where the absolute value only is considered.

Examples

Examples with valid parameters:

Code Result
{{LaTeX|0}} LaTeX
{{LaTeX|50}} LaTeX
{{LaTeX}} LaTeX
{{LaTeX|100}} LaTeX
{{LaTeX|200}} LaTeX
{{LaTeX|-200}} LaTeX
{{LaTeX|300}} LaTeX

Examples with invalid parameters:

Code Result
{{LaTeX|200%}} LaTeX error: Scaling factor must be a percentage (without the % sign) as real number
{{LaTeX|2.0ex}} LaTeX error: Scaling factor must be a percentage (without the % sign) as real number
{{LaTeX|100px}} LaTeX error: Scaling factor must be a percentage (without the % sign) as real number

Code

<noinclude>{{Documentation}}</noinclude><includeonly>{{ifnum| {{{1|100}}} <!-- % -->
| <span class{{=}}"texhtml" style{{=}}"font-family: cmr10, LMRoman10-Regular, Times, serif; font-size: {{expr| abs ( {{{1|100}}} ) }}%;"><!--
-->L<span style{{=}}"text-transform: uppercase; font-size: 70%; margin-left: -0.36em; vertical-align: 0.3em; margin-right: -0.15em;"><!--
-->a</span><!--
-->T<span style{{=}}"text-transform: uppercase; margin-left: -0.1667em; vertical-align: -0.5ex; margin-right: -0.125em;"><!--
-->e</span><!--
-->X</span>
| {{error|LaTeX error: Scaling factor must be a percentage (without the % sign) as real number }} 
}}</includeonly>

TeX code

It is defined in plain TeX by

    \def\TeX{ T \kern -.1667em \lower .5ex \hbox{E} \kern -.125em X \@}
 
    \DeclareRobustCommand{\LaTeX}{L \kern -.36em%
        {\sbox\z@ T%
         \vbox to\ht\z@{\hbox{\check@mathfonts
                              \fontsize\sf@size\z@
                              \math@fontsfalse\selectfont
                              A}%
                        \vss}%
        }%
        \kern-.15em%
    \TeX}

See also