Inverted exclamation mark in LaTeX (\text{¡})

¡\text{¡}
LaTeX command
\text{¡}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode
Copy the Unicode character
¡U+00A1

Where it is used

Writes ¡, the inverted exclamation mark that opens a Spanish exclamation; LaTeX also accepts !` for it.

Spanish brackets exclamations with ¡ and !, as in ¡Hola!, and the same pairing applies even mid-sentence. LaTeX produces it from the ligature !` (exclamation mark followed by a backtick) or the named command \textexclamdown, and typing ¡ in a UTF-8 file works too. In math it must go inside \text. Do not confuse it with the lowercase i or with the vertical bar |, which can look similar in some sans-serif fonts. Like the question-mark ligature, a literal !` sequence in your source will turn into ¡, which occasionally surprises authors quoting code.

Minimal compilable example

Paste this into an empty .tex file and compile it with XeLaTeX or LuaLaTeX (it contains a Unicode character).

¡Hola, mundo!\text{¡Hola, mundo!}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Inverted exclamation mark: $\text{¡}$

\[ \text{¡Hola, mundo!} \]
\end{document}

Related symbols

All Huruf Latin →

Frequently asked questions

How do I write Inverted exclamation mark in LaTeX?
Type \text{¡} in math mode, for example $\text{¡Hola, mundo!}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{¡}?
\text{¡} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{¡} in text mode, or only in math mode?
Both. \text{¡} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian