1

I have the Example environment as a new theorem environment but I need to break the example across the article. Ideally I would like to implement the following:

Example 1. blah blah blah ...

... more text form the article ...

Example 1 (continued). other blah blah blah

I tried to define a newtheorem* environment \newtheorem*{ex1}{Example 1} but then I lose the bold part and the "continued" does not appear in parenthesis:

Example 1. continued

I was thinking the perhaps re-setting the counter manually before and after would solve it. But is this possible? Is there some better solution?

Sergio Parreiras
  • 1,786
  • 1
  • 15
  • 32

1 Answers1

2

In your particular case it might be easiest to do this:

    \newtheorem{example}{Example}
    \newtheorem{examplecontinued}[example]{\addtocounter{example}{-1}Example}

And then write

    \begin {example} 
    Lorem ipsum
    \end{example}

    \begin{examplecontinued}[continued]
    continued lorem ipsum
    \end{examplecontinued}

This will allow multiple breaks as well. If you want to, you can also define the examplecontinued-environment to automatically display "(continued)" behind "Example [counter] ". How to do stuff like that is very well described in the amsthm-documentation.

Sebastiano
  • 54,118
gebruiker
  • 1,491