方程式计数器不起作用

方程式计数器不起作用

我的方程式参考文献不起作用。方程式右侧的数字没有问题,但参考文献都显示 3.1.2(不存在...)

我用一个简短的例子向你展示我的完整标题

%Dokumentklasse/-Einstellungen
\documentclass[%draft,
pdftex,12pt,twoside,a4paper,parskip,headsepline,headings=small,%
numbers=noenddot,bibliography=totoc,openright,cleardoublepage=current,headinclude=true,footinclude=false%,tablecaptionsabove
]{scrreprt}
\setkomafont{sectioning}{\rmfamily\bfseries\upshape\boldmath}


\setkomafont{pagehead}{\footnotesize}

\usepackage%[showframe]
{geometry}
\geometry{a4paper,left=3.5cm,right=2cm,top=3cm,bottom=3cm}
\newcommand*\diff{\mathop{}\!\mathrm{d}}

\let\raggedsection\relax
\raggedbottom
\usepackage[bottom]{footmisc}

\usepackage{float} % force pictures in pos

%caption-Einstellungen
\usepackage[format=plain%,margin=10pt
,font=footnotesize,labelfont=bf,labelsep=quad
,justification=justified,singlelinecheck=false%,figureposition=bottom,tableposition=top
]{caption}
\usepackage[list=true]{subcaption}


\usepackage{layouts}

\renewcommand\chapterheadstartvskip{\addvspace{-2\baselineskip}}
\renewcommand*{\chapterheadendvskip}{\vspace{0.75\baselineskip}}

%ToC formatieren (für DIN-gerechtes ToC)
\usepackage{tocloft}
\setlength{\cftbeforetoctitleskip}{-1\baselineskip}
\setlength{\cftaftertoctitleskip}{1.\baselineskip}
\cftsetindents{chapter}{0em}{3em}
\renewcommand{\cftchapdotsep}{\cftdotsep}
\cftsetindents{section}{3em}{3em}
\cftsetindents{subsection}{4em}{3em}
\cftsetindents{subsubsection}{4em}{3em}
\makeatletter
\renewcommand*{\@pnumwidth}{2em}% Breite der Box für Seitenzahlen im Inhaltsverzeichnis erhöhen (bei dreistellig-Seiten-Doks)
\renewcommand\cftchapleader{\cftdotfill\cftdotsep}
\renewcommand{\contentsname}{Table of Contents}
\makeatother

%restliche Pakete
%\usepackage[T1]{fontenc}
%\usepackage{mathptmx}
%\usepackage{helvet}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{amsmath}            % verbesserter Formelsatz
\usepackage{amssymb}            % verbesserter Formelsatz
\usepackage{siunitx}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{rotating}
\usepackage{cite}
\usepackage{color}
\definecolor{darkgreen}{rgb}{0,0.5,0} 
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{lightblue1}{rgb}{0.2,0.8,0.99}
\definecolor{lightblue2}{rgb}{0.1,0.4,0.9}
\definecolor{black1}{rgb}{0.4,0.4,0.4}
\usepackage{colortbl}
\usepackage{subfig}
\usepackage{appendix} %for appendix obviously
\usepackage{here}
\usepackage{upgreek}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{multirow}
%for inclusion of gnumeric tables:
\def\inputGnumericTable{}
\usepackage{array}                                            
\usepackage{lscape}                                        
\usepackage{calc}                                             
\usepackage{multirow}   
\usepackage{hhline}                     
\usepackage{ifthen}
\usepackage{textcomp}



\begin{document}

\begin{equation}
 \beta (E) = \frac{1}{T(E)}  = \frac{\partial S}{ \partial E } \approx \frac{S(E+\epsilon) - S(E)}{\epsilon}
\end{equation}\label{eq:stepone}%
\begin{equation}
  W_0^{i+1}(E) = c \frac{W^{i}(E)}{H^i(E)} = e^{-S_0^{i+1}(E)}
\end{equation}\label{eq:steptwo}%
check: \ref{eq:stepone}, \ref{eq:steptwo} 


\end{document}

在这种情况下,辅助文件中显示的标签只是空的。有什么想法吗?

答案1

必须\label之内环境equation。虽然你把它放在与 相同的行上\end{equation},但从技术上讲外部环境。

因此使用类似

\begin{equation}
  % your equation here
  \label{<label>}
\end{equation}

相关内容