
Mis códigos son:
\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}
Necesito cambiar todos los math
términos al 10pt
tamaño, lo intenté con \everymath{\normalsize}
, pero no funcionó, por favor indique cómo lograrlo.
Respuesta1
Preferirías escalar la fuente sans serif para que coincida.
\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}
Aquí cambié las fuentes para usar algunas que tengo. Tu llamada debe ser
\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,
]
No creo que debas cargarlo mathspec
ya que no utilizas ninguna de sus funciones.