I am using the Bclogo package http://www.ctan.org/pkg/bclogo. I have created environments for lemmas and proofs with it. The proof was too big to fit on the bottom of the page, so it just inserted a page break and moved it to the next page (see image below). Is there a way to have it start on the page below the lemma and then continue on the next page rather than moving everything to the next page and leaving a large gap between?
I currently have the following commands set up in a different file and just call them in the document for typing the lemmas and proofs.
\newcounter{LemmaBoxCounter}
\newcommand{\lem}[1]{\begin{bclogo}[logo=\bclampe, noborder=true, couleurBarre=Red, couleurBord=Black, couleur=blue!20, arrondi = 0.2, epBarre=0]{Lemma \arabic{LemmaBoxCounter}}
\raggedright #1
\addtocounter{LemmaBoxCounter}{1}
\end{bclogo}}
\newcounter{ProofBoxCounter}
\renewcommand{\proof}[1]{\begin{bclogo}[logo=\bclampe, noborder=true, couleurBarre=Red, couleurBord=Black, couleur=orange!10, arrondi = 0.2, epBarre=3.5]{Proof \arabic{ProofBoxCounter}}
\raggedright #1 \qed
\addtocounter{ProofBoxCounter}{1}
\end{bclogo}}
Best Answer
I take over the relay from Christian Hupfer and give a
tcolorbox
based solution. I tried to mimicry the original macros to get an equivalent appearance. The main difference is that lemma and proof are now breakable boxes. I left out the\qed
since I don't know what is used for that one.The macros take an optional parameter (any
tcolorbox
option). E.g., use\lem[label=MyLabel]{....}
to set a label for reference.UPDATE:
To number within the chapter, add
number within=chapter
to the initialization options of the boxes.To label an individual box, add
label=mylabel
to the option list of a lemma or proof.Here is the code to show the application: