[OS X TeX] TeXShop encoding issue

Sangwine, Stephen J sjs at essex.ac.uk
Fri Dec 8 19:13:05 CET 2017


Rowland,

I don’t think the 6, 9, 66, and 99 quotation marks are present in Latin 9. You can
check here: https://en.wikipedia.org/wiki/ISO/IEC_8859-15

A better solution would be to use UTF-8.

When checking encoding issues, I find it invaluable to use BBEdit (free demo version)
as it can open a text file with various encodings and line endings.

Le 8 déc. 2017 à 17:38, Rowland McDonnell <rowland.mcdonnell at physics.org<mailto:rowland.mcdonnell at physics.org>> a écrit :

Hello,

I've just tried to use:

\usepackage[latin9]{inputenc}

to allow me to use `native' non-ASCII characters in my input documents and the results have not been as expected.

I'm using TeXShop 3.92 and macOS High Sierra v10.13.1 (17B1003)

The TeXShop Source preferences pane lists "Encoding" as Western (ISO Latin 9).

When I process the following file with LaTeX:

\documentclass{article}
\usepackage[latin9]{inputenc}
\begin{document}

“ ”  ‘ ’

\end{document}

the output pdf file contains four question marks where the quotation marks should be:

? ? ? ?

Note: I created the test file from scratch using TeXShop's File->New command.

On the off chance it might help, I tried:

\documentclass{article}
\usepackage[latin9]{inputenc}
\usepackage{t1enc}
\begin{document}

“ ”  ‘ ’

\end{document}

and got the same results.

I closed the file and opened it again.  The quotation marks in the input file had all been turned into question marks.  The document text which had looked like this:

\begin{document}

“ ”  ‘ ’

\end{document}

Now looked like this:

\begin{document}

? ? ? ?

\end{document}

When I LaTeXed that file, I got question marks in the output file.

I changed the input file to:

% !TEX encoding = IsoLatin9
\documentclass{article}
\usepackage[latin9]{inputenc}
\usepackage{t1enc}
\begin{document}

“ ”  ‘ ’

\end{document}

LaTeXing this file produced question marks in the output instead of quotation marks.

I saved this file, closed it, and reopened it in TeXShop and the input file again had the quotation marks replaced by question marks.

I assumed some kind of an encoding problem had occurred, deleted the question marks, and replaced it with:

\begin{document}

“ ” ‘ ’

\end{document}

Processing that text using LaTeX produced an output of four question marks (and a page number) as before.

I closed the file and opened it again in TeXShop, to find that once again the quotation marks I'd entered had been turned into question marks:

? ? ? ?

TeXShop's Typesetting preferences are set to:

Dafault Command: LaTeX

Default Script: Pdftex

It appears something is not working properly.  I'd appreciate any insights into this issue.

Cheers,
Rowland.

P.S.  A typical console log from one of my tests looks like this:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./file encodings test 1.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/latin9.def))
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/t1enc.sty)
(./file encodings test 1.aux) [1{/usr/local/texlive/2017/texmf-var/fonts/map/pd
ftex/updmap/pdftex.map}] (./file encodings test 1.aux) ){/usr/local/texlive/201
7/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}</usr/local/texlive/2017/
texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on "file encodings test 1.pdf" (1 page, 10010 bytes).
SyncTeX written on "file encodings test 1.synctex.gz"
Transcript written on "file encodings test 1.log".


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20171208/ae487a97/attachment-0001.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.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