From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Two rotates on the same line
Date: Wed, 17 Aug 2011 14:19:20 +0200 [thread overview]
Message-ID: <4E4BB1C8.4080605@gmx.net> (raw)
In-Reply-To: <CAG-LmmA9iVqPTtmOXgCDMw+FUYiOugO3Wso0SEkWyUAn+Zmu5w@mail.gmail.com>
Am 17.08.2011 13:30, schrieb Cecil Westerhof:
> 2011/8/17 Peter Rolf <indiego@gmx.net <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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-08-17 12:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-17 10:40 Cecil Westerhof
2011-08-17 10:51 ` Peter Rolf
2011-08-17 10:54 ` Peter Rolf
2011-08-17 11:30 ` Cecil Westerhof
2011-08-17 12:19 ` Peter Rolf [this message]
2011-08-17 12:59 ` Hans Hagen
2011-08-22 12:36 ` Peter Münster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E4BB1C8.4080605@gmx.net \
--to=indiego@gmx.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).