TransWikia.com

Countinuations of examples

TeX - LaTeX Asked on February 4, 2021

In the accepted answer of the following question: Continuing an earlier theorem-like environment with amsthm & thmtools, two methods are described for continuation of examples.

I would like to use the first method to do the same thing where all examples use the following environment:

newtheorem{examp}{Example}[section]        
newenvironment{exa}[1][]{%
        begin{adjustwidth}{3mm}{3mm}
            needspace{2baselineskip}
            rule{textwidth-6mm}{.2mm} 
            begin{examp}[#1]}{
            end{examp}
            vspace*{-2mm} 
            noindent
            rule{columnwidth-6mm}{.2mm}  
        end{adjustwidth}%
}

One Answer

It turns out that it is possible. Adding the following after my original definitions solves the problem:

    newtheorem*{excont}{Example continuation}
    newcommand{continuation}{??}
    newenvironment{contexa}[1]{
    begin{adjustwidth}{3mm}{3mm}
        needspace{2baselineskip}
        rule{textwidth-6mm}{.2mm} 
        renewcommand{continuation}{ref{#1}}excont[continued]}
        {{endexcont}
        vspace*{-2mm} 
        noindent
        rule{columnwidth-6mm}{.2mm}  
    end{adjustwidth}%
    }

Answered by user144410 on February 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP