Tag Info

New answers tagged

3

If you compile with Xe/LuaLaTeX, you can use Computer Modern Unicode, which doesn't have this problem: \documentclass[varwidth]{standalone} \usepackage{fontspec} \setmainfont{CMU Serif} \usepackage{xcolor} \begin{document} Аа Бб Вв Гг Дд \textcolor{red}{Ѓѓ} Ее Жж Зз Ѕѕ Ии Јј Кк Лл Љљ\\ Мм Нн Њњ Оо Пп Рр Сс Тт \textcolor{red}{Ќќ} Уу Фф Хх Цц Чч\\ Џџ Шш ...


6

This isn't directly related to cm but looks like a bug in the core latex utf8 mapping, this fixes it for now \documentclass[varwidth]{standalone} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage{xcolor} \makeatletter \AtBeginDocument{% \DeclareUnicodeCharacter{0403}{\@tabacckludge'\CYRG}% ...


0

An alternative, still using the cmcyr fonts, and assuming you have a cp1251 encoded text file, would be to make a myplain.ini file with only the following commands: \input myplain \def\set #1 #2 { \lccode`#1=`#2 \lccode`#2=`#2 \uccode`#1=`#1 \uccode`#2=`#1 \catcode`#1=11 \catcode`#2=11 \sfcode`#1=999 \sfcode`#2=1000 } \set А а \set Б б ...


3

Forget about cyrplain, use great encTeX package by Petr Olšák and cmcyr fonts. As an example, this is my format for plain.tex (UTF-8 assumed): \input myplain \mubytein=1 \mubyteout=2 \specialout=2 \mubytelog=1 \def\set #1 #2 { \lccode`#1=`#2 \lccode`#2=`#2 \uccode`#1=`#1 \uccode`#2=`#1 \catcode`#1=11 \catcode`#2=11 \sfcode`#1=999 ...



Top 50 recent answers are included