Re: [NTG-context] style for section
Thomas A. Schmitz wrote: > On Mar 1, 2007, at 8:54 PM, Thomas A. Schmitz wrote: > > >> Taco, >> >> thanks! This made me experiment with my file again, and it turned out >> there is some strange interference because I have defined a command >> in \setuphead[section]. When I comment it out, I get the output I >> want. I'll do some more experiments and will report back. >> >> Thanks >> >> Thomas >> >> > > OK, after some more experiments: it looks like I can't have a > command= AND a \hfill in my sections. I have something like > > \setuphead > [section] > [command=\incrementSlideNumber, > page=yes, > ] > > in my definition. If I comment the command= line out or put a \ in > front of the comma at the end, the section title looks the way I > want, but the command does (of course) not work any longer. If I have > the command, the \hfill is not honored. Strange, but I can live with it. > has to do with being in vertical or horizontal mode; also keep in mind that section heads are to take care of lists, marks, refs as well, so the underlying code is somewhat messy and complex grep for \defineheadplacement in core-sec ... you can implement your own variants Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [email protected] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style for section
On Thu, 1 Mar 2007, Thomas A. Schmitz wrote:
>
> On Mar 1, 2007, at 8:54 PM, Thomas A. Schmitz wrote:
>
>> Taco,
>>
>> thanks! This made me experiment with my file again, and it turned out
>> there is some strange interference because I have defined a command
>> in \setuphead[section]. When I comment it out, I get the output I
>> want. I'll do some more experiments and will report back.
>>
>> Thanks
>>
>> Thomas
>>
>
> OK, after some more experiments: it looks like I can't have a
> command= AND a \hfill in my sections. I have something like
>
> \setuphead
>[section]
>[command=\incrementSlideNumber,
> page=yes,
> ]
>
> in my definition. If I comment the command= line out or put a \ in
> front of the comma at the end, the section title looks the way I
> want, but the command does (of course) not work any longer. If I have
> the command, the \hfill is not honored. Strange, but I can live with it.
Can you provide some more details? This works fine here
\setuphead[section][command=\mycommand]
\def\mycommand#1#2{\framed[width=0.8\textwidth]{#1#2}}
\starttext
\section{ABC\hfill DEF}
\stoptext
Aditya
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style for section
On Mar 1, 2007, at 8:54 PM, Thomas A. Schmitz wrote: > Taco, > > thanks! This made me experiment with my file again, and it turned out > there is some strange interference because I have defined a command > in \setuphead[section]. When I comment it out, I get the output I > want. I'll do some more experiments and will report back. > > Thanks > > Thomas > OK, after some more experiments: it looks like I can't have a command= AND a \hfill in my sections. I have something like \setuphead [section] [command=\incrementSlideNumber, page=yes, ] in my definition. If I comment the command= line out or put a \ in front of the comma at the end, the section title looks the way I want, but the command does (of course) not work any longer. If I have the command, the \hfill is not honored. Strange, but I can live with it. All best Thomas ___ ntg-context mailing list [email protected] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style for section
On Mar 1, 2007, at 7:36 PM, Taco Hoekwater wrote:
>
> The section title does not have more than one line. This looks ok, but
> is quite ugly input:
>
>\section{April 4 \hfill Title of chapter\break}
>
> But that could be hidden inside a deeptextcommand, of course
>
> Cheers, Taco
Taco,
thanks! This made me experiment with my file again, and it turned out
there is some strange interference because I have defined a command
in \setuphead[section]. When I comment it out, I get the output I
want. I'll do some more experiments and will report back.
Thanks
Thomas
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style for section
Thomas A. Schmitz wrote:
> Hi all,
>
> this sounds easy, but I can't seem to find a solution. I want my
> section headers to look like so:
>
> 1. April 4 Title of chapter
>
> i.e. have the title right aligned. I thought this should be as simple as
>
> \section{April 4 \hfill Title of chapter}
>
> but alas, no, it's always flush left. Is there an obvious solution
> I'm overlooking?
The section title does not have more than one line. This looks ok, but
is quite ugly input:
\section{April 4 \hfill Title of chapter\break}
But that could be hidden inside a deeptextcommand, of course
Cheers, Taco
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context
