ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two rotates on the same line
@ 2011-08-17 10:40 Cecil Westerhof
  2011-08-17 10:51 ` Peter Rolf
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-08-17 10:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 333 bytes --]

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?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 394 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 10:40 Two rotates on the same line Cecil Westerhof
@ 2011-08-17 10:51 ` Peter Rolf
  2011-08-17 10:54   ` Peter Rolf
  2011-08-17 12:59 ` Hans Hagen
  2011-08-22 12:36 ` Peter Münster
  2 siblings, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2011-08-17 10:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
to you :-)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 10:51 ` Peter Rolf
@ 2011-08-17 10:54   ` Peter Rolf
  2011-08-17 11:30     ` Cecil Westerhof
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2011-08-17 10:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 :-)
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 10:54   ` Peter Rolf
@ 2011-08-17 11:30     ` Cecil Westerhof
  2011-08-17 12:19       ` Peter Rolf
  0 siblings, 1 reply; 7+ messages in thread
From: Cecil Westerhof @ 2011-08-17 11:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1294 bytes --]

2011/8/17 Peter Rolf <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. :-{

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.}
    }


-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1764 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 11:30     ` Cecil Westerhof
@ 2011-08-17 12:19       ` Peter Rolf
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Rolf @ 2011-08-17 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 10:40 Two rotates on the same line Cecil Westerhof
  2011-08-17 10:51 ` Peter Rolf
@ 2011-08-17 12:59 ` Hans Hagen
  2011-08-22 12:36 ` Peter Münster
  2 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2011-08-17 12:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 17-8-2011 12:40, Cecil Westerhof wrote:
> 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:
>      /\

see other mails

you can also set 'location' to one of

depth fit broad high middle default

an example from the source:

% \dostepwiserecurse{0}{360}{10}
%   {\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}

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Two rotates on the same line
  2011-08-17 10:40 Two rotates on the same line Cecil Westerhof
  2011-08-17 10:51 ` Peter Rolf
  2011-08-17 12:59 ` Hans Hagen
@ 2011-08-22 12:36 ` Peter Münster
  2 siblings, 0 replies; 7+ messages in thread
From: Peter Münster @ 2011-08-22 12:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Aug 17 2011, Cecil Westerhof wrote:

> 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?

\starttext
\dontleavehmode
\rotate[rotation=42]{Tekst kan ook worden geroteerd.}
\rotate[rotation=-42]{In elke richting die je maar wilt.}
\stoptext

-> http://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F

-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-22 12:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-17 10:40 Two rotates on the same line 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
2011-08-17 12:59 ` Hans Hagen
2011-08-22 12:36 ` Peter Münster

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).