Difference between revisions of "Command/rotate"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \rotate") |
(add example of location settings) |
||
Line 16: | Line 16: | ||
More info at [[Scaling_Rotating_Mirroring_Clipping#Rotating|Rotating]].</cd:description> | More info at [[Scaling_Rotating_Mirroring_Clipping#Rotating|Rotating]].</cd:description> | ||
− | <cd:examples><cd:example title=""><context source="yes"> | + | <cd:examples><cd:example title="Simple example"><context source="yes"> |
\setuppapersize[A5] | \setuppapersize[A5] | ||
− | \input zapf | + | \input zapf |
− | \rotate[rotation=45,frame=on,offset=2pt]{Hello world!} | + | \rotate[rotation=45,frame=on,offset=2pt]{Hello world!} |
\input ward | \input ward | ||
+ | </context></cd:example><cd:example title="Different <tt>location</tt> settings"><context> | ||
+ | \useMPlibrary[dum] | ||
+ | \start\setupexternalfigures[width=4em,height=3em,frame=on,]\ss\bf | ||
+ | \hbox{\doloopoverlist{˚,normal,depth,fit,broad,high,middle}{\inframed[width=4.25em,frame=off]{\recursestring}}}\par | ||
+ | \dostepwiserecurse{0}{359}{45}{\hbox{\inframed[width=3em,frame=off,align=flushright]{\recurselevel˚}\quad | ||
+ | \doloopoverlist{normal,depth,fit,broad,high,middle}{ | ||
+ | \ruledhbox{% | ||
+ | \rotate[rotation=\recurselevel, location=\recursestring]{% | ||
+ | \externalfigure[\recursestring] | ||
+ | }% | ||
+ | }% | ||
+ | }}\par | ||
+ | } | ||
+ | \stop | ||
</context></cd:example></cd:examples> | </context></cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> |
Latest revision as of 15:23, 12 August 2022
Contents
\rotate
Summary
The command \rotate is used to rotate an object.
Settings
Description
With
\rotate
it is possible to rotate an element.
More info at Rotating.
Examples
Simple example
\setuppapersize[A5] \input zapf \rotate[rotation=45,frame=on,offset=2pt]{Hello world!} \input ward
Different location settings