ConTeXt: 数式モードのフォントサイズの開始と終了

ConTeXt: 数式モードのフォントサイズの開始と終了

この簡単な文書をご覧ください:

\definestartstop[test][style={\tfx}]
\showgrid

\startTEXpage[offset=.5mm]
  Let's take a look.

  Math without style: $\pi=3.1415...$.

  \starttest
    Math in startstop with style: $\pi=3.1415...$.
  \stoptest
\stopTEXpage

この文書はわかりやすいはずです。しかし、私には問題があります。

ここに画像の説明を入力してください

数式モードのフォント サイズが変更されていません。どうすれば変更できますか?

答え1

どちらかを試すことができます

\definestartstop[test][style=\small]
\showgrid

\startTEXpage[offset=.5mm]
  Let's take a look.

  Math without style: $\pi=3.1415 \ldots$.

  \starttest
    Math in startstop with style: $\pi=3.1415 \ldots$.
  \stoptest
\stopTEXpage

あるいは(いつかこれがデフォルトになるかもしれないと聞いた)

\enableexperiments[fonts.compact]

\definestartstop[test][style=\tfx]
\showgrid

\startTEXpage[offset=.5mm]
  Let's take a look.

  Math without style: $\pi=3.1415 \ldots$.

  \starttest
    Math in startstop with style: $\pi=3.1415 \ldots$.
  \stoptest
\stopTEXpage

どちらの場合も結果は次のとおりです。

小さな数学で小さな

しかし、おそらく、必要なサイズが\switchtobodyfont[Xpt]どこにあるかを使用する方が良いでしょう。それは何をするかによって異なると思います。X

関連情報