I am editing my lecture notes and use the amsthm package. As I missed some of the lectures, I would like to set the counter of the first theorem on the page to some number. Only the first one, e.g. 12.7. Other should follow that numbering. How could one set the counter in this way? It has just worked with \setcounter{section}{12} and \setcounter{defi}{7}. but, I have a different numbering for other theorem styles, as defi refers to the definition style and anme to remark. Any way to set all the counters at once to get a consecutive numbering?
\documentclass[12pt,ansinew]{article}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
\usepackage{blindtext}
\theoremstyle{remark}
\newtheorem{anme}{Anmerkung}[section]
% many other newtheorems here
\theoremstyle{definition}
\newtheorem{defi}{Definition}[section]
% many other newtheorems here
\begin{document}
\setcounter{section}{11}
\section{Section A}
\setcounter{defi}{6}
\defi \blindtext
\anme \blindtext
\section{Section B}
\defi \blindtext
\anme \blindtext
\end{document}
\setcounter{section}{11} \setcounter{defi}{6}
(followed by, say,\setcounter{anme}{3}
)?\defi
and\anme
is wrong to begin with. You must use\begin{defi}<text>\end{defi}
and similarly for the other theorem-like structures.\defi
is wrong you have no end to the theorem settings, always use\begin{defi}...
\end{defi}`\newtheorem{defi}[anme]{Definition}
, then (or something like that). Edit: I didn’t even notice your incorrect syntax using\defi
etc. instead of\begin{defi} ... \end{defi}
etc.; I guess you should better have a look to the manuals! (;-)