I'm trying to write "El Niño" in text mode within a paragraph.
I'm currently doing it like El Ni$\mathrm{\tilde{n}}$o, which is frankly ridiculous.
Can anybody explain how to do this more succinctly and readably?
Thanks.
I'm trying to write "El Niño" in text mode within a paragraph.
I'm currently doing it like El Ni$\mathrm{\tilde{n}}$o, which is frankly ridiculous.
Can anybody explain how to do this more succinctly and readably?
Thanks.
The classic markup for the text accent would be \~ not the math mode \tilde but for many years you haven't needed to use that, the above output is produced by
\documentclass{article}
\begin{document}
El Niño
\end{document}
Using Spanish-specific commands:
\documentclass{article}
% Set the font (output) encodings
\usepackage[T1]{fontenc}
% Spanish-specific commands
\usepackage[spanish]{babel}
\begin{document}
Este es un breve resumen del contenido del
documento escrito en español. El Niño es?
\end{document}
El Ni\~no. – Zarko Feb 28 '22 at 10:08El Niñoand you're done. If you can't type the accented letter directly, useEl Ni\~no– egreg Feb 28 '22 at 10:18