我有一个两列列表。有些项目应该用大括号分组,所以我尝试使用minipage
或parbox
或vbox
来分组它们,但是我丢失了分组项目前后行之间的垂直空间:
我如何确保垂直间距保持一致?
这是我的平均能量损失:
\documentclass[11pt]{report}
\usepackage[a4paper]{geometry}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage{multicol}
\usepackage[defaultlines=2,all]{nowidow}
\usepackage{ragged2e}
\usepackage{enumitem}
\usepackage{parskip}
\usepackage{calc}
\tolerance=1000
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,calc}
\makeatletter
\newcommand{\tikzmark}[1]{\protect\tikz[overlay,remember picture] \node (#1) {};}
\makeatother
\newenvironment{twocolumnitemize}[1]
{%
\begin{multicols}{2}[#1]
\raggedcolumns\RaggedRight
\begin{itemize}
}
{%
\end{itemize}
\end{multicols}
}
\begin{document}
\begin{twocolumnitemize}{This is from what I can remember, so there may be some mistakes:}
\tightlist
\item Sai (sometimes)
\item Nunchukas (sometimes)
\item Ninjato (sometimes)
\item Shuriken (15)
\item Bushido Blade (higher levels)
%\begin{minipage}[c]{\columnwidth}
\parbox[c]{\columnwidth}{%
\item Ninja Cowl \protect\tikzmark{xen-xheng-topbrace}
\item Ninja Garb (U)
\item Ninja Garb (L)
\item Tabi Boots \tikzmark{xen-xheng-bottombrace}
\begin{tikzpicture}[overlay, remember picture]
\draw [decoration={brace,amplitude=0.5em},decorate,ultra thick,black]
let \p1=(xen-xheng-topbrace), \p2=(xen-xheng-bottombrace) in
({max(\x1,\x2)+2em}, {\y1+0.8em}) -- node[right=0.6em] {\parbox{5em}{may not have all at once}} ({max(\x1,\x2)+2em}, {\y2});
\end{tikzpicture}
}
%\end{minipage}
\item Tosei-do (U) (higher levels)
\item Tosei-do (L) (higher levels)
\end{twocolumnitemize}
\end{document}
更新 1
如果我没有对这 4 个项目使用任何类型的分组,我将得到如下结果: