easylist 和 itemize 的设置

easylist 和 itemize 的设置

在以下 MWE(我正在使用 Lualatex)中,我需要一种方法来:

  • 减少 itemize/easylist 项目符号之间的垂直间距,以使它们与普通段落内的行之间的垂直间距相匹配。

  • 增加 itemize/easylist 的级别数量

  • 增加非项目符号项的缩进,使其与项目符号项的缩进相匹配

\documentclass[a4paper,12pt,twoside]{book}
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,margin=2.5cm,bindingoffset=0.5cm]{geometry} 
\usepackage{indentfirst} % indent first paragraph after section
\renewcommand{\baselinestretch}{1.5} 
\setcounter{secnumdepth}{6} 

\makeatletter 
\def\toclevel@subsubparagraph{6}
\providecommand\theHsubsubparagraph {\theHsubparagraph.\arabic{subsubparagraph}}
\newcounter {subsubparagraph}[subparagraph]
\renewcommand\thesubsubparagraph {\thesubparagraph.\@arabic\c@subsubparagraph}
\newcommand*\l@subsubparagraph{\@dottedtocline{6}{12em}{6em}}
\newcommand\subsubparagraph{\@startsection{subsubparagraph}{6}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize\itshape}}
\makeatother

\usepackage{enumitem}
\setlist[itemize]{noitemsep, topsep=0pt} 
\setlistdepth{9}

\setlist[itemize,1]{label=$\bullet$}
\setlist[itemize,2]{label=$\bullet$}
\setlist[itemize,3]{label=$\bullet$}
\setlist[itemize,4]{label=$\bullet$}
\setlist[itemize,5]{label=$\bullet$}
\setlist[itemize,6]{label=$\bullet$}
\setlist[itemize,7]{label=$\bullet$}
\setlist[itemize,8]{label=$\bullet$}
\setlist[itemize,9]{label=$\bullet$}
\renewlist{itemize}{itemize}{9}

\usepackage[at]{easylist} 

\usepackage[bidi=basic,layout=lists.tabular]{babel}
\babelfont[english]{rm}{Times New Roman}

\begin{document}
\begin{easylist}[itemize]
\ListProperties(Space1=0.1cm, % Level not 1, Space1,  Level 1
                Space1*=0.1cm,% Level 1,     Space1*, Level 1
                Space2=0.15cm,    % Level not 2, Space2,  Level 2
                Space2*=0.1cm, % Level 2,     Space2*, Level 2
                Space3=0.1cm, % Level not 3, Space3,  Level 3
                Space3*=0.1cm, % Level 3,     Space3*, Level 3
                )
@ Such subject is:
@@ rigid-bo:
   @@@ mics: 
   @@@@  bodies:
   @@@@  forces:
    @@@@@ errer:
\end{easylist}
\end{document}

编译输出

答案1

对于easylist,我没有使用它,所以我不知道。对于enumitem,你只需要指定一个空标签:

\documentclass[a4paper,12pt,twoside]{book}
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,margin=2.5cm,bindingoffset=0.5cm]{geometry}
\usepackage{indentfirst} % indent first paragraph after section
\renewcommand{\baselinestretch}{1.5}
\setcounter{secnumdepth}{6}

\makeatletter
\def\toclevel@subsubparagraph{6}
\providecommand\theHsubsubparagraph {\theHsubparagraph.\arabic{subsubparagraph}}
\newcounter {subsubparagraph}[subparagraph]
\renewcommand\thesubsubparagraph {\thesubparagraph.\@arabic\c@subsubparagraph}
\newcommand*\l@subsubparagraph{\@dottedtocline{6}{12em}{6em}}
\newcommand\subsubparagraph{\@startsection{subsubparagraph}{6}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize\itshape}}
\makeatother

\usepackage{enumitem}
\renewlist{itemize}{itemize}{9}
\setlist[itemize]{noitemsep, topsep=0pt}
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=\textendash}
\setlist[itemize,3]{label=*}
\setlist[itemize,4]{label=·}
\setlist[itemize,5]{label =}

\usepackage[bidi=basic, layout=lists. tabular]{babel}
\babelfont[english]{rm}{Times New Roman}

\begin{document}%

\begin{itemize}
  \item Such subject is:
\begin{itemize}
  \item rigid-bo:
\begin{itemize}
  \item mics:
\begin{itemize}
 \item forces:
  \item bodies:
\begin{itemize}
 \item errer:
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}

\end{document} 

在此处输入图片描述

答案2

关于通过使用 easlist 包添加更多级别,我在 r/latex 中看到了 u/Zephyron51 发布的答案
https://www.reddit.com/r/LaTeX/comments/3dgcm5/easylist_levels_not_going_past_4/ 源代码可以在以下位置找到: https://pastebin.com/bNqEUrvx

代码可以修改如下:

\documentclass[a4paper,12pt,twoside]{book}
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,margin=2.5cm,bindingoffset=0.5cm]{geometry} 
\usepackage{indentfirst} 
\renewcommand{\baselinestretch}{1.5} 
\setcounter{secnumdepth}{6} 

\makeatletter 
\def\toclevel@subsubparagraph{6}
\providecommand\theHsubsubparagraph {\theHsubparagraph.\arabic{subsubparagraph}}
\newcounter {subsubparagraph}[subparagraph]
\renewcommand\thesubsubparagraph {\thesubparagraph.\@arabic\c@subsubparagraph}
\newcommand*\l@subsubparagraph{\@dottedtocline{6}{12em}{6em}}
\newcommand\subsubparagraph{\@startsection{subsubparagraph}{6}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize\itshape}}
\makeatother

\usepackage{enumitem}
\renewlist{itemize}{itemize}{9}
\setlistdepth{9}
\setlist[itemize]{noitemsep, topsep=0pt}
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=\textendash}
\setlist[itemize,3]{label=*}
\setlist[itemize,4]{label=·}
\setlist[itemize,5]{label =}


\usepackage[at]{easylist} 
        \ListProperties(
                Progressive*=3ex,
                Space=5pt,
                Space*=5pt,
                Style1*=\textbullet\ \ ,
                Style2*=\begin{normalfont}\begin{bfseries}\textendash\end{bfseries}\end{normalfont} \ \ ,
                Style3*=\textasteriskcentered\ \ ,
                Style4*=\textperiodcentered\ \ ,
                Style5*=\textbullet\ \ ,
                Style6*=\begin{normalfont}\begin{bfseries}\textendash\end{bfseries}\end{normalfont}\ \ ,
                Style7*=\textasteriskcentered\ \ ,
                Style8*=\textperiodcentered\ \ ,
                Hide1=1,
                Hide2=2,
                Hide3=3,
                Hide4=4,
                Hide5=5,
                Hide6=6,
                Hide7=7,
                Hide8=8 )
                
                
\usepackage[bidi=basic,layout=lists.tabular]{babel}
\babelfont[english]{rm}{Times New Roman}

\begin{document}
 
 \begin{easylist}
\ListProperties(Space1=0.1cm, % Level not 1, Space1,  Level 1
                Space1*=0.1cm,% Level 1,     Space1*, Level 1
                Space2=0.15cm,    % Level not 2, Space2,  Level 2
                Space2*=0.1cm, % Level 2,     Space2*, Level 2
                Space3=0.1cm, % Level not 3, Space3,  Level 3
                Space3*=0.1cm, % Level 3,     Space3*, Level 3
                )
@ Such subject is:
@@ rigid-bo:
   @@@ mics: 
   @@@@  bodies:
   @@@@@  forces:
    @@@@@@ errer:
    @@@@@@@ errer:
    @@@@@@@@ errer: 
\end{easylist}
\end{document}

输出

相关内容