4

I tried the following snippet just now:

\starttext
\tf  A quick brown fox \par
\tfc A quick brown fox \par
\tf  A quick brown fox \par
\tfb A quick brown fox \par
\tf  A quick brown fox \par
\tfa A quick brown fox \par
\tf  A quick brown fox \par
\stoptext

What I get out is the following:

enter image description here

I thought \tf is supposed to reset to normal size, according to this page. If \tf does not set the normal font size, what is the command that explicitly sets the normal font size, after you've e.g. done a \tfa?

  • 1
    Do you want a technical answer here (what \tf is defined to do) or a 'concepts' one (how it's supposed to be handled)? The detail of what \tf does is clear to the non-ConTeXt but TeX-experienced person, but the concepts will need a proper expert! (Hopefully one will be along soon.) – Joseph Wright Jan 16 '15 at 16:48
  • I read both those references already. Describing \tf as "normal size" led me to believe that it changes to the normal font size, but obviously it doesn't. I suppose the remedy is to always wrap any non-standard font size text so that the document will return to the normal size text outside a group. Is this the only way to do it or is there a command that actually returns to the normal font size? – ana Jan 16 '15 at 16:50
  • 3
    \tfa etc. are not meant to be used for entire paragraphs. Just like \bf etc., in plain TeX, you should use them inside groups. If you want to explicitly set the font back to the "normal" font, you need to use \setupbodyfont[reset] or \setupbodyfont[reset, 11pt] – Aditya Jan 16 '15 at 18:57
  • 2
    @Aditya I think you should turn your comment into an answer? – Gonzalo Medina Jan 17 '15 at 0:38
3

Aditya's comment above:

\tfa etc. are not meant to be used for entire paragraphs. Just like \bf etc., in plain TeX, you should use them inside groups. If you want to explicitly set the font back to the "normal" font, you need to use \setupbodyfont[reset] or \setupbodyfont[reset, 11pt]

2

Use \restoreglobalbodyfont:

\starttext
\tf  A quick brown fox \par
\tfc A quick brown fox \par
\restoreglobalbodyfont  A quick brown fox \par
\tfb A quick brown fox \par
\restoreglobalbodyfont  A quick brown fox \par
\tfa A quick brown fox \par
\restoreglobalbodyfont A quick brown fox \par
\stoptext

Source: https://mailman.ntg.nl/pipermail/ntg-context/2005/009906.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.