Fonts & Character SetsLatex Accents on Mac

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
serena
Posts: 1
Joined: Fri Aug 15, 2014 10:10 am

Latex Accents on Mac

Post by serena »

Previously I used LaTeX on Linux, now I have a Mac. I need to write in French, thus to use are a lot of accents (stuff like: é, è, à etc). Using the right stuff, my LaTeX French documents with
é, è, à did compile correctly on my old PC running with Linux.
However, they show weird symbols when I compile them now, on the Mac.

I have set:

Code: Select all

\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
however it doesn't work.

Can you help me to make my old LaTeX documents work ? I need to re-use them

What should I do ?

Thanks

Serena
Last edited by cgnieder on Mon Aug 18, 2014 12:09 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Latex Accents on Mac

Post by Johannes_B »

You need to make your editor use utf8-encoding. It should be somewhere in the properties.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Latex Accents on Mac

Post by Stefan Kottwitz »

Hi Serena,

welcome to the forum!

The actual encoding of the file is important. The setting of inputenc and the editor setting must match that. That's the step which Johannes already mentioned.

However, if your original file is not in utf8, simply changing inputenc and editor option doesn't modify the file and is not sufficient. Which inputenc option did you use before?

If it was utf8, fine. Mac editors, such as TeXshop and TeXworks (both recommendable) already use utf8. That's why I thought, the problem is based below, already on file level.

In case the original version was not utf8, there are two possible ways:
  • keep the original encoding and inputenc option, set the same option in the editor
  • or convert the file to utf8 and set the options of inputenc and editor for this.
Stefan
LaTeX.org admin
Post Reply