O with stroke (uppercase) in LaTeX (\text{Ø})
- LaTeX command
\text{Ø}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Text and math mode
- Copy the Unicode character
- Ø
U+00D8
Where it is used
Writes capital Ø, as in Øresund, the uppercase slashed O written \O in LaTeX text.
Capital Ø begins Danish and Norwegian words such as Øresund and Østergaard. In LaTeX, use \O in text mode or type Ø directly; \O is undefined in math without \text. Because it resembles the empty set \emptyset and the diameter symbol, it is tempting to reuse it, but those are separate characters and screen readers and search engines treat them differently. Sorting in Scandinavian alphabets puts Ø after Æ and before Å in Norwegian and Danish.
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}
O with stroke (uppercase): $\text{Ø}$
\[ \text{Øresund} \]
\end{document}Related symbols
- l with stroke (lowercase)
\text{ł} - o with stroke (lowercase)
\text{ø} - L with stroke (uppercase)
\text{Ł} - A with ring above (Ångström)
\text{Å} - Dotless i (math)
\imath - a with ring above
\text{å}
Frequently asked questions
- How do I write O with stroke (uppercase) in LaTeX?
- Type \text{Ø} in math mode, for example $\text{Øresund}$. 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 poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기