[OS X TeX] applemac \inputenc

Vamos, Peter P.Vamos at exeter.ac.uk
Fri Jun 15 13:41:17 CEST 2018


Thanks to all who responded. Ross Moore wrote:

Before doing anything that may change the contents of a file, make sure that you take one or more copies, and only ever work on a copy.

Good advice. I still have the original old file, I worked on a copy.

I decided to try the suggestion from Giovanni Dore. I don’t have Alpha anymore so I used BBEdit. As I wrote in my original post I did open the file in BBEdit but not with Western (Mac OS Roman) encoding. Now, as Giovanni, I opened it in Western (Mac OS Roman) encoding. And hey presto, all my accented characters appeared just fine.

I then copied this text to my new file with the preamble (top line with a macro as suggested by Herb)

% !TEX encoding = MacOSRoman
\documentclass[a4paper]{article}

\usepackage[magyar, english]{babel}

\usepackage[applemac]{inputenc}

and everything worked. Well, almost. The characters \H{o} and \H{u} when entered from the keyboard (changed to Hungarian) show correctly in the source but did not typeset and resulted in a ?.

Any ideas anyone? Is this a font problem? I tried \usepackage[T1]{fontenc} and \usepackage{lmodern} to no avail.

There is of course the dirty method of find and replace …

Peter


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180615/4947a7b0/attachment.html>
-------------- next part --------------
----------- 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


More information about the macostex-archives mailing list