GeneralRomanian diacritics don't show up in PDF

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
PhantomR
Posts: 4
Joined: Sat Jan 05, 2013 6:37 pm

Romanian diacritics don't show up in PDF

Post by PhantomR »

Greetings LaTeX Community,

I would like to request your help regarding Romanian characters not sowing in my PDF. I have written a document in which I have written characters like ș,ț,ă,î,â, but these do not appear in the output file. Strangely, in a PDF I have downloaded from another site, these charaters seem to appear.

Is there any explanation to it?
Last edited by PhantomR on Sat Jan 05, 2013 7:49 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.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Romanian diacritics don't show up in PDF

Post by Stefan Kottwitz »

Hi,

welcome to the board!

I recommend to use T1 font encoding, and also a suitable input encoding, such as:

Code: Select all

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% if the editor supports utf8
Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Romanian diacritics don't show up in PDF

Post by cgnieder »

Hi PhantomR,

Welcome to the LateX community!

Have you ensured you have the right input encoding? Are you using a font that has those diacritics? It would probably help if you would post a Infominimal working example that reproduces the unwanted behaviour. That way we would more likely be able to see what the issue is.

Regards

PS: tss, Stefan beat me again ;)
site moderator & package author
PhantomR
Posts: 4
Joined: Sat Jan 05, 2013 6:37 pm

Romanian diacritics don't show up in PDF

Post by PhantomR »

Thank you very much Mr. Stefan K and Mr. cgnieder for your replies and for your advices. The two packages Mr. Stefan proposed work flawlessly (it would seem that it works with the first one alone as well).

As Mr. cgnieder suggested, I will try to detail what the problem was. Suppose the following code was built:

Code: Select all

\documentclass{article}
aaaăăăîîîbb
\end{article}
Then it would produce something like
aaabb
In other words, it would "ignore" the diacritics ă,î.


Thank you very much to both of you for your help!
Problem Solved
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Romanian diacritics don't show up in PDF

Post by cgnieder »

Glad your problem is solved!

However, the code you posted is completely impossible for a standard LaTeX document! It should rather look something like this:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
aaaăăăîîîbb
\end{document}
Best
site moderator & package author
PhantomR
Posts: 4
Joined: Sat Jan 05, 2013 6:37 pm

Re: Romanian diacritics don't show up in PDF

Post by PhantomR »

Thank you!:D

I forgot the \begin{document} command. Pardon me. I wanted to post the code which generated the problem. The one you posted would be the solution :).
PhantomR
Posts: 4
Joined: Sat Jan 05, 2013 6:37 pm

Re: Romanian diacritics don't show up in PDF

Post by PhantomR »

Wow! I tried writing another document with the two packages and it seems not to work anymore :(. However, with the two packages I get question marks instead of ignored characters in the output PDF file.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: Romanian diacritics don't show up in PDF

Post by Stefan Kottwitz »

Perhaps post this new file as attachment. Normally it's good to post code directly in the post text, but in this case it's good to have the original input encoding.

Stefan
LaTeX.org admin
Post Reply