Am 17.08.2011 13:30, schrieb Cecil Westerhof:
2011/8/17 Peter Rolf
mailto:indiego@gmx.net> Am 17.08.2011 12:51, schrieb Peter Rolf: > Am 17.08.2011 12:40, schrieb Cecil Westerhof: >> I am still expanding my knowledge of ConTeXt. At the moment I am playing >> with \rotate. When using: >> \rotate[rotation=42]{Tekst kan ook worden geroteerd.} >> \rotate[rotation=-42]{In elke richting die je maar wilt.} >> >> This is displayed as: >> / >> \ >> >> I would like it displayed as: >> /\ >> >> How can I do that? >> > > 0° lies on the right (W), rotation is counter clockwise. The rest is up ^^^^ East :-D
> to you :-)
You lost me. :-{
Tried it and now I see the problem. Sorry for confusing you. :-)
When playing with it, I found that it seems like every rotation wants its own vertical space.
But this is only the case when the rotation is the first thing to be printed on the line. So I changed it to: \ \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.}
and because it is nicer to have it centered: \midaligned{ \ \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.} }
\starttext \showboxes \midaligned{ \rotate[location=,rotation=42]{A really loooooonng text..} \rotate[location=,rotation=-42]{Short.} } \newbox\MYboxA \newbox\MYboxB \newdimen\MYdimA \setbox\MYboxA\hbox{A really loooooong text..} \setbox\MYboxB\hbox{Short.} \ifdim\wd\MYboxA>\wd\MYboxB \MYdimA\wd\MYboxA \else \MYdimA\wd\MYboxB \fi \midaligned{ \rotate[rotation=42]{\hbox to \MYdimA{\box\MYboxA}} \rotate[rotation=-42]{\hbox to \MYdimA{\box\MYboxB}} } \stoptext HTH, Peter
-- Cecil Westerhof
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________