You may use amsthm
, provided you remove the proof
environment as defined by the document class.
\documentclass[runningheads]{llncs}
\usepackage[T1]{fontenc}
\let\proof\relax\let\endproof\relax
\usepackage{amsthm}
\newtheoremstyle{freethm}% <name>
{3pt}% <Space above>
{3pt}% <Space below>
{\itshape}% <Body font>
{}% <Indent amount>
{\bfseries}% <Theorem head font>
{}% <Punctuation after theorem head>
{\newline}% <Space after theorem headi>
{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}.} % Head spec
\theoremstyle{freethm}
\newtheorem{mytheorem}{Theorem}
\begin{document}
\title{Contribution Title\thanks{Supported by organization x.}}
\author{First Author}
\authorrunning{F. Author}
\institute{Some University, Someplace\\\email{[email protected]}}
\maketitle
\begin{abstract}
The abstract should briefly summarize the contents of the paper in
150--250 words.
\keywords{First keyword \and Second keyword \and Another keyword.}
\end{abstract}
\section{First Section}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\begin{theorem}[Standard]
This is a theorem in the standard style.
\end{theorem}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\begin{mytheorem}[Free]
This is a theorem in the free style.
\end{mytheorem}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\end{document}
If you want to preserve the proof
environment as defined by the class, you can do as follows:
\documentclass[runningheads]{llncs}
\usepackage[T1]{fontenc}
% save the proof environment defined by the class
\let\lncsproof\proof \let\lncsendproof\endproof \let\lncsqed\qed
% remove the definitions in order to load amsthm
\let\proof\relax\let\endproof\relax
\usepackage{amsthm}
% restore the class defined proof
\let\proof\lncsproof \let\endproof\lncsendproof \let\qed\lncsqed
\newtheoremstyle{freethm}% <name>
{3pt}% <Space above>
{3pt}% <Space below>
{\itshape}% <Body font>
{}% <Indent amount>
{\bfseries}% <Theorem head font>
{}% <Punctuation after theorem head>
{\newline}% <Space after theorem headi>
{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}.}
\theoremstyle{freethm}
\newtheorem{mytheorem}{Theorem}
\begin{document}
\title{Contribution Title\thanks{Supported by organization x.}}
\author{First Author}
\authorrunning{F. Author}
\institute{Some University, Someplace\\\email{[email protected]}}
\maketitle
\begin{abstract}
The abstract should briefly summarize the contents of the paper in
150--250 words.
\keywords{First keyword \and Second keyword \and Another keyword.}
\end{abstract}
\section{First Section}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\begin{theorem}[Standard]
This is a theorem in the standard style.
\end{theorem}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\begin{mytheorem}[Free]
This is a theorem in the free style.
\end{mytheorem}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\begin{proof}
This is a proof in the standard style.\qed
\end{proof}
Please note that the first paragraph of a section or subsection is
not indented. The first paragraph that follows a table, figure,
equation etc. does not need an indent, either.
\end{document}
On the other hand, if you don't restore and remove the \qed
at the end of the proof, you get
which seems much alike the other picture (and is easier to maintain because you don't need to manually add \qed
).
llncs.sty
redefines theorem environment ofamsthm
. So, I don't know a way to use amthm with that class. If you can point out a way to do this, that will be a perfect answer.! You can't use `macro parameter character #' in vertical mode.
even in article class, without using llncs at all