Fonts & Character Sets ⇒ Copy Cyrillic letters from MS Word to Latex
-
rockdazzie
- Posts: 1
- Joined: Mon Nov 15, 2010 2:54 pm
Copy Cyrillic letters from MS Word to Latex
I am writing a thesis in english with Latex using MikTex and TeXnicCenter.
I want to include an abstract in russian with cyrillic letters. A friend translated my english abstract using MS Word. The problem now is how to copy the cyrillic letters from the Word-Document into my Latex file and how to print it out.
I copied and pasted the cyrillic letters to TeXnicCenter. This worked without problem. Than I typed into my header:
\usepackage[T2A]{fontenc}
\usepackage[koi8-r]{inputenc}
\usepackage[russian]{babel}
However, this did not work. The cyrillic text part in the pdf consists only of ?????????????????????
Please help me!
Thanks!
Kim
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Copy Cyrillic letters from MS Word to Latex
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Copy Cyrillic letters from MS Word to Latex
this isn't exactly what you were looking for, but if it's a short text (like, say, an abstract), I find it useful to switch to the OT2 or T2A encoding. In the former, you can write Russian using Latin transliteration, which is manageable in a short text. For reasons unknown to me, this produces low-quality output in a .pdf (if you magnify the letters, they're quite grainy and jagged). A less convenient (but typographically much more pleasing) solution is to use T2A, in which each character is a control sequence like \cyra, \cyrv, \CYRZH, \cyrsftsn... This will produce smooth fonts in a .pdf. Here is code with both variants for comparison:
Code: Select all
\documentclass{article}
\usepackage[T2A,OT2,T1]{fontenc}%the last invoked encoding will be the default
\newcommand{\russianottwo}[1]{{\fontencoding{OT2}\selectfont #1}}
\newcommand{\russianttwoa}[1]{{\fontencoding{T2A}\selectfont #1}}
\begin{document}
English text.
Russian OT2: \russianottwo{Ivan. Zhenshchina.}
Russian T2A: \russianttwoa{\CYRI\cyrv\cyra\cyrn. \CYRZH\cyre\cyrn\cyrshch\cyri\cyrn\cyra.}
English text.
\end{document}http://www.capca.ucalgary.ca/~wdobler/d ... index.html
The other methods described there are also noteworthy,
Neither T2A or OT2 is as convenient as copy-pasting Cyrillic from a text editor, but it has the advantage of letting you stay within the ASCII character set, thus bypassing your problem with software that can't handle international chars.
Hope that helps!
Wojtek