dimanche 30 novembre 2014

TikZ mdframed environment: close box at end of page and continue on next


I used the Excursus environment as a template to create my own box like this:



\usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed}
\newenvironment{boxtype1}{%

\begin{mdframed}%

[linewidth=.5,margin=8.5,backgroundcolor=gray!2,linecolor=red,fontcolor=black,roundcorner=10pt, middlelinewidth=2pt]%

\fontsize{12}{14}\sffamily\selectfont%
}{\end{mdframed}}


Works perfectly nice. However, would there be a way to automatically close the box at a page break and then open it new on the next one? If it would even be possible to have a "Excursus X continued" on each page that would be perfect.


Thanks


Philipp





Aucun commentaire:

Enregistrer un commentaire