I made a document for my exam preparation

I get an error: missing $ inserted. And suddenly a huge space between the lines. Can you see where the error is comming from and why the line space is greate

% page setup
\usepackage{courier} % fonts
\usepackage{lmodern} % fonds
\usepackage{braket} % brakets

% enumeration
\usepackage{enumerate} % enumerations
\newcommand\sbullet[1][.5]{\mathbin{\vcenter{\hbox{\scalebox{#1}{$\bullet$}}}}} % small bullet

% geometry

% headers and footers

% graphics
\usepackage{graphicx} % interface for optional arguments
\usepackage{xypic} %  variety of graphs and diagrams

% Math / chemistry
\usepackage{amsmath} % mathematical features
\usepackage{amssymb} % math symbols
\usepackage{amsthm} % American Mathematical Society publications
\usepackage{siunitx} % SI units
\usepackage[version=4]{mhchem} % chemical symbols

% colums / paragraphs
\usepackage{parskip} % paragraph layouts

\usepackage{fancyvrb} % verbatim text 

\usepackage{hyperref} % cross-reference elements / generate PDF files

% table
\usepackage{enumitem} % for lists (in table)
\usepackage{ragged2e} % for \Centering and \RaggedRight macros
\usepackage{booktabs, tabularx} % for well-spaced horizontal lines

% fun
\usepackage{stmaryrd} % symbols => used for \lighting
\usepackage{marvosym} % male / female sign 

% color
\usepackage[dvipsnames, table,x11names]{xcolor}

\fancyhf{} % Seitenzahl mitte
\rfoot{Seite \thepage} % Seitenzahl rechts 
\rhead{Cheat sheet klinische Chemie} % Kopfzeile rechts oben
\lhead{$\mathrightbat$} % Kopfzeile links oben 
\fancyheadoffset{0.01 cm}
a  : \\
b :  

it should be like this: how it should look like

and not like this: to large space


The symbols from halloweenmath are math-mode symbols. The error comes from


which should be



  • I did this but the space between the lines is still large – Elia Mar 9 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.