Time for action – using accents directly

We will modify the previous example daring to enter accented letters directly in the editor.

  1. Create a new document:
    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \begin{document}
    Não compreendo. Há aqui alguém que fale inglês?
    
    Comment çava? Où se trouve l'aéroport?
    \end{document}
  2. Typeset and compare to the previous output:
    Time for action – using accents directly

What just happened?

We loaded the inputenc package. The option utf8 tells the package to use Unicode input encoding, which provides many more symbols than just the ASCII code. Now we just need to find the symbol on the keyboard and to type it.

TeXworks supports Unicode/UTF-8. Depending ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.