Inverted exclamation mark in LaTeX (\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).
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Inverted exclamation mark: $\text{¡}$
\[ \text{¡Hola, mundo!} \]
\end{document}Related symbols
- Inverted question mark
\text{¿} - Dotless j (math)
\jmath - Dotless i (math)
\imath - L with stroke (uppercase)
\text{Ł} - l with stroke (lowercase)
\text{ł} - O with stroke (uppercase)
\text{Ø}
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.
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen