On 5/24/2016 3:04 PM, Meer, Hans van der wrote:

Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.

\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red
Master\egroup}}
\def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red
Master\egroup}}
\starttext
\startsection[title=\MarkMasterA First title]
\input hawking
\MarkMasterA
\input hawking
\stopsection
\startsection[title=\MarkMasterB First title]
\input hawking
\MarkMasterB
\input hawking
\blank
contextversion=\contextversion
\stopsection
\stoptext

In the first section the absolute value of 9 pt appears not to be
honoured but it looks as if there is a reduction relative to the
surrounding font.
In the second section the size does not change and looks even bigger
than the first one above.

I am baffled and do not understand why not all fontsizes are the same
absolute 9pt as requested?

inmargin also has a style parameter that can be set (and maybe it is)

\setupbodyfont is a global font switch that should be used local (as it affects the headers footers, spacing etc


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | 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
___________________________________________________________________________________

Reply via email to