Thank you,

I will test it and I suppose your solution will work. But I think that
simple TeX-only solution should work too. Maybe I am a bit foolish :-) if I
try to do things as simple as possible and if I try to use thing with
understanding them...

The behaviour surprised me and as I did not expect it, I discussed it here.
And sure, if it is a feature, I really should use \tbox :-)

Have a nice day,

Martin

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Guy Worthington
> Sent: Wednesday, March 05, 2003 8:29 AM
> To: [EMAIL PROTECTED]
> Subject: [NTG-context] Re: Using command in section
>
>
> Martin Kolar�k wrote:
>
> > I'm using private macro for title of section:
>
> Sometimes I get so cross with ConTeXt, and that's because, like you,
> when stuck, I run to "The TeXbook" and not to "ConTeXt the manual".
>
> Only a fortnight ago, I was facing your exact problem and wasted
> several hours making a solution for a non-existant problem.  So, in
> the hope that you can profit from my bitter experience, here's what I
> advice:
>
>   1) Go to the ConTeXt manual,
>
>   2) Look up '\setuphead' in the index,
>
>   3) Encapsulated within the handful of pages, following the index
>      reference, is the solution to your exact problem laid out, step
>      by step.  (It's also a good introduction into the methodology
>      used in the ConTeXt interface.)
>
> I'm only guessing that you want your section header looking like:
>
>    X     The Quick Brown
>          Fox Jumped Over
>          The Lazy Dog
>
> and using that assumption, I had a go at translating that into ConTeXt
>
> -----
>
> \setuphead[section]
>         [command=\doTitle]
>
> %% \def\doTitle#1#2{%
> %%   \vbox to 0pt{
> %%     \hsize=3cm
> %%     \hbox{\vtop{#1}\raise\lineheight\vtop{#2}}
> %%     \vss}}
>
> \def\doTitle#1#2{%
>   \hbox to 3cm \bgroup
>     \hfill
>     \setupframed [offset=.5em, frame=off]
>     \tbox{\framed [width=1.5cm, align=right]{#1}}%
>     \tbox{\framed [width=3cm, align=right]{#2}}%
>   \egroup}
>
> \starttext
>
> \section A Day in the Life of the Quick Brown Fox
>
> \stoptext
>
> ------
>
> _______________________________________________
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to