简而言之,我想重现定义下方的垂直边距和注释下方的双线,如下图所示:
我已经浏览过帖子了,但没有任何解决方案。本例中邮政是不够的。
\documentclass{article}
\usepackage{amsthm}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{lipsum}% just to generate text for the example
\newtheorem{theo}{Theorem}
\surroundwithmdframed[outerlinewidth=0.4pt,
innerlinewidth=0.4pt,
middlelinewidth=1pt,
middlelinecolor=white,
bottomline=false,topline=false,rightline=false]{theo}
\begin{document}
\begin{theo}
\lipsum[4]
\end{theo}
\end{document}
问题: 如何拥有定理下方的双杠如图所示双波浪线?
答案1
我已使用ntheorem
缩进(见这个答案) 并tcolorbox
添加装饰。
\documentclass{article}
\usepackage{lipsum}% just to generate text for the example
\usepackage{ntheorem}
\theoremstyle{plain}
\theoremindent40pt
\theoremheaderfont{\normalfont\bfseries\hspace{-\theoremindent}}
\newtheorem{theo}{Theorem}[section]
\newtheorem{defin}{Definition}[section]
\usepackage[most]{tcolorbox}
\usetikzlibrary{decorations.pathmorphing}
\tcbuselibrary{skins}
\tcolorboxenvironment{theo}{
blanker,
breakable,
before skip=\topsep,
after skip=\topsep,
borderline west={1pt}{20pt}{double, shorten <=12pt}
}
\tcolorboxenvironment{defin}{
blanker,
breakable,
before skip=\topsep,
after skip=\topsep,
borderline west={1pt}{20pt}{decoration={zigzag,amplitude=2pt,pre=moveto,pre length=12pt},decorate}
}
\begin{document}
\section{My section}
\lipsum[4]
\begin{theo}
\lipsum[4]
\end{theo}
\lipsum[4]
\begin{defin}
\lipsum[4]
\end{defin}
\lipsum[4]
\end{document}