8

I use Times New Roman font for my report. But in the math expressions are not displayed Cyrillic characters.

Example:

\begin{equation}
  S_{ном.} = S_{123}
\end{equation}

output

\documentclass[a4paper, 14pt]{extreport} 

\usepackage[cm-default]{fontspec}
\setmainfont{Times New Roman}

\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage{fncychap}
\usepackage{fancyhdr}
\usepackage[warn]{mathtext}

\usepackage[utf8]{inputenc}

\newfontfamily\cyrillicfont{Times New Roman}
\usepackage{polyglossia}
\setdefaultlanguage{russian}

\usepackage{amssymb,amsfonts,amsmath,mathtext,cite,enumerate,float, mathtext} 
6

You should use

\begin{equation}
  S_\textup{ном.} = S_{123}
\end{equation}

because that's text.

You can consider using unicode-math instead of mathtext

\usepackage{amsmath}
\usepackage{unicode-math}
\setmainfont{Times New Roman}
\setmathfont{XITS Math}

% \newfontfamily\cyrillicfont{Times New Roman}
\usepackage{polyglossia}
\setdefaultlanguage{russian}

but notice that amsmath must be loaded before it. This wouldn't change the way you input that subscript.

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.