ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Change of font size affects header text size, too
@ 2018-02-08 11:14 Procházka Lukáš Ing.
  2018-02-08 11:49 ` Wolfgang Schuster
  2018-02-08 11:52 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Procházka Lukáš Ing. @ 2018-02-08 11:14 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

Hello,

in the following example:

----
\setupheadertexts[Left][Right]

\starttext
   Aaa

   \page

   \startsection[title={Sec}]
     \start
       \setupbodyfont[6pt]
       \dorecurse{12}{\input knuth}
     \stop
   \stopsection
\stoptext
----

header text size on page #2 is small (6 pt) although body font change was intended only to text inside section "Sec" -
thus the text "\input knuth" is surrounded by \start ... \stop.

How to change the bodyfont size of the running text only (ad-hoc in the middle of the document), without changing header text size?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

[-- Attachment #2: HdrSz.mkiv --]
[-- Type: application/octet-stream, Size: 209 bytes --]

\setupheadertexts[Left][Right]

\starttext
  Aaa

  \page

  \startsection[title={Sec}]
    \start
      \setupbodyfont[6pt]
      \dorecurse{12}{\input knuth}
    \stop
  \stopsection
\stoptext

[-- Attachment #3: HdrSz.pdf --]
[-- Type: application/pdf, Size: 16846 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change of font size affects header text size, too
  2018-02-08 11:14 Change of font size affects header text size, too Procházka Lukáš Ing.
@ 2018-02-08 11:49 ` Wolfgang Schuster
  2018-02-08 12:11   ` Procházka Lukáš Ing.
  2018-02-08 11:52 ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2018-02-08 11:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> Procházka Lukáš Ing. <mailto:LPr@pontex.cz>
> 8. Februar 2018 um 12:14
> Hello,
>
> in the following example:
>
> ----
> \setupheadertexts[Left][Right]
>
> \starttext
>   Aaa
>
>   \page
>
>   \startsection[title={Sec}]
>     \start
>       \setupbodyfont[6pt]
>       \dorecurse{12}{\input knuth}
>     \stop
>   \stopsection
> \stoptext
> ----
>
> header text size on page #2 is small (6 pt) although body font change 
> was intended only to text inside section "Sec" -
> thus the text "\input knuth" is surrounded by \start ... \stop.
>
> How to change the bodyfont size of the running text only (ad-hoc in 
> the middle of the document), without changing header text size?

Use \switchtobodyfont[6pt].

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change of font size affects header text size, too
  2018-02-08 11:14 Change of font size affects header text size, too Procházka Lukáš Ing.
  2018-02-08 11:49 ` Wolfgang Schuster
@ 2018-02-08 11:52 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2018-02-08 11:52 UTC (permalink / raw)
  To: ntg-context

On 2/8/2018 12:14 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> in the following example:
> 
> ----
> \setupheadertexts[Left][Right]
> 
> \starttext
>    Aaa
> 
>    \page
> 
>    \startsection[title={Sec}]
>      \start
>        \setupbodyfont[6pt]
>        \dorecurse{12}{\input knuth}
>      \stop
>    \stopsection
> \stoptext
> ----
> 
> header text size on page #2 is small (6 pt) although body font change 
> was intended only to text inside section "Sec" -
> thus the text "\input knuth" is surrounded by \start ... \stop.
> 
> How to change the bodyfont size of the running text only (ad-hoc in the 
> middle of the document), without changing header text size?
\switchtobodyfont


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change of font size affects header text size, too
  2018-02-08 11:49 ` Wolfgang Schuster
@ 2018-02-08 12:11   ` Procházka Lukáš Ing.
  0 siblings, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. @ 2018-02-08 12:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

thanks both for quick answer.

Best regards,

Lukas


On Thu, 08 Feb 2018 12:49:53 +0100, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

>
>> Procházka Lukáš Ing. <mailto:LPr@pontex.cz>
>> 8. Februar 2018 um 12:14
>> Hello,
>>
>> in the following example:
>>
>> ----
>> \setupheadertexts[Left][Right]
>>
>> \starttext
>>   Aaa
>>
>>   \page
>>
>>   \startsection[title={Sec}]
>>     \start
>>       \setupbodyfont[6pt]
>>       \dorecurse{12}{\input knuth}
>>     \stop
>>   \stopsection
>> \stoptext
>> ----
>>
>> header text size on page #2 is small (6 pt) although body font change
>> was intended only to text inside section "Sec" -
>> thus the text "\input knuth" is surrounded by \start ... \stop.
>>
>> How to change the bodyfont size of the running text only (ad-hoc in
>> the middle of the document), without changing header text size?
>
> Use \switchtobodyfont[6pt].
>
> Wolfgang
>


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

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

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

end of thread, other threads:[~2018-02-08 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 11:14 Change of font size affects header text size, too Procházka Lukáš Ing.
2018-02-08 11:49 ` Wolfgang Schuster
2018-02-08 12:11   ` Procházka Lukáš Ing.
2018-02-08 11:52 ` Hans Hagen

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