我在显示数字列表时遇到困难。有人知道问题是什么吗?我收到错误消息:Illegal unit of measure (mu inserted)
对应于 之前的代码部分begin{document}
。数字要么是 ,.jpeg
要么是.pdf
。这是我的代码的一部分:
\RequirePackage{luatex85}
\documentclass[12pt,a4paper,final]{revtex4}
\usepackage{sidecap}
\usepackage{ulem}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{color}
\usepackage[utf8]{inputenc}
\usepackage{relsize}
\usepackage[utf8]{inputenc}
\usepackage[toc,page]{appendix}
\usepackage{slashed}
\usepackage{lmodern}
\makeatletter
\renewcommand*{\thesection}{\arabic{section}}
\renewcommand*{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand*{\p@subsection}{}
\renewcommand*{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
\renewcommand*{\p@subsubsection}{}
\makeatother
\makeatletter
\def\ps@myPS{%
\def\@oddfoot{\null\hfill\thepage}
\def\@evenfoot{\thepage}%
\def\@evenhead{\null\hfil\slshape\leftmark}%
\def\@oddhead{{\slshape\rightmark}}}%
\makeatother
\pagestyle{myPS}
\usepackage{float}
\usepackage{wrapfig}
\graphicspath{ {figures/} }
\usepackage{array}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\usepackage{caption,tikz}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage{sidecap}
\usepackage{ragged2e}
\DeclareCaptionJustification{justified}{\justifying}
\captionsetup{justification=justified,singlelinecheck=false,labelfont=normal}
\usepackage[capitalize]{cleveref}
\raggedbottom
\setlength{\topmargin}{0pt}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\voffset=-0.6in
\DeclareMathOperator{\Tr}{Tr}
\usepackage{geometry}
\geometry{
a4paper,
total={210mm,297mm},
left=30mm,
right=30mm,
top=30mm,
bottom=30mm,
}
\usepackage[T1]{fontenc}
\numberwithin{equation}{subsection}
\begin{document}
\tableofcontents
\listoffigures
\makeatletter
\let\toc@pre\relax
\let\toc@post\relax
\makeatother
\newpage
\pagenumbering{arabic}
\begin{figure}[H]
\begin{center}
\includegraphics[scale=0.4]{AFree}
\caption{{\bf {Caption.}
\label{afreedom}
\end{center}
\end{figure}
end{document}
答案1
此类revtex4
不支持\listoffigures
。请使用 类revtex4-1
。
\documentclass{revtex4-1}
\usepackage{graphicx}
\begin{document}
\listoffigures
\begin{figure}
\centering
\includegraphics[scale=0.4]{example-image}
\caption{Caption.}
\label{afreedom}
\end{figure}
\end{document}
边注:您的文件有许多问题。您两次加载了多个包,并且您有很多重新定义,我预计这会导致问题。我的建议是:删除所有您不知道为什么存在的内容(= 序言中的所有内容?),并且仅在您确实需要额外功能时才添加包。