TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to number theorems as 1.i (2.i) within specified continuous block of paragraphs of a text which is not defined as section or something like that. How to create such theorem numbering?

share|improve this question
up vote 2 down vote accepted
\newcounter{theoremblock}
\renewcommand{\thetheoremblock}{\roman{theoremblock}}
\newtheorem{btheorem}{Theorem}[theoremblock]
\renewcommand{\thebtheorem}{\arabic{btheorem}.\thetheoremblock}
\newenvironment{theoremblock}{\par\refstepcounter{theoremblock}}{}

\begin{theoremblock}
The following theorem will be our main premise.
\begin{btheorem}
All men are mortal.
\end{btheorem}
The next theorem is the secondary premise.
\begin{btheorem}
Socrates is a man.
\end{btheorem}
From these we can draw our conclusion.
\begin{btheorem}
Socrates is mortal.
\end{btheorem}
\end{theoremblock}
share|improve this answer
    
This is what I needed. Thank you. – Oleksandr Bondarenko Apr 12 '11 at 17:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.