Changes

Jump to navigation Jump to search
You can rotate something by an arbitrary angle by saying something like
<texcodecontext source=yes>
\rotate[rotation=42]{the ultimate answer}
</texcode>.<context>\rotate[rotation=42]{the ultimate answer}</context>.
The rotation angle and the location (which determines around which point the content is rotated) are optional and can also be set by
 <texcodecontext source=yes>
\setuprotate[rotation=42,location=normal] % normal is the default
\rotate{the ultimate answer}
</texcodecontext>
An example by Hans Hagen showing the influence of <code>location=</code> argument at different angles:
<texcodecontext source=yes>
\dostepwiserecurse{0}{359}{45}
{\startlinecorrection[blank]
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] {\ruledhbox{\bfb (high)}}}}}
\stoplinecorrection}
</texcodecontext>
<context>
\setuplayout[location=middle,scale=.5]
\dostepwiserecurse{0}{359}{45}
{\startlinecorrection[blank]
\hbox
{\expanded{\setuprotate[rotation=\recurselevel]}%
\traceboxplacementtrue
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] {\ruledhbox{\bfb (depth)}}}}%
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] {\ruledhbox{\bfb (fit)}}}}%
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] {\ruledhbox{\bfb (broad)}}}}%
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb (normal)}}}}%
\hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] {\ruledhbox{\bfb (high)}}}}}
\stoplinecorrection}
</context>
You can rotate a long paragraph as well.
303

edits

Navigation menu