How to Use an Enye (ñ) in LaTeX on Ubuntu

I was trying to put my formal Spanish name (Gregory Piñero) into a LaTeX document and convert it to PDF, but the PDF seemed to just leave out the enye (ñ) creating Gregory Piero.

Here’s the fix:

First run this command to install what you need:
$ sudo apt-get install latex-ucs latex-ucs-uninames

and then add these packages to your *.tex file:
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

Found this answer here.

Comments are closed.