3

This question already has an answer here:

I have a question regarding writing a PDF in LATEX. I need to use diacritcs and I found out how to use some of them, but I can't add the 'ă' symbol. How can I do that?

marked as duplicate by Henri Menke, Schweinebacke, Zarko, Stefan Pinnow, gernot Mar 8 '17 at 13:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    See also this question. – Karlo Mar 8 '17 at 10:37
  • 1
    If your keyboard has direct access to ă, use utf8 input encoding , T1font encoding, load the Latin Modern font and just type it. – Bernard Mar 8 '17 at 10:39
7

You have two choices:

The first one is to include utf-8 encoding in the preamble. Then, you can write many special characters from your keyboard and they will be interpreted:

\documentclass[a4paper,10pt]{article}

\usepackage[utf8]{inputenc}

\begin{document}

ă

\end{document}

On the other hand, you can just use \u{a} without including the utf-8 package in the preamble. If you edit your documents in Kile, there is a list of special characters that fits most western languages, in case you do not known the code.

\documentclass[a4paper,10pt]{article}

\begin{document}

\u{a}

\end{document}

You may also want to check this page: https://en.wikibooks.org/wiki/LaTeX/Special_Characters

  • 3
    One way or the other, one should load also fontenc in order to make the pdf file searchable. – campa Mar 8 '17 at 11:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.