ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Odd  Font Behavior in startstop Group
@ 2022-02-05 19:28 Michael Urban via ntg-context
  2022-02-06  7:34 ` śrīrāma via ntg-context
  2022-02-06 10:20 ` Wolfgang Schuster via ntg-context
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Urban via ntg-context @ 2022-02-05 19:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Michael Urban

I am experiencing an odd behavior switching text styles in a defined startstop group ("blockquote").   I get different behavior depending on whether the switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf } text.   If they are not there, the italic and boldface switches in the second blockquote revert to the gyreschola body font of the main text; but this only happens if there is an earlier blockquote with no style changes.  This is with:

$  context --version
mtx-context     | ConTeXt Process Management 1.03
mtx-context     |
mtx-context     | main context file: /usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2020.03.10 14:44
mtx-context     | main context file: /usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkxl
mtx-context     | current version: 2020.03.10 14:44

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.





\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]
\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]
\definefontfamily[story][mm][TeX Gyre Pagella Math]
\setupbodyfont[story,11pt]

\definestartstop[blockquote]
 [
  before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
           \switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a comment marker after [termes] for a different result
  },
  after={ \stopnarrower \blank \indenting[next]},
 ]%
\starttext
\chapter{Testing}
\input ward

\startblockquote
\input knuth

\stopblockquote

\input zapf

{\it This is what Italic letters look like.} {\bf And these are bold.}


\startblockquote
This is what it said, in {\it Italic} and {\bf bold} letters:

\bgroup
\it\noindent This is what Italic letters look like here.
\egroup

\bgroup
\bf\noindent This is what Bold letters look like here.
\egroup
\stopblockquote
\stoptext

___________________________________________________________________________________
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:[~2022-02-06 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-05 19:28 Odd Font Behavior in startstop Group Michael Urban via ntg-context
2022-02-06  7:34 ` śrīrāma via ntg-context
2022-02-06 10:20 ` Wolfgang Schuster via ntg-context
2022-02-06 12:36   ` śrīrāma via ntg-context

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