Math & Science ⇒ Can't compile subscript, superscript, etc.
Can't compile subscript, superscript, etc.
Today I needed to do an subscript, but I got an compiler error, as I continued to test, I also noticed that Greek symbols also gave compiler error.
I get the following error:
--------------------------------------------------------------------------------
! Missing $ inserted.
<inserted text>
$
l.246 ...ing til PKF, så har EKF elimineret \Delta
x. Dette skyldes at EKF a...
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
LaTeX Warning: Command \o invalid in math mode on input line 246.
! Missing $ inserted.
<inserted text>
$
l.247
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
---------------------------------------------------------------------------------
When I look at the document, the symbols are there, but the linie after the command is in italic.
Does anyone know what to do to make it work?
Thanks alot for your help.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Can't compile subscript, superscript, etc.
Can't compile subscript, superscript, etc.
To enter math mode in the middle of a paragraph, enclose the portion in the signs $...$.
So, for example, $\Delta$ should produce a Delta.
For superscripts or subscripts, use \textsuperscript or \textsubscript, unless you're writing something in mathematical or similar notation, and then enter math mode and use _ or ^.
Basics such as these are covered in introductory LaTeX materials such as lshort. If you're new to LaTeX, I recommend reading something like that.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Can't compile subscript, superscript, etc.
[1] View topic: LaTeX Resources for Beginners
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10