Skip to main content
Yes—LaTeX supports Portuguese accents (á, â, ã, à, é, ê, í, ó, ô, õ, ú) and cedilha (ç) directly from your keyboard. Under pdfLaTeX, load \usepackage[T1]{fontenc} and \usepackage[portuguese]{babel} (or brazil for Brazilian Portuguese); under XeLaTeX or LuaLaTeX, use fontspec and polyglossia. Both setups enable Portuguese hyphenation, Portuguese dates (\today), and localized headings such as Resumo for abstracts. For the table of contents (\contentsname), Brazilian Portuguese uses Sumário in both babel (brazil) and polyglossia (variant=brazilian), whereas European Portuguese uses Índice in babel (portuguese) and Conteúdo in polyglossia (where Índice is the index heading, \indexname).

Minimal pdfLaTeX setup

Current LaTeX reads UTF-8 source files directly without \usepackage[utf8]{inputenc}; keep \usepackage[T1]{fontenc} so pdfLaTeX can hyphenate words with accented letters.
pdflatex-portuguese.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
To switch to Brazilian Portuguese conventions under babel, replace portuguese with brazil (or brazilian). When mixing Portuguese and English, list your primary language last: \usepackage[english,brazil]{babel}.

XeLaTeX and LuaLaTeX setup

Use XeLaTeX or LuaLaTeX when you want OpenType or system fonts and native Unicode output. Do not load fontenc or inputenc with these engines. In polyglossia, pass variant=brazilian for Brazilian Portuguese or variant=portuguese for European Portuguese.
xelatex-portuguese.tex
You can also pair fontspec with \usepackage[brazil]{babel} under XeLaTeX or LuaLaTeX if a university template (such as ABNT-based classes) expects babel.

Accents, Brazilian vs. European variants, and quotes

Typing accents directly in UTF-8 is the recommended workflow. If you ever need ASCII accent commands (inside a macro or on an English keyboard), LaTeX accepts these equivalents: In babel, the brazil option labels the table of contents Sumário and \bibname Referências Bibliográficas, while portuguese uses Índice and Bibliografia; both set \refname (the bibliography heading in article) to Referências. For quotation marks that adapt to the active language, load csquotes with autostyle=true and write \enquote{...}.
portuguese-brazil-quotes.tex

Common mistakes

  • Omitting \usepackage[T1]{fontenc} under pdfLaTeX: Without T1, TeX builds accented letters as composite glyphs from 7-bit OT1. Words like informação or coração stop hyphenating properly and copy-paste from the PDF produces broken characters.
  • File saved in ISO-8859-1 (Latin-1) instead of UTF-8: If compilation fails with an invalid UTF-8 error—or accented text appears garbled as ção—reopen the original file using its source encoding and re-save it as UTF-8 before uploading.
  • Writing straight ASCII quotes ("texto"): Straight double quotes render as two closing quotes in LaTeX. Use \enquote{texto} from csquotes (or texto” “ for double curly quotes).

In LaTeX Cloud Studio

LaTeX Cloud Studio runs TeX Live 2026 and sets each project’s LaTeX Engine to Auto (Recommended) by default. With Auto selected, LaTeX Cloud Studio starts the examples above with pdfLaTeX or XeLaTeX, as labeled. Preinstalled fonts include TeX Gyre Termes, TeX Gyre Pagella, Liberation Serif, DejaVu Serif, CMU Serif, and Noto Serif. If your institution’s template requires a custom font not in that list, upload the .ttf or .otf files to your project and load them with fontspec. Ready to write a Portuguese document in the browser? Start from the Basic Article template in LaTeX Cloud Studio and replace main.tex with whichever complete example above fits your setup.