0

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.

2 Answers2

4

enter image description here

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}

David Carlisle
  • 757,742
1

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}

enter image description here

Sebastiano
  • 54,118