[OS X TeX] Simple Cyrillic Example

juan tolosa juantolo at me.com
Tue Feb 24 22:57:37 CET 2015

Thank you, David and Herb, for your advice.
I guess my problem was that the original files were not saved in UTF-8;
I will definitely try the advice.


On Feb 22, 2015, at 3:22 PM, David Derbes <loki at uchicago.edu> wrote:

> 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)
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20150224/bb6be30d/attachment.html>

More information about the macostex-archives mailing list