Fonts & Character SetsCreate LaTeX Presentation in Russian using UTF-8 Encoding

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
srm
Posts: 1
Joined: Tue Sep 13, 2011 1:43 pm

Create LaTeX Presentation in Russian using UTF-8 Encoding

Post by srm »

Good Day.
I'm creating the following code for presentation:

Code: Select all

\documentclass[20pt,landscape,footrule]{foils}

\usepackage[utf8x]{inputenc}
\usepackage[english,russian]{babel}

\begin{document}
\MyLogo{XXX} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Header
%%

\title{Robot Butterfly}
\author{XXX\\[.5cm] St. Petersburg State University}
\date{SWIG, 14 September 2011}
\maketitle


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Problem formulation
%%

\foilhead{Problem formulation}
\begin{itemize}
\item 1
\item 2
\end{itemize}

\end{document} 
The packets foils, utf8 и are instaslled. If I comment line

Code: Select all

%\usepackage[english,russian]{babel}
, then all compile successfully. Otherwise I take the following error:
! Corrupted NFSS tables.
wrong@fontshape ...message {Corrupted NFSS tables}
error@fontshape else let f...
What's the problem?[/quote]

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Create LaTeX Presentation in Russian using UTF-8 Encoding

Post by justdeath »

Third message, solution:
You must force LaTeX to use cmr by the following command BEFORE anything else:

Code: Select all

\documentclass{foils}
\fontfamily{cmr}\selectfont

\usepackage[utf8x]{inputenc}
\usepackage[english,russian]{babel}

\begin{document}
Some text in english.
Малко текст на български.
Какой-то текст на русском языке.
\end{document}
There will be no errors now.
http://tex.loria.fr/general/new/fntguide.html


Second message, error bypassed:
I receive the same error.

Workaround: when you get the error input "x" and enter. No file will be produced. Now compile again and it will work.

Next time you compile it will give error again, press "x". Compile again and it will work.

I tested this. You should NOT specify the font encoding, it will not compile at all.

Code: Select all

\documentclass{foils}
\usepackage[utf8x]{inputenc}
\usepackage[english,russian]{babel}

\begin{document}
Some text in english.
Малко текст на български.
Какой-то текст на русском языке.
\end{document}
Actually fonts fcmss and fcmr are not installed, and you have to force it to use cmr. (I have no idea from where you can get them.)
LaTeX Font Warning: Font shape `T2A/fcmss/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 5.

LaTeX Font Warning: Font shape `T2A/fcmr/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 9.

First message, original:
Here are installation instructions for the package, but I have no idea how to add it to the distribution.

Download package from here: http://www.ctan.org/tex-archive/macros/ ... ib/foiltex

Extract somewhere, open command prompt, navigate to directory, run the command "latex foiltex.ins".

Copy your files to this directory and compile them (you will be using this version of the package).

Nikolay
Post Reply