COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### ntheorem and continuation

• Follow

Hi all,

I'm using package ntheorem for any kind of specific definition,
theorem, example and I would like to detail an example that should be
continued later on, something like:

Example 1.1 some text

Some other main text.

Example 1.2 some text

Some other main text.

Example 1.1 (Continued) some text

I've read through the help file but could not find anything related.
Have you ever tried to do something similar? Thanks

 0
Reply plutonesque (390) 3/11/2010 8:59:34 PM

pluton wrote:
> Hi all,
>
> I'm using package ntheorem for any kind of specific definition,
> theorem, example and I would like to detail an example that should be
> continued later on, something like:
>
> Example 1.1 some text
>
> Some other main text.
>
> Example 1.2 some text
>
> Some other main text.
>
> Example 1.1 (Continued) some text
>
> I've read through the help file but could not find anything related.
> Have you ever tried to do something similar? Thanks

it can be done, but needs extra work

the easiest thing to do is to define an extra environment via

\theoremstyle{empty}
\newtheorem{contexampleinner}{}

\newenvironment{contexample}[1]{%
\begin{contexampleinner}[Example~\ref{#1}
(Continued)]}{\end{contexampleinner}}

I have an (yet) unpublished package which provide continued examples
using a single environment.

Is it able to

* detect if an example is resumed
* point forward and backwards to the next and the former part of the example
* add some kind of end markers
* does not depend on ntheorem

/daleif

 0

On 11 mar, 16:14, Lars Madsen <dal...@imf.au.dk> wrote:
> pluton wrote:
> > Hi all,
>
> > I'm using package ntheorem for any kind of specific definition,
> > theorem, example and I would like to detail an example that should be
> > continued later on, something like:
>
> > Example 1.1 some text
>
> > Some other main text.
>
> > Example 1.2 some text
>
> > Some other main text.
>
> > Example 1.1 (Continued) some text
>
> > I've read through the help file but could not find anything related.
> > Have you ever tried to do something similar? Thanks
>
> it can be done, but needs extra work
>
> the easiest thing to do is to define an extra environment via
>
> \theoremstyle{empty}
> \newtheorem{contexampleinner}{}
>
> \newenvironment{contexample}[1]{%
> \begin{contexampleinner}[Example~\ref{#1}
> (Continued)]}{\end{contexampleinner}}

Nice ! (thanks)

> I have an (yet) unpublished package which provide continued examples
> using a single environment.
>
> Is it able to
>
> * detect if an example is resumed
> * point forward and backwards to the next and the former part of the example
> * add some kind of end markers
> * does not depend on ntheorem
>
> /daleif

Super nice !

 0

pluton wrote:
> On 11 mar, 16:14, Lars Madsen <dal...@imf.au.dk> wrote:
>> pluton wrote:
>>> Hi all,
>>> I'm using package ntheorem for any kind of specific definition,
>>> theorem, example and I would like to detail an example that should be
>>> continued later on, something like:
>>> Example 1.1 some text
>>> Some other main text.
>>> Example 1.2 some text
>>> Some other main text.
>>> Example 1.1 (Continued) some text
>>> I've read through the help file but could not find anything related.
>>> Have you ever tried to do something similar? Thanks
>> it can be done, but needs extra work
>>
>> the easiest thing to do is to define an extra environment via
>>
>> \theoremstyle{empty}
>> \newtheorem{contexampleinner}{}
>>
>> \newenvironment{contexample}[1]{%
>> \begin{contexampleinner}[Example~\ref{#1}
>> (Continued)]}{\end{contexampleinner}}
>
> Nice ! (thanks)
>
>
>> I have an (yet) unpublished package which provide continued examples
>> using a single environment.
>>
>> Is it able to
>>
>> * detect if an example is resumed
>> * point forward and backwards to the next and the former part of the example
>> * add some kind of end markers
>> * does not depend on ntheorem
>>
>> /daleif
>
> Super nice !

send me an email, and you can test a copy

haven't been working on it for a while

/daleif

 0