LaTeX forum ⇒ TeXShopfontenc | Hyphenation for accented Characters in Romanian Topic is solved

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

Re: fontenc | Hyphenation for accented Characters in Romania

Postby dusadrian » Wed Jul 25, 2012 10:09 am

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

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Wed Jul 25, 2012 11:49 am

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:
  1. \documentclass{article}
  2. \usepackage[utf8x]{inputenc}
  3. \usepackage[T1]{fontenc}
  4.  
  5. \begin{document}
  6.  
  7. \ttfamily\meaning ș
  8.  
  9. \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...
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

dusadrian
Posts: 9
Joined: Tue Jul 24, 2012 8:35 am

Postby dusadrian » Wed Jul 25, 2012 3:25 pm

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


Return to “TeXShop”

Who is online

Users browsing this forum: No registered users and 1 guest