我要写定义:最小元素、最大元素、最小元素、最大元素在阴影框中,但线条超出了页边距。这是我的代码:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[utf8x]{inputenc}
\usepackage{centernot}
\usepackage{fancybox}
\usepackage[breakable]{tcolorbox}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{parskip}
\DeclareUnicodeCharacter{2061}{}
\DeclareUnicodeCharacter{8289}{}
\begin{document}
text
\par
\shadowbox{\textbf{Definitions: Upper bound, Least Upper Bound, Lower Bound, Greatest Lower Bound}}
\par \hspace{0.3cm}
text
\end{document}
如何打破阴影框内的长线?
答案1
正如文档fancybox
(第 5 页)所解释的:
整个段落或其他垂直模式材料(例如显示的方程式)可以嵌套在 \parbox 或 minipage 中。
平均能量损失
\documentclass{article}
\usepackage{fancybox}
\begin{document}
\shadowbox{%
\parbox{\textwidth}{%
\bfseries
Definitions: Upper bound, Least Upper Bound, Lower Bound, Greatest Lower Bound}}
\shadowbox{%
\parbox{\textwidth}{%
\bfseries
Definitions: Upper bound, Least Upper Bound,\par Lower Bound, Greatest Lower Bound}}
\end{document}