创建间距减小、无项目符号且第 1 级以粗体显示的列表

创建间距减小、无项目符号且第 1 级以粗体显示的列表

尝试使用 flowfram 在两列页面的左侧制作一个小的主题列表。我尝试使用 itemize 制作列表,但无法使标题和子标题之间的间距足够小。

这是最接近我想要的视觉效果。我想要做的是在底部的图像中。

\documentclass[a4paper,12pt]{memoir} % Font and paper size
\usepackage{flowfram} % Required for the multi-column layout

% Define the left frame (sidebar)
\newflowframe{0.28\textwidth}{\textheight}{0pt}{0pt}[left]
\newlength{\LeftMainSep}
\setlength{\LeftMainSep}{0.28\textwidth}
\addtolength{\LeftMainSep}{1\columnsep}
 
% Define the right frame (main body)
\addtolength{\LeftMainSep}{1.5pt}
\addtolength{\LeftMainSep}{1\columnsep}
\newflowframe{0.65\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]

\pagestyle{empty} % Disable all page numbering

\setlength{\parindent}{0pt} % Stop paragraph indentation


\begin{document}
    {\small\textbf{Here is a caption 1}}\\
    {\tiny Caption 1 subtext}\\

    {\small\textbf{Here is a caption 2}}\\
    {\tiny Caption 2 subtext}\\
    
    {\small \textbf{Here is caption 3}}\\
    {\tiny Caption 3 subtext}\\
        
    {\small \textbf{Here is caption 4}}\\
    {\tiny Caption 4 subtext}\\
\end{document}  

我拥有的与我想要的

答案1

对于基线距离,\baselineskip段落末尾的 始终是有效的。由于 的分组,{\small…}和与您代码的所有{\tiny…}行相关。例如,您可以使用:\baselineskip\normalsize

\documentclass[a4paper,12pt]{memoir} % Font and paper size
\usepackage{flowfram} % Required for the multi-column layout

% Define the left frame (sidebar)
\newflowframe{0.28\textwidth}{\textheight}{0pt}{0pt}[left]
\newlength{\LeftMainSep}
\setlength{\LeftMainSep}{0.28\textwidth}
\addtolength{\LeftMainSep}{1\columnsep}
 
% Define the right frame (main body)
\addtolength{\LeftMainSep}{1.5pt}
\addtolength{\LeftMainSep}{1\columnsep}
\newflowframe{0.65\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]

\pagestyle{empty} % Disable all page numbering

\setlength{\parindent}{0pt} % Stop paragraph indentation


\begin{document}
\raggedright
    \small\textbf{Here is a caption 1}\\
    \tiny Caption 1 subtext\par\normalsize\vspace{\baselineskip}

    \small\textbf{Here is a caption 2}\\
    \tiny Caption 2 subtext\par\normalsize\vspace{\baselineskip}
    
    \small \textbf{Here is caption 3}\\
    \tiny Caption 3 subtext\par\normalsize\vspace{\baselineskip}
        
    \small \textbf{Here is caption 4}\\
    \tiny Caption 4 subtext\par\normalsize
\end{document}

在此处输入图片描述

相关内容