# [OS X TeX] applemac \inputenc

Giovanni Dore giovanni.dore at unibo.it
Thu Jun 14 06:24:15 EDT 2018

I open my old files with accented characters with Alpha (https://alphacocoa.sourceforge.io), with encoding Western (Mac OS Roman).
I hope this helps.

Giovanni Dore

> Il giorno 14 giu 2018, alle ore 12:09, Vamos, Peter <P.Vamos at exeter.ac.uk> ha scritto:
>
> I have an old file, may even been started life az a TeXTures document.The file is mostly text in a language using lots of  diacritical characters (Hungarian). Because of this, I must have decided to forgo the TeX way of writing these characters and use \usepackage[applemac]{inputenc}. I extracted a minimal example, attached below. It was/is a one-off, worked at the time.
>
> I now need to revise or at least use big chunks of this file. I opened it and it didn’t typeset. Then I realised that I set the Preferences in TeXShop to UTF-8 for source files. So I re-saved my old file in ISO Latin 1 and it worked (ISO Latin 9 is also OK). So far so good.
>
> There is one strange thing with this old file: these accented characters don’t show up, not even a placeholder or a space. They don’t show up even if I try "Show Invisible Characters" in TeXShop. Where are they?  (In BBEdit -> Show Invisibles I do get  inverted question marks.)
>
> Problems start with my new file with chunks of the old in it with the same preamble. UTF-8 doesn’t work, no surprise. So I save the source in ISO Latin 9. But then if I enter an accented character from my Mac keyboard, the character shows but the the file won’t typeset, see MinEx commented out line.
>
> I did look briefly at the inputenc and fontenc manuals, alas there are no real examples there. Finally the nice File Encoding Guide by Schulz-Koch in TeXShop Help seemed to provide the solution. Here the table at the bottom of page 5 told me that I should save my file in Western (Mac OS Roman). Indeed now the newly entered word ’söt’ (see MinEx) typeset correctly but, alas, all the accented characters  from my old file were replaced by a ? placeholder.
>
>
> Peter
>
> PS Just to be on the safe side re.: email transfer, I also attach a zipped version of my minimal example.
>
> 				=============
>
> \documentclass[a4paper]{article}
>
> \usepackage[applemac]{inputenc}
> \usepackage[english, magyar]{babel}
>
> % \usepackage{lmodern}
>
> \begin{document}
>
> \section*{Tanulm‡nyok}
>
> \begin{description}
> \item[1957]  ellenforradalmi tevŽkenysŽg'' miatt; l‡sd munkahelyek al‡bb.
> \item[1959--60] Budapest; ŽrettsŽgi: kitŸnš.
> \end{description}
> % söt
> \end{document}
>
> <MinEx.tex.zip>----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex