[OS X TeX] applemac \inputenc
Herbert Schulz
herbs at wideopenwest.com
Fri Jun 15 08:41:48 EDT 2018
> On Jun 15, 2018, at 6:41 AM, Vamos, Peter <P.Vamos at exeter.ac.uk> wrote:
>
> 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
Howdy,
I'm not sure if the T4 font encodong has those characters but you might try
\usepackage{lmodern}
\usepackage[T4]{fontenc}
or
\usepackage{lmodern}
\usepackage[T1,T4]{fontenc}
but no guarantees.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list