> On 25 Jun 2021, at 21:15, ntg-context-requ...@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
>       ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>       ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>       ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
> 
>   1. Re: Align in setup header/footer (Jan U. Hasecke)
>   2. First line of larger font paragraph on grid (denis.ma...@unibe.ch)
>   3. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   4. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   5. Re: Align in setup header/footer (Jan U. Hasecke)
> 
> From: "Jan U. Hasecke" <juh+ntg-cont...@mailbox.org>
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:23:24 AEST
> To: <ntg-context@ntg.nl>
> 
> 
> 
> Hi Denis,
> 
> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>> Or, for more complex footers/headers you can use:
>> \setupfootertexts
>>     [left on odd page] % out
>>     [right on odd page] % in
>>     [right on even page] % in
>>     [left on even page] % out
> 
> In fact it is something like this
> 
> \setupfootertexts
>  [margin]
>  []
>  [\pagenumber]
>  [\pagenumber]
>  []
> 
> I want to align the number inside of this area to the right or the left 
> respectively.
> 
> I only found setuplayouttext to style the area, except that there is no key 
> "align".
> 
> juh
> 
> 
> 
> 
> From: <denis.ma...@unibe.ch>
> Subject: [NTG-context] First line of larger font paragraph on grid
> Date: 25 June 2021 at 20:30:29 AEST
> To: <ntg-context@ntg.nl>
> 
> 
> Hi, 
>  
> I have some text in a larger font where the first line should be on the grid. 
> Therefore, I’ve tried to adapt the solution from the wiki: 
> https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid
>  
> The interesting thing is that the section command indeed places the first 
> line on the grid, but using \framed directly does not give the desired 
> results.
>  
> I must be missing something obvious. Does anyone know a solution ?
>  
> Thanks for your help,
> Denis
>  
> ===================================
> \setuplayout[grid=yes]
> \showgrid
>  
> \definefont  [BigFont]  [Bold at 20pt] [24pt]
>  
> \unprotect
> \unexpanded\def\section_command#1#2{%
>   \framed [
>        width=\textwidth,
>                    frame=off,
>                    rulethickness=0pt,
>                    offset=0pt,
>                    loffset=-0pt,
>        before=,
>        location=top,
>        align=flushleft,]{#2}%
> }
>  
>  
> \setuphead [section] [
>     style={\BigFont},
>     after=,
>    before={\blank[1*line]},
>   command=\section_command,
> ]
> \protect
>  
> \defineframed[myframed][
>                    width=\textwidth,
>                    frame=off,
>                    rulethickness=0pt,
>                    offset=0pt,
>                    loffset=-0pt,
>        before=,
>        location=top,
>        align=flushleft,]]
>                    
> \starttext
>  
> \blank[force,3*line,depth]
>  
> \begingroup
> \BigFont
> \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem ipsum 
> dolor sit amet consectetur adipisicing elit}
> \endgroup
>                    
> asdfasdf
>  
> \page
> \blank[force,3*line,depth]
>  
> \startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit 
> Lorem ipsum dolor sit amet consectetur adipisicing elit]
>       asdf
> \stopsection
>  
> \stoptext
> =========================================
>  
>  
>  
> 
> 
> 
> From: <denis.ma...@unibe.ch>
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:31:00 AEST
> To: <ntg-context@ntg.nl>
> 
> 
> You can use \hfill
> 
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-boun...@ntg.nl> Im Auftrag von Jan U. Hasecke
>> Gesendet: Freitag, 25. Juni 2021 12:23
>> An: ntg-context@ntg.nl
>> Betreff: Re: [NTG-context] Align in setup header/footer
>> 
>> 
>> Hi Denis,
>> 
>> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>>> Or, for more complex footers/headers you can use:
>>> \setupfootertexts
>>>     [left on odd page] % out
>>>     [right on odd page] % in
>>>     [right on even page] % in
>>>     [left on even page] % out
>> 
>> In fact it is something like this
>> 
>> \setupfootertexts
>>   [margin]
>>   []
>>   [\pagenumber]
>>   [\pagenumber]
>>   []
>> 
>> I want to align the number inside of this area to the right or the left
>> respectively.
>> 
>> I only found setuplayouttext to style the area, except that there is no key
>> "align".
>> 
>> juh
>> ________________________________________________________________
>> ___________________
>> 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://context.aanhet.net archive  :
>> https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ________________________________________________________________
>> ___________________
> 
> 
> 
> From: <denis.ma...@unibe.ch>
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:36:07 AEST
> To: <ntg-context@ntg.nl>
> 
> 
> but you'll perhaps have to put the stuff inside a hbox first
> 
> \definehbox[pagenumber][12.5mm]
> 
> \setupfootertexts
>           [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
>        [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}]    []
> 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Maier, Denis Christian (UB)
>> Gesendet: Freitag, 25. Juni 2021 12:31
>> An: ntg-context@ntg.nl
>> Betreff: AW: [NTG-context] Align in setup header/footer
>> 
>> You can use \hfill
>> 
>>> -----Ursprüngliche Nachricht-----
>>> Von: ntg-context <ntg-context-boun...@ntg.nl> Im Auftrag von Jan U.
>>> Hasecke
>>> Gesendet: Freitag, 25. Juni 2021 12:23
>>> An: ntg-context@ntg.nl
>>> Betreff: Re: [NTG-context] Align in setup header/footer
>>> 
>>> 
>>> Hi Denis,
>>> 
>>> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>>>> Or, for more complex footers/headers you can use:
>>>> \setupfootertexts
>>>>     [left on odd page] % out
>>>>     [right on odd page] % in
>>>>     [right on even page] % in
>>>>     [left on even page] % out
>>> 
>>> In fact it is something like this
>>> 
>>> \setupfootertexts
>>>   [margin]
>>>   []
>>>   [\pagenumber]
>>>   [\pagenumber]
>>>   []
>>> 
>>> I want to align the number inside of this area to the right or the
>>> left respectively.
>>> 
>>> I only found setuplayouttext to style the area, except that there is
>>> no key "align".
>>> 
>>> juh
>>> 
>> ________________________________________________________________
>>> ___________________
>>> 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://context.aanhet.net archive  :
>>> https://bitbucket.org/phg/context-mirror/commits/
>>> wiki     : http://contextgarden.net
>>> 
>> ________________________________________________________________
>>> ___________________
> 
> 
> 
> From: "Jan U. Hasecke" <juh+ntg-cont...@mailbox.org>
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 21:15:03 AEST
> To: <ntg-context@ntg.nl>
> 
> 
> Am 25.06.21 um 12:36 schrieb denis.ma...@unibe.ch:
>> but you'll perhaps have to put the stuff inside a hbox first
>> \definehbox[pagenumber][12.5mm]
>> \setupfootertexts
>>          [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
>>         [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}]    []
> 
> Thanks a lot. \hfill works but I'll keep the hbox in mind.
> 
> juh
> 
> 
> 
> 
> ___________________________________________________________________________________
> 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  : https://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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to