[OS X TeX] bug with the cyrillic fonts

V.Yu. Shavrukov v.yu.shavrukov at gmail.com
Tue Sep 23 22:36:57 EDT 2014


dear Juan,


On Sep 24, 2014, at 03:09, juan tolosa <juantolo at me.com> wrote:
> I am afraid I will show my ignorance, but I don't know what T2A means.

The T2A font encoding is one of the supported ways to associate characters (such as "letter ы") to slots in a TeX font table.  In particular, an encoding determines a character set which may — as with T2A — or may not (T1) include Cyrillic.

> The same applies to "UT8 input encoding,"

Same thing but for plain text files.  It defines which bit sequences stand for which characters.

> which sounds pretty imposing. I use cyrillic for Russian. What I use is surely outdated, since I have been using it for more years than I care to remember---ever since I started doing translation of math papers for the AMS, which was a long time ago. What I do to typeset in Russian is, follow the indications given for the \cyracc AMS family: one uses the {\cyr ...} environment and, within it, one uses the standard Russian transliteration, except for things like p1 for the soft sign, and p2 for the hard sign, which are not obvious. 
> 
> If you can help me out with concrete examples of what T2A is, and how one can use it, I would be very grateful. A sample file, with the necessary font declarations included would probably be the best, given my ignorance in the subject. 

Here is a minimal example in LaTeX — yours was in plain TeX, to which it ought to be adaptable, but I am not sure how.  Success depends on the presence of all the appropriate files for the cmr font family, but this should be automatic on most of this century installations.

%%%%%%%%%%%%%%
\documentclass{amsart}
%%%%%%%%%%
% in the preamble, add the following incantations:
%%%%%%%%%%
\usepackage[utf8]{inputenc} 
% make sure that in TeXShop preferences (source/input panel), Unicode (UTF8) encoding is selected.
\usepackage[T1,T2A]{fontenc} % whichever encoding is mentioned first, is the "default"
\def\cyr{\fontencoding{T2A}\fontfamily{cmr}\selectfont}
%%%%%%%%%%
\begin{document}
{\cyr Как бы {\bfseries цыплята} нас по осени {\itshape не {\bfseries посчитали}}.}\par
You don't have to use the ø-less T2A if you don't want to.
\end{document}
%%%%%%%%%%%%%%%

Here is what I get:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.pdf
Type: application/pdf
Size: 74186 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20140924/d237546f/attachment.pdf>
-------------- next part --------------



> Thank your for your comment about что касается упражнения, you are absolutely right, my fault. Only I need to make a small correction to your Grammar comment: after the verb касатъся, one uses Genitive, not Accusative (which I should have done, but didn't). The Accusative for упражнение is still упражнение (as a neuter noun). 

I stand corrected.  Genitive is right.  Don't know what I was thinking.


as ever,
Volodya



More information about the MacOSX-TeX mailing list