Changes

Jump to navigation Jump to search
More description, better formatting, a few command links, deleted MkII hints
=Scaling=
You The {{cmd|scale}} command is all-purpose, you can scale by factors or to a defined size. As a special case, you can insert symbols at a reduced size in the text flowusing {{cmd|getscaledglyph}}.
<context source=yes>
\getscaledglyph{.5}{Serif}{a} a \getscaledglyph{2}{Serif}{a}
</context>
 
= Mirroring =
</context>
<code>\{{cmd|mirror</code> }} makes a <code>\hbox</code> and mirrors the contents. If you want to have a longer paragraph mirrored, you have to make a <code>\vbox</code> manually.
<context source=yes>
\mirror{\vbox{Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do:
once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, `\quote{and what is the use of a book,' } thought Alice `\quote{without pictures or conversation?'}}}
</context>
= Rotating =
You can {{cmd|rotate }} something by an arbitrary angle by saying something like  
<context source=yes>
\rotate[rotation=42]{the ultimate answer}
\rotate{the ultimate answer}
</context>
 
<context source=yes>
\ss Next generation L\rotate{m}\rotate{m}TSP3Al\rotate[rotation=270,location=high]{v}?
</context>
 
You can rotate a long paragraph as well.
==Location parameter==
An example by Hans Hagen showing the The influence of <code>location=</code> argument at different angles:
<context source=yes>
\stoplinecorrection}
</context>
 
You can rotate a long paragraph as well.
=== Rotating Figures ===
==Page dependent landscape figures==
Sometimes, in a double-sided portrait document, you may wish to rotate a landscape figure so that the top is towards the spine of the book – no matter whether it's it’s on an odd or even page. In this case the {{cmd|doifoddpageelse}} command can help:
<texcode>
</context>
The example shows only the case “split into a grid of parts“; it’s also possible to cut out a piece by measures;see also {{cmd|setupclipping}} and {{cmd|clip}}.
=Further reading=
In [https://source.contextgarden.net/tex/context/base/mkii/core-mis.mkii core-mis.mkii] (for MkII), there are some handy commands for graphical text manipulation defined. In MkIV, graphic Graphic transformations are implemented in [https://source.contextgarden.net/tex/context/base/mkiv/grph-trf.mkiv grph-trf.mkiv] and [https://source.contextgarden.net/tex/context/base/mkiv/grph-trf.lua grph-trf.lua].
[[Category:Basics]]
[[Category:Graphics]]

Navigation menu