This site is supported by donations to The OEIS Foundation.
Template:AmS/doc
AMS-LaTeX
The {{AmS}} graphic template tentative goal is to obtain an HTML+CSS implementation of the AMS-TeX and AMS-LaTeX logos.
Do not use this template: we can't reliably access the proper mathcal (math calligraphic) typeface for AMS, since the required typeface might not be installed. (The calligraphic typeface used in this template is not quite the right one.)
Usage
- {{AmS}} (to get default 100% scaling factor, i.e. text size)
or
- {{AmS|scaling percentage (without the % sign) as real number}}
where the absolute value only is considered.
Test
Compare {{AmS}}-{{TeX}} and {{AmS}}-{{LaTeX}} yielding the HTML+CSS
- AMS-TeX and AMS-LaTeX
with [[Image:AMS-LaTeX.svg|70px|\AmS-\LaTeX]] (which uses the proper calligraphic typeface for AMS)
Examples
Examples with valid parameters:
Code Result {{AmS|0}} AMS {{AmS|50}} AMS {{AmS}} AMS {{AmS|100}} AMS {{AmS|200}} AMS {{AmS|-200}} AMS {{AmS|300}} AMS
Examples with invalid parameters:
Code Result {{AmS|200%}} AmS error: Scaling factor must be a percentage (without the % sign) as real number {{AmS|2.0ex}} AmS error: Scaling factor must be a percentage (without the % sign) as real number {{AmS|100px}} AmS error: Scaling factor must be a percentage (without the % sign) as real number
Code
<noinclude>{{Documentation}}</noinclude><includeonly><!-- {{mathcal|...}} doesn't yield quite the right calligraphic typeface for AMS. -->{{ifnum| {{{1|100}}} <!-- % --> | <span class{{=}}"texhtml" style{{=}}"font-size: {{expr| abs ( {{{1|100}}} ) }}%;"><!-- -->{{mathcal|A}}<span style{{=}}"text-transform: uppercase; margin-left: -0.1667em; vertical-align: -0.5ex; margin-right: -0.125em;"><!-- -->{{mathcal|M}}</span><!-- -->{{mathcal|S}}</span> | {{error|AmS error: Scaling factor must be a percentage (without the % sign) as real number }} }}</includeonly>
TeX code
The \AmS
command is defined in plain TeX by
See also
- TeX
- {{TeX}} — TeX graphic template
- LaTeX
- {{LaTeX}} — LaTeX graphic template
- LaTeX2e
- {{LaTeX2e}} — LaTeX2ε graphic template