I am using the llncs
document class and I need to set the counter for the environment 'remark', so that when I use \begin{remark} ... \end{remark}
I obtain Remark 1 wherever I am in the document.
How can I do it? Is it possible to define a new counter and then force remark
to use that one?
P.S. I should not define a new environment
EDIT
I am sorry but maybe I did not explain myself very well: I do not want to fix the counter of the remark to be always 1. I just want it to start from 1, and then increase normally. So the first remark will be Remark 1, the second will be Remark 2, and so on. As it is now, it seems the remark environment is sharing the counter with theorems, corollaries, etc. and I do not want this.
Here is a MWE:
\documentclass[11pt,envcountsame,a4paper]{llncs}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
%\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{hyperref}
\numberwithin{theorem}{section}
\numberwithin{lemma}{section}
\numberwithin{definition}{section}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\numberwithin{corollary}{section}
\linespread{1.2}
\begin{document}
\section{My first section}
\begin{theorem}
Here I state a very interesting theorem
\end{theorem}
\begin{lemma}
Here I state a very interesting lemma
\end{lemma}
\begin{definition}
Here I state a very interesting definition
\end{definition}
\begin{remark}
And here I would like to state a very interesting remark, numbered as Remark 1
\end{remark}
\end{document}
remark
environment to start from 1, regardless of what has already happened in the rest of the document.theorem
etc. environment!llncs
does use\newaliascnt
, that's true, howeverenvcountsame
option is the culprit