![mdframed 框的不同页面上有不同的标题](https://linux22.com/image/309160/mdframed%20%E6%A1%86%E7%9A%84%E4%B8%8D%E5%90%8C%E9%A1%B5%E9%9D%A2%E4%B8%8A%E6%9C%89%E4%B8%8D%E5%90%8C%E7%9A%84%E6%A0%87%E9%A2%98.png)
我想要一个带标题的 mdframed 框。以下方法可行。但我希望第二页及后续页面的标题除了标题外还提到“继续”[类似标题(继续)]。
我该如何修改下面的例子来获得这个?
维卡斯
\documentclass[12pt,a4paper,twoside,openright,showtrims]{memoir}
\usepackage[utf8]{inputenc}
\usepackage{color,graphicx}
\usepackage[dvipsnames,svgnames,table]{xcolor}
\usepackage{lipsum}
\usepackage{pdflscape}
\usepackage[backgroundcolor=gray!40,roundcorner=8pt,skipabove=10pt,skipbelow=10pt,leftmargin=10pt,rightmargin=10pt,framemethod=TikZ]{mdframed}
\usetikzlibrary{shadows}
\newenvironment{icn2box}[1][]{%
\addcontentsline{box}{icn2boxes}{\protect\numberline #1}
\begin{mdframed}[%
frametitle={#1},
skipabove=\baselineskip plus 2pt minus 1pt,
skipbelow=\baselineskip plus 2pt minus 1pt,
linewidth=0.5pt,
roundcorner=8pt,
shadow=true,
frametitlerule=true,
repeatframetitle=true,
frametitlebackgroundcolor=White,
backgroundcolor=White,
]%
}{%
\end{mdframed}
}
\author{Draft: Do not Cite}
\date{\today}
\title{Title of the document}
\begin{document}
\begin{icn2box}[Summary: Long title here that wraps over two lines and some times three]
\label{box-icn2-appc1}
\lipsum
\lipsum
\lipsum
\lipsum
\lipsum
\lipsum
\end{icn2box}
\end{document}