Changes

Jump to navigation Jump to search
== \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.}}
Anonymous user

Navigation menu