0

How to write Spanish letter n with a tilde in LaTeX?

  • 5
    Use \~n for that. If you are using utf-8 encoding with lualatex or xetex, you can also simply paste the character from a Unicode character map. There are other combinations that construct characters with diacriticals, and online references that list them. – rallg Feb 13 '23 at 16:39
  • 10
    @rallg You can simply type ñ in all versions of latex, so pdflatex not just lualatex or xelatex – David Carlisle Feb 13 '23 at 17:17
  • 1
    @DavidCarlisle I did not know that! Probably because the last time I used pdflatex was... before there was a place called Spain. – rallg Feb 13 '23 at 17:50
  • good catch Sam. I was sure that has been answered but couldn't find it. And welcome TeX.SE sir Abdaal Ahmed. – gildux Feb 13 '23 at 19:54

1 Answers1

1

Here there is a small example to use directly from your computer keyboard the ñ (for example).

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}

\begin{document} El ñino \end{document}

Sebastiano
  • 54,118