这是一封典型的推荐信(格式简单),包括环境\mdframed
中的问题和回答\multicol
。我还包含了我通常在环境内部和外部包含的其他内容\multicol
。使用\lipsum
段落作为示例回答,这说明了奇怪的列/分页(尤其是第 2 页上的完全空白的列)。
我也在\framed
环境中尝试了这种方法,得到了类似的结果。
是否有一些提示或方法可以让框架段落以最小的间距堆叠并完全填满列?
我真正想要做的就是在我的回应段落周围放置框架,但让它们在环境中表现得像普通段落一样\multicol
。
谢谢!
\documentclass[10pt]{article}%
\usepackage{lipsum,multicol,paracol,tabularx}
\usepackage[linewidth=1pt]{mdframed}
\setlength{\parindent}{0pt}
\setlength{\parskip}{10pt}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% to address
\begin{tabular*}{\columnwidth}{lr}
Alice Q. Public \\
1234 Main Street \\
Anytown NY 12345 USA
\end{tabular*}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% letter body
\begin{multicols}{2}
This is a typical recommendation letter (minimally formatted) that includes questions and \texttt{\textbackslash mdframed} responses in a \texttt{\textbackslash multicol} environment. I have also included other things I typically include inside and outside of the \texttt{\textbackslash multicol} environment. Using \texttt{\textbackslash lipsum} paragraphs for example responses, this illustrates whacky column / pagination (especially a completely blank column on p2).
Is there some hint or something that will allow framed paragraphs to stack up with minimal spacing and fully fill the columns?
All I really want to do is put frames around my response paragraphs, but have them behave like normal paragraphs in the \texttt{\textbackslash multicol} environment.
{\em Table 1:}\vfill\null
\begin{tabularx}\columnwidth{|X|X}\cline{1-1}
Student's Name: & Bob Q. Public \\\cline{1-1}
Your Name: & Carol Q. Public \\\cline{1-1}
Your Email: & \texttt{[email protected]} \\\cline{1-1}
Your title: & \LaTeX\ hacker \\\cline{1-1}
\end{tabularx}
\vfill\null
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\em Question 1:}
\begin{mdframed}
\lipsum[1]
\end{mdframed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\em Question 2:}
\begin{mdframed}
\lipsum[2]
\end{mdframed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\em Question 3:}
\begin{mdframed}
\lipsum[3]
\end{mdframed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\em Question 4:}
\begin{mdframed}
\lipsum[4]
\end{mdframed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thank you very much.
\end{multicols}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% closing
\begin{paracol}{2}\switchcolumn
Sincerely,
\vspace{18pt}
Blah, blah, blah...
\end{paracol}
\end{document}