Недостающая точка в перечислении теорем

Недостающая точка в перечислении теорем

Я использую llncs(не статью!) как \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 — это что-то вроде мастера дзен-буддизма, либо с тем, что у \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}

введите описание изображения здесь

Связанный контент