Changes
Jump to navigation
Jump to search
Scaling Rotating Mirroring Clipping (view source)
Revision as of 21:45, 2 December 2005
, 21:45, 2 December 2005→\scale
== \scale ==
You can insert symbols at a reduced size in the text flow. This example creates a filled square scaled to .5 ex height
<texcode>
\definefontsynonym[Dingbats][uzdr]
\definesymbol[filledSq][\getglyph{Dingbats}{\char110}]
\def\FilledSquare%
{\dontleavehmode\scale[height=0.5ex]{\symbol[filledSq]}}
</texcode>
In TeX terms, \scale creates a \hbox. If TeX is in vertical
mode (as it is when \startlines is in effect, because every line
is a paragraph by itself in the mode), then a simple \hbox is
not a good enough hint to make it switch to horizontal (paragraph)
mode.
{{todo|An explanation and example of the <cmd>\scale</cmd> command.}}