
나는 llncs
(기사 아님!) as \documentclass
및 ams
패키지를 사용합니다. 이제 번호 매기기가 작동하지 않습니다. 그것~이다단순히 \begin{theorem
}를 사용하고 정리에 1,2,...의 번호를 매기는 것이 가능하지만 추가로는 불가능하며 \newtheorem{mytheorem}{Theorem}[section]
점 \begin{mytheorem}
없이 11,12,21,22와 같은 결과가 생성됩니다. 내가 확실히 선호하는 것은 1.1이나 심지어 1.1.1일 것이다. 그리고 \renewcommand
on 정리는 어리석은 생각으로 이어질 뿐입니다 TeX
. 오류는 존재하지 않습니다. 좋아요, 그러면 \newcommand
:
오류가 존재합니다. (TeX에 Zen 마스터가 있거나 \newtheorem에 매개변수가 있다는 것과 관련이 있습니다 :-) MWE:
\documentclass[10pt,a4paper]{llncs}
\usepackage{amsmath}
\newtheorem{mytheorem}{Theorem}[section]
\begin{document}
\section{foo}
\begin{mytheorem}
\end{mytheorem}
\begin{theorem}
\end{theorem}
\section{bar}
\begin{mytheorem}
\end{mytheorem}
\begin{theorem}
\end{theorem}
\end{document}
답변1
클래스 llncs
에는 \spnewtheorem
.
\documentclass[10pt,a4paper,envcountsect]{llncs}
\usepackage{amsmath}
% \spnewtheorem{env_nam}{caption}[within]{cap_font}{body_font}
% or \spnewtheorem{env_nam}[numbered_like]{caption}{cap_font}{body_font}
% or \spnewtheorem*{env_nam}{caption}{cap_font}{body_font}
\spnewtheorem{mytheorem}{Theorem}[section]{\bfseries}{\itshape}
\begin{document}
\section{foo}
\begin{mytheorem}
Some text.
\end{mytheorem}
\begin{theorem}
Some text.
\end{theorem}
\section{bar}
\begin{mytheorem}
Some text.
\end{mytheorem}
\begin{theorem}
Some text.
\end{theorem}
\end{document}