# [OS X TeX] Simple Cyrillic Example

David Derbes loki at uchicago.edu
Sun Feb 22 15:22:45 EST 2015

I don’t do a lot of Russian, but this works for me. I choose the phonetic Russian alphabet in Preferences, and switch back and forth between that and English. Here’s the minimum working example (having chosen in TeXShop’s Preferences to use UTF-8):

% !TEX encoding = UTF-8 Unicode
\documentclass[11pt]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
\begin{document}
\selectlanguage{russian}
брест\textbf{и}, брод\textbf{и}ть
\selectlanguage{english}
to roam, wander (\emph{501 Russian Verbs}, p.\,15)
\end{document}

I like to see the Russian in my source.

Best wishes,
David Derbes
U of Chicago Laboratory Schools

On Feb 22, 2015, at 10:55 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:

Howdy,

Not if you actually save your file using UTF-8 Unicode encoding!

TeXShop used to use Mac OS Roman encoding as default and recent versions use Latin9 encoding as default. You can change the default encoding in TeXShop->Preferences->Source->Encoding. Better, make sure each of your documents has a line

% !TETeX on Mac OS X Mailing ListX encoding = UTF-8 Unicode

(for saving in UTF-8 encoding) near the top of the Source file when you first save it. The safest thing to do if you have something else and want to change to UTF-8 is to create a new document with the proper line and copy the original contents (or use Save As…) and save that.

By the way, you can get Save As… back on the File Menu under recent OS versions by creating two shortcuts for TeXShop in Keyboard->Shortcuts->App Shortcuts (Yosemite notation). Set Duplicate to Opt-Shift-Cmd-S and then Save As… to Shift-Cmd-S (Note: that is a real ellipsis, it's Opt-; on an English keyboard).

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20150222/ff3a6296/attachment.html>