This site is supported by donations to The OEIS Foundation.

Template:TeX

From OeisWiki
Jump to: navigation, search

TeX


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

Usage

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

or

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

where the absolute value only is considered.

Examples

Examples with valid parameters:

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

Examples with invalid parameters:

Code Result
{{TeX|200%}} TeX error: Scaling factor must be a percentage (without the % sign) as real number
{{TeX|2.0ex}} TeX error: Scaling factor must be a percentage (without the % sign) as real number
{{TeX|200px}} TeX 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}}} ) }}%;"><!--
-->T<span style{{=}}"margin-left: -0.1667em; vertical-align: -0.5ex; margin-right: -0.125em; text-transform: uppercase;"><!--
-->e</span><!--
-->X</span>
| {{error|TeX 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}

See also