TeXShopfontenc | Hyphenation for accented Characters in Romanian

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
dusadrian
Posts: 9
Joined: Tue Jul 24, 2012 8:35 am

fontenc | Hyphenation for accented Characters in Romanian

Post by dusadrian »

localghost wrote: The typesetting engine is not responsible for the problem with BibTeX. I answered correspondingly in the other thread.
You're absolutely right of course... it was a BibTex issue not a typesetting one.
That seems to solve this, thanks very much to you both cgnieder and Thorsten.

XeLaTeX (which natively works with UTF8) plus the fontspec package hits the nail right in the head.

Best wishes,
Adrian

Recommended reading 2024:

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

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

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

fontenc | Hyphenation for accented Characters in Romanian

Post by cgnieder »

dusadrian wrote:That error dissapears by using:
\usepackage[utf8x]{inputenc}

As previously mentioned, "please note the usage of utf8x..." (the key is the last letter "x" after the utf8, which allows for an extended list of characters
This also defines ș to be a macro:

Code: Select all

\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

\ttfamily\meaning ș

\end{document}
For pdflatex it comes down to what the FAQ entry I linked to earlier says:
The solution is to use a font that contains the character in question, and to express the \hyphenation command in terms of that character; this “hides” the accent from the hyphenation mechanisms.
I guess XeLaTeX is the easiest way...
site moderator & package author
dusadrian
Posts: 9
Joined: Tue Jul 24, 2012 8:35 am

fontenc | Hyphenation for accented Characters in Romanian

Post by dusadrian »

cgnieder wrote: I guess XeLaTeX is the easiest way...
Very much agree with that, XeLaTeX is the easiest way because it natively deals with UTF8 so that I don't have to worry about all these issues.

Thanks very much again, I learned a lot out of this discussion (and I hope others will benefit as well).

Best wishes,
Adrian
Post Reply