A
A
Alexey Smirnov2017-12-10 02:38:09
TeX
Alexey Smirnov, 2017-12-10 02:38:09

How to install Russian font Times New Roman in PdfLaTeX compiler?

Hello.
I need to set the Russian Cyrillic Times New Roman font when using the PdfLaTeX compiler for all document text.
I will write what I have already succeeded in:
1) I installed the Russian Cyrillic font Times New Roman using another XeLaTeX compiler - and everything worked for me:

%!TEX TS-program = xelatex
\usepackage[english,russian]{babel} 
\usepackage{fontspec} 
\defaultfontfeatures{Ligatures={TeX},Renderer=Basic} 
\setmainfont[Ligatures={TeX,Historic}]{Times New Roman}

2) I installed the Times font, package But it's Times, not Times New Roman. 3) I found the Times New Roman font for the PdfLaTeX compiler.
\usepackage{tempora}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

But it works for me only with English text. It does not work with Russian-language text, it gives an error: Under the spoiler, I posted the code with my use of the 3rd case (package "mathptmx").
Command \cyrp unavailable in encoding T1.
Spoiler
\documentclass[14pt, a4paper]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{indentfirst}
\frenchspacing

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

%%% Page
\usepackage{extsizes}
\usepackage{geometry}
\geometry{top=20mm, bottom=20mm, left=20mm, right=15mm}

\begin{document}
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    
  Это не работающий русский текст. Выдаёт ошибку при компиляции.

\end{document}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question