Fonts & Character SetsProblem with microtype package when using Cyrillic chars

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
bostjanv
Posts: 10
Joined: Sun Sep 20, 2009 10:44 am

Problem with microtype package when using Cyrillic chars

Post by bostjanv »

Hello,
I've encountered a problem when using Cyrillic characters together with the microtype package (file is below the signature):
when BOTH commented out lines are uncommented, pdflatex will successfully process the LaTeX file the first time (when no
.aux file is present); but on the second run (when the .aux file is present) an error is produced. Up to now, I have not been
able to figure out the cause. Any help will be appreciated.
Regards,
bostjanv

Code: Select all

\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T2A,OT1]{fontenc}
%\usepackage{microtype}
\usepackage[russian,english]{babel}
\begin{document}%
\selectlanguage{russian}

«Устаревшие представления становятся обоснованием массового убийства»
%Почему война с Украиной — логичное продолжение российской идеологии. Объясняет историк Андрей Зорин


\selectlanguage{english}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10281
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with microtype package when using Cyrillic chars

Post by Stefan Kottwitz »

Hi bostjanv,

when I uncomment these two lines, it runs for me without error, also a second and third time with the .aux file present.
Perhaps post the corresponding section of the .log file here, as the error message is not mentioned here.

Stefan
LaTeX.org admin
bostjanv
Posts: 10
Joined: Sun Sep 20, 2009 10:44 am

Re: Problem with microtype package when using Cyrillic chars

Post by bostjanv »

Hello,
Thanks for the reply. I am attaching the .log file (on the second run when both commented lines are uncommented)
Regards,
bostjanv
Attachments
LITX.log
(26.25 KiB) Downloaded 75 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10281
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with microtype package when using Cyrillic chars

Post by Stefan Kottwitz »

I see this error:
! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.
I also see this:
LaTeX Font Warning: Font shape `T2A/lmr/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 7.
Looks to me like a missing lmodern font version for T2A encoding, so it used Computer Modern (default), which is not scalable as a bitmap font here.

Try installing the cm-super package.

Stefan
LaTeX.org admin
bostjanv
Posts: 10
Joined: Sun Sep 20, 2009 10:44 am

Re: Problem with microtype package when using Cyrillic chars

Post by bostjanv »

Hello,
Thanks for the answer. The problem is that according to my package list cm-super is installed. Is there any special way that I must indicate its use?
Regards,
bostjanv
bostjanv
Posts: 10
Joined: Sun Sep 20, 2009 10:44 am

Re: Problem with microtype package when using Cyrillic chars

Post by bostjanv »

Hello,
I take back the claim that cm-super was installed. What I thought was the installed packages list was actually the all packages list. After installing cm-super, my problem went away. Your help in solving my problem is much appreciated.
Regards,
bostjanv
User avatar
Stefan Kottwitz
Site Admin
Posts: 10281
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with microtype package when using Cyrillic chars

Post by Stefan Kottwitz »

Great to hear that it worked!

Stefan
LaTeX.org admin
Post Reply