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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기