미니박스 내 단락 간격

미니박스 내 단락 간격

온갖 기믹을 다 시도해 보았으나 미니박스 내 이중 간격을 단일 공간으로 줄이려다 막히네요. (분명히 전역 \onehalfspacing 옵션을 유지하고 싶습니다.) 이것은 사소하게 들리지만(아마 그럴 것입니다) \parskip 및 \linespread를 변경하는 것은 미니페이지에서만 작동하는 것 같습니다. --- 미니박스 환경에서 이것을 변경하고 싶습니다. --- 내가 여기서 뭘 잘못하고 있는 걸까?

\documentclass{article}

\usepackage{setspace}
\onehalfspacing
\renewcommand{\arraystretch}{1}  % tables smaller spacing
\setlength{\tabcolsep}{5pt}

\usepackage{minibox}   % minipage without specific width

\begin{document}
\section{Immune System}

\newcommand{\belongs}[2] {  % \belongs
\noindent
\[
\minibox{#1}
\left \{
\minibox{#2}
\right .
\]
}

\noindent
\begin{minipage}{0.30\linewidth}
\belongs{antigen\\presenting\\cells}{
Macrophages \\
Dendritic cells \\
B cells}
\end{minipage}
\hfill
\begin{minipage}{0.30\linewidth}
\belongs{humoral\\response}{B cells}
\end{minipage}
\hfill
\begin{minipage}{0.30\linewidth}
\belongs{cell-mediated\\immunity}{
phagocytes \\
killer T cells \\
release of cytokines}
\end{minipage}

\end{document}

답변1

minibox단 하나의 열 이므로 이미 확장되었으므로 tabular수직으로 축소할 수 있습니다. 또한 줄 끝 앞에 공백을 두지 마십시오 .\arraystretch\onehalfspacing%

\documentclass{article}

\usepackage{setspace}
\onehalfspacing
\renewcommand{\arraystretch}{1}  % tables smaller spacing
\setlength{\tabcolsep}{5pt}

\usepackage{minibox}   % minipage without specific width

\begin{document}
\section{Immune System}

\newcommand{\belongs}[2] {% \belongs
\noindent
\[\renewcommand{\arraystretch}{.7}  
\minibox{#1}
\left \{
\minibox{#2}
\right .
\]%
}

\noindent
\begin{minipage}{0.30\linewidth}
\belongs{antigen\\presenting\\cells}{
Macrophages \\
Dendritic cells \\
B cells}
\end{minipage}
\hfill
\begin{minipage}{0.30\linewidth}
\belongs{humoral\\response}{B cells}
\end{minipage}
\hfill
\begin{minipage}{0.30\linewidth}
\belongs{cell-mediated\\immunity}{
phagocytes \\
killer T cells \\
release of cytokines}
\end{minipage}

\end{document}

관련 정보