수학에 대해서만 글꼴 크기 늘리기

수학에 대해서만 글꼴 크기 늘리기

내 코드는 다음과 같습니다

\documentclass[10pt]{book}
\usepackage[no-math]{fontspec}%

\setmainfont[Path = ./Fonts/ ,
UprightFont= TimesNewRomPSPro.otf,
BoldFont= TimesNewRomPSPro-Bol.otf,
ItalicFont= TimesNewRomPSPro-Ita.otf,
BoldItalicFont= TimesNewRomPSPro-BolIta.otf,
]{TimesNewRomPSPro}%
\setsansfont[Path = ./Fonts/ ,
UprightFont= ArialMTPro-Regular.otf,
BoldFont= ArialMTPro-Bold.otf,
ItalicFont= ArialMTPro-Italic.otf,
BoldItalicFont= ArialMTPro-BoldItalic.otf,
]{ArialMTPro}%
\usepackage[]{newtxmath} %
\usepackage{mathspec}

\begin{document}

\makeatletter
\newenvironment{sanstext}{\bgroup%
\mathversion{normal}%
\everymath{\normalsize}%
\sffamily\def\listfont{\fontsize{9.5}{13}\selectfont}%
\fontsize{9.5}{13}\selectfont%
}{\par%
\egroup}%
\makeatother

\begin{sanstext}
For, the less of two unequal numbers $AB$, $CD$ being continually subtracted from the greater, let the number which is left never measure the one before it until a unit is left; I~say that $AB$, $CD$ are prime to one another, that is, that a unit alone measures $AB$, $CD$ [figure~2.1.1].
\end{sanstext}

\end{document}

math모든 용어를 크기로 변경해야 합니다 10pt. 로 시도했지만 \everymath{\normalsize}작동하지 않았습니다. 이를 달성하는 방법에 대해 조언해 주십시오.

답변1

오히려 일치하도록 산세리프 글꼴의 크기를 조정하고 싶습니다.

\documentclass[10pt]{book}
\usepackage[no-math]{fontspec}

\setmainfont{Times New Roman}
\setsansfont{Arial}[Scale=MatchLowercase]
\usepackage{newtxmath}
%\usepackage{mathspec}

\newenvironment{sanstext}{\sffamily}{\par}

\begin{document}

For, the less of two unequal numbers $AB$, $CD$ being continually subtracted
from the greater, let the number which is left never measure the one before 
it until a unit is left; I~say that $AB$, $CD$ are prime to one another, 
that is, that a unit alone measures $AB$, $CD$ [figure~2.1.1].

\begin{sanstext}
For, the less of two unequal numbers $AB$, $CD$ being continually subtracted
from the greater, let the number which is left never measure the one before 
it until a unit is left; I~say that $AB$, $CD$ are prime to one another, 
that is, that a unit alone measures $AB$, $CD$ [figure~2.1.1].
\end{sanstext}

X\textsf{X} x\textsf{x}

\end{document}

여기에 이미지 설명을 입력하세요

여기에서는 내가 가지고 있는 일부 글꼴을 사용하도록 글꼴을 변경했습니다. 당신의 전화는

\setmainfont{TimesNewRomPSPro}[
  Path = ./Fonts/,
  Extension=.otf,
  UprightFont= *,
  BoldFont= *-Bol,
  ItalicFont= *-Ita,
  BoldItalicFont= *-BolIta,
]

\setsansfont{ArialMTPro}[
  Path = ./Fonts/,
  Extension=.otf,
  UprightFont= *,
  BoldFont= *-Bol,
  ItalicFont= *-Ita,
  BoldItalicFont= *-BolIta,
  Scale=MatchLowercase,
]

mathspec나는 그 기능을 전혀 사용하지 않기 때문에 로드해서는 안 된다고 생각합니다 .

관련 정보