我一直在尝试为我的项目制作多层盒子,但我无法让它们看起来正确。这是它们现在的样子
下面是我用来制作它们的代码:
\boxed{
\!\begin{aligned}
&\textbf{FULL}
&The patient had mutation in \emph{HFE}.
\boxed{
\!\begin{aligned}
&\textbf{GENERAL}
&We found links between \emph{ABO}, \emph{BRAC1} and \emph{TP53}.
\boxed{
\!\begin{aligned}
&{\textbf{STRICT}
&We detected \emph{BRAC1} and \emph{BRAC2} in the patient.}
\end{aligned}
}
\end{aligned}
}
\end{aligned}
}
我希望最大的盒子能装下所有较小的盒子,等等。如有任何建议,我将不胜感激。
答案1
您可以使用\parbox
增大尺寸的 es(或者减小尺寸,取决于您如何看待它)。
\documentclass{article}
\begin{document}
\fbox{\parbox{4.5in}{\parindent=1em\relax\noindent\textbf
{FULL}
The patient had mutation in \emph{HFE}.
\fbox{\parbox{4in}{\parindent=1em\relax\noindent\textbf
{GENERAL}
We found links between \emph{ABO}, \emph{BRAC1} and \emph{TP53}.
\fbox{\parbox{3.5in}{\parindent=1em\relax\noindent\textbf
{STRICT}
We detected \emph{BRAC1} and \emph{BRAC2} in the patient.
}}
%
}}
%
}}
\end{document}