由于缺少 $,因此行与行之间断开

由于缺少 $,因此行与行之间断开

我为考试准备做了一个文档

我收到错误:缺少 $ 插入。突然行间出现巨大空白。您能看出错误来自哪里以及行间空白为何如此大吗?

% page setup
\documentclass[]{article}
\pagestyle{headings}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\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
\usepackage[landscape]{geometry}
\geometry{headsep=\baselineskip}

% headers and footers
\usepackage{fancyheadings}

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

% 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
\DeclareSIUnit\century{century}
\DeclareSIUnit\year{yr}
\DeclareSIUnit{\molar}{M}

% colums / paragraphs
\usepackage{paracol}
\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
\renewcommand{\tabularxcolumn}[1]{m{#1}}
\newcolumntype{Y}{>{\small\raggedright\arraybackslash}X}
\newcolumntype{C}{>{\fontsize{4}{4}\selectfont\raggedright\arraybackslash}X}
\newcolumntype{Q}{>{\RaggedRight\hspace{0pt}}X} 
\newcolumntype{P}[1]{>{\fontsize{4}{4}\selectfont\RaggedRight\hspace{0pt}}m{#1}}
\newlength\colwidth

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

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

%----------------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------------
\pagestyle{fancy}
\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}
\renewcommand{\footrulewidth}{0.4pt}
\vspace{0.2cm}
\newgeometry{top=0.55in,bottom=0.55in,right=0.3in,left=0.3in} 
\begin{paracol}{4}
\begin{small}
 \tiny
%----------------------------------------------------------------------------------------------
h\\
a  : \\
b :  
\end{small}
\end{paracol}
\end{document}      

它应该是这样的: 它应该是什么样子

而不是像这样: 到大空间

答案1

符号halloweenmath来自数学模式符号。错误来自

\lhead{\mathrightbat}

应该是

\lhead{$\mathrightbat$}

反而。

相关内容