Difference between revisions of "Scaling Rotating Mirroring Clipping"
Jump to navigation
Jump to search
m (Oops; missed one!) |
|||
Line 17: | Line 17: | ||
<code>\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. | <code>\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. | ||
− | {{ | + | <texcode> |
+ | \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, `and | ||
+ | what is the use of a book,' thought Alice `without pictures or conversation?'}} | ||
+ | </texcode> | ||
+ | |||
+ | |||
+ | <context> | ||
+ | \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, `and | ||
+ | what is the use of a book,' thought Alice `without pictures or conversation?'}} | ||
+ | </context> | ||
== \rotate == | == \rotate == |
Revision as of 18:07, 19 October 2005
In core-mis.tex there are some handy command for graphical text manipulation defined.
\scale
TODO: An explanation and example of the \\scale command. (See: To-Do List) |
\mirror
There is a \mirror{\sl mirorred} word in this sentence.
\mirror
makes a \hbox
and mirrors the contents. If you want to have a longer paragraph mirrored, you have to make a \vbox
manually.
\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, `and what is the use of a book,' thought Alice `without pictures or conversation?'}}
\rotate
You can rotate something by an arbitrary angle by saying something like
\rotate[rotation=42]{the ultimate answer}
.
.
The rotation angle and the location (which determines around which point the content is rotated) are optional and can also be set by
\setuprotate[rotation=42,location=normal] % normal is the default \rotate{the ultimate answer}
An example by Hans Hagen showing the influence of location=
argument at different angles:
\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}
You can rotate a long paragraph as well.
TODO: Some more comments, and an example. (See: To-Do List) |
Depending on the usage you will sometimes probably want to include the content of what you wish to rotate into a box. Compare the following two examples:
\setuplayout[width=3cm] \setuprotate[rotation=180,location=broad] a\rotate{e}i\par a\rotate{\hbox{e}}i
\crop
TODO: (defined in another file) (See: To-Do List) |