我通过总结书籍来学习,为了避免构建叙述,我使用 itemize 环境将章节、节和小节分解为基本信息。但是,我学习的书籍包含许多数学定理,我希望以一种简洁而突出的方式展示它们。
这是期望的结果: 我似乎无法弄清楚如何构建一个可以在 itemize 环境中正确使用的工作定理环境。
我的序言如下:
\documentclass[9pt,fleqn]{extarticle}
\usepackage[british]{babel}
\usepackage[utf8]{inputenc}
\usepackage{subfiles}
\usepackage[T1]{fontenc}
\usepackage[a4paper, hmargin=64pt, top=72pt, bottom=72pt, headsep=24pt, footskip=24pt]{geometry}
\usepackage[fleqn]{amsmath}
\usepackage{amsfonts, amssymb, amsthm}
\usepackage{mathtools, thmtools}
\usepackage{gensymb}
\usepackage{enumitem}
\usepackage{xcolor}
\definecolor{l_gray}{gray}{0.84}
\definecolor{d_gray}{gray}{0.48}
\usepackage{lipsum}
\usepackage[framemethod=default]{mdframed}
\setitemize{topsep=0pt, itemsep=0pt, leftmargin=16pt}
\setenumerate{topsep=0pt, itemsep=0pt, leftmargin=16pt}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.64\baselineskip}
\def\labelitemi{--}
\renewcommand{\labelitemiii}{--}
\renewcommand{\labelitemiv}{--}
现在,我已经尝试了几种方法来实现预期的结果。
这种方法似乎产生了最好的结果:
\declaretheoremstyle[
headfont=\scseries,
notebraces={[}{]},
bodyfont=\normalfont,
headpunct={.},
postheadspace=\newline,
postheadhook={\textcolor{d_gray}{\rule[.6ex]{\linewidth}{0.4pt}}\\},
spacebelow=0pt,
spaceabove=0pt,
mdframed={
backgroundcolor=l_gray!80,
linecolor=l_gray,
roundcorner=0pt,
innertopmargin=4pt,
innerbottommargin=4pt,
innerleftmargin=4pt,
innerrightmargin=4pt,
skipabove=0pt,
skipbelow=0pt}
]{sumstyle}
\declaretheorem[
style=sumstyle,
name=Theorem,
numberwithin=section
]{innertheorem}
\newenvironment{theorem}{\begin{minipage}[t]{\linewidth}\begin{innertheorem}}{\end{innertheorem}\end{minipage}}
\begin{itemize}
\item \lipsum[1]
\item
\begin{theorem}
Suppose that
\begin{enumerate}
\item $f$ is piecewise continuous on the interval $0 \leq t \leq A$ for any positive $A$.
\item $\left| f \left( t \right) \right| \leq K e^{a t}$ when $t \geq M$. In this inequality, $K$, $a$, and $M$ are real constants, $K$ and $M$ necessarily positive.
\end{enumerate}
Then the Laplace transform $\mathcal{L} \left\{ f \left( t \right) \right\} = F \left( s \right)$, defined by Eq. \ref{eq:0601_04_LaPlaceTrans}, exists for $s > a$.
\end{theorem}
\item \lipsum[1]
\end{itemize}
但是,在 mdframed(和 theorem)环境中创建 minipage 似乎是错误的。也许我采取了一种完全错误的方法,我不知道。我期待任何回复!
我是 StackExchange 的新手,希望我已提供足够的信息。提前致谢!