为什么我的逐项列出行间距这么大?

为什么我的逐项列出行间距这么大?

我的其他 itemize 没有这个问题,那为什么这个有呢?代码如下:

\documentclass[12pt,twoside, a4paper]{report}
\usepackage[utf8]{vietnam}
\usepackage{mathptmx}
\usepackage[margin=1in]{geometry}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{array}
\usepackage{pifont}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}

\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\setlist[enumerate]{
    labelindent=25pt,
    leftmargin=*,
}
\setlist[itemize]{
    labelindent=25pt,
    leftmargin=*,
}
\titleformat{\chapter}[hang] 
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter:}{0em}{\centering} 
\titlespacing*{\chapter}{0pt}{-40pt}{20pt}
\makeatletter
\DeclareRobustCommand*\School[1]{\gdef\@School{#1}}
\DeclareRobustCommand*\Department[1]{\gdef\@Department{#1}}
\DeclareRobustCommand*\Author[1]{\gdef\@Author{#1}}
\newcommand\Maketitle{%
  \author{\@Author\\\@School, \@Department}%
  \maketitle
}
\makeatother
\makeatletter
\renewcommand{\@chapapp}{Bài}

\makeatother



\titlelabel{\thetitle.\quad}



\begin{document}
\chapter{ Sản xuất giống cây trồng}
\section{Mục đích của công tác sản xuất giống cây trồng}
\begin{itemize}
    \item Duy trì, củng cố độ thuần chủng, sức sống và tính trạng điển hình của giống
    \item Tạo ra số lượng giống cần thết để cung cấp cho sản xuất đại trà
    \item Đưa giống tốt phổ biến vào sản xuất
\end{itemize}
\section{Hệ thống sản xuất giống cây trồng}

Hệ thống sản xuất giống cây trồng gồm 3 giai đoạn

\tikzstyle{block} = [rectangle, draw, text width=5em, text centered, minimum width=3cm, minimum height=1cm]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{text} = [textwidth = 3em]
\begin{tikzpicture}[node distance = 1cm, auto]
    \node [block] (bl1) {Hạt giống SNC};
    \node [block, below of=bl1, node distance=2cm] (bl2) {Hạt giống \\ NC};
    \node [block, below of=bl2, node distance=2cm] (bl3) {Hạt giống XN};
    \node [below right of = bl3, node distance=3cm] (bl4) {Sản xuất đại trà};

    \path [line] (bl1) -- (bl2);
    \path [line] (bl2) -- (bl3);
    \path [line] (bl3) |- (bl4);

\end{tikzpicture}

\begin{center}
\begin{tabular}{ | M{4em} | M{4cm}| M{4cm} |  } 
\hline
 & \textbf{Chất lượng, độ thuần, nguồn gốc} &\textbf{Nơi thực hiện}  \\
 \hline
 \textbf{Hạt siêu nguyên chủng} & Cao \par Được sản xuất từ hạt SNC & Công ty, trung tâm sản xuất giống cây trồng \\
 \hline
 \textbf{Hạt xác nhận} & Cao \par Được sản xuất từ hạt NC & Cơ sở nhân giống, trung tâm và các cơ sở sản xuất để sản xuất đại trà \\
 \hline
\end{tabular}
\end{center}
\section{Quy trình sản xuất giống cây trồng}
\begin{center}
    \begin{tabular}{ | M{3em} | M{3cm} | M{3cm} | M{3cm} | M{3cm} | }
        \hline
         & \textbf{Cây tự thụ phấn} &\textbf{Cây thụ phấn chéo} 
         & \textbf{Cây nhân giống vô tính} & \textbf{Cây rừng}  \\
         \hline
         \textbf{Đặc điểm} & & & & \\
         \hline
         \textbf{Vật liệu khởi đầu} & & & & \\
         \hline
         \textbf{Cách li} & & & & \\
         \hline
         \textbf{Thời gian} & & & & \\
         \hline
    \end{tabular}
\end{center}
\end{document}

答案1

使用[noitemsep]論點。

\documentclass[12pt,twoside, a4paper]{report}
\usepackage[utf8]{vietnam}
\usepackage{mathptmx}
\usepackage[margin=1in]{geometry}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{array}
\usepackage{pifont}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}

\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\setlist[enumerate]{
    labelindent=25pt,
    leftmargin=*,
}
\setlist[itemize]{
    labelindent=25pt,
    leftmargin=*,
}
\titleformat{\chapter}[hang] 
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter:}{0em}{\centering} 
\titlespacing*{\chapter}{0pt}{-40pt}{20pt}
\makeatletter
\DeclareRobustCommand*\School[1]{\gdef\@School{#1}}
\DeclareRobustCommand*\Department[1]{\gdef\@Department{#1}}
\DeclareRobustCommand*\Author[1]{\gdef\@Author{#1}}
\newcommand\Maketitle{%
  \author{\@Author\\\@School, \@Department}%
  \maketitle
}
\makeatother
\makeatletter
\renewcommand{\@chapapp}{Bài}

\makeatother



\titlelabel{\thetitle.\quad}



\begin{document}
\chapter{ Sản xuất giống cây trồng}
\section{Mục đích của công tác sản xuất giống cây trồng}
\begin{itemize}[noitemsep]
    \item Duy trì, củng cố độ thuần chủng, sức sống và tính trạng điển hình của giống
    \item Tạo ra số lượng giống cần thết để cung cấp cho sản xuất đại trà
    \item Đưa giống tốt phổ biến vào sản xuất
\end{itemize}
\section{Hệ thống sản xuất giống cây trồng}

Hệ thống sản xuất giống cây trồng gồm 3 giai đoạn

\tikzstyle{block} = [rectangle, draw, text width=5em, text centered, minimum width=3cm, minimum height=1cm]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{text} = [textwidth = 3em]
\begin{tikzpicture}[node distance = 1cm, auto]
    \node [block] (bl1) {Hạt giống SNC};
    \node [block, below of=bl1, node distance=2cm] (bl2) {Hạt giống \\ NC};
    \node [block, below of=bl2, node distance=2cm] (bl3) {Hạt giống XN};
    \node [below right of = bl3, node distance=3cm] (bl4) {Sản xuất đại trà};

    \path [line] (bl1) -- (bl2);
    \path [line] (bl2) -- (bl3);
    \path [line] (bl3) |- (bl4);

\end{tikzpicture}

\begin{center}
\begin{tabular}{ | M{4em} | M{4cm}| M{4cm} |  } 
\hline
 & \textbf{Chất lượng, độ thuần, nguồn gốc} &\textbf{Nơi thực hiện}  \\
 \hline
 \textbf{Hạt siêu nguyên chủng} & Cao \par Được sản xuất từ hạt SNC & Công ty, trung tâm sản xuất giống cây trồng \\
 \hline
 \textbf{Hạt xác nhận} & Cao \par Được sản xuất từ hạt NC & Cơ sở nhân giống, trung tâm và các cơ sở sản xuất để sản xuất đại trà \\
 \hline
\end{tabular}
\end{center}
\section{Quy trình sản xuất giống cây trồng}
\begin{center}
    \begin{tabular}{ | M{3em} | M{3cm} | M{3cm} | M{3cm} | M{3cm} | }
        \hline
         & \textbf{Cây tự thụ phấn} &\textbf{Cây thụ phấn chéo} 
         & \textbf{Cây nhân giống vô tính} & \textbf{Cây rừng}  \\
         \hline
         \textbf{Đặc điểm} & & & & \\
         \hline
         \textbf{Vật liệu khởi đầu} & & & & \\
         \hline
         \textbf{Cách li} & & & & \\
         \hline
         \textbf{Thời gian} & & & & \\
         \hline
    \end{tabular}
\end{center}
\end{document}

答案2

通过twoside打印,您会得到\flushbottom,即页面上的垂直空间被拉伸,因此最终基线位于文本块的底部。

在像当前这样的具有大块的文档中,这很可能会导致您看到的问题。

使用\raggedbottom

我还做了其他一些更改。

  1. 我选择了 和 的组合tgtermes,而newtxmath不是mathptmx。文本字体是 TeX Gyre Termes,它是 Times 的克隆版,在越南语版本中,它的倾斜重音较少。 提供的数学字体newtxmath比 的渲染效果好得多mathptmx,后者是几十年前的黑客作品。

  2. \tikzstyle已被弃用好几年了。

  3. 您使用的指令没有任何理由\DeclareRobustCommand

  4. 你 不想 改变\@chapapp, 但是\chaptername.

  5. \arraybackslash从列类型的定义中删除了;\tabularnewline当最后一列是MP类型时,这会强制使用,但避免\par在单元格中使用笨拙的命令。

  6. 我添加了\linespread{1.05}稍微宽一点的基线之间的距离,以避免双重音符与前一行的降部发生冲突。

<---还请检查代码中标有的几个地方。

\documentclass[12pt,twoside, a4paper]{report}
\usepackage[utf8]{vietnam}
\usepackage{tgtermes}
\usepackage{newtxmath}
\usepackage[margin=1in]{geometry}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{array}
\usepackage{pifont}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}

%% array
\newcolumntype{P}[1]{>{\centering}p{#1}}
\newcolumntype{M}[1]{>{\centering}m{#1}}

%% enumitem
\setlist[enumerate]{
    labelindent=25pt,
    leftmargin=*,
}
\setlist[itemize]{
    labelindent=25pt,
    leftmargin=*,
}

%% titlesec
\titleformat{\chapter}[hang] 
  {\normalfont\huge\bfseries}
  {\chaptertitlename\ \thechapter: }% <--- a space here!
  {0em}
  {\filcenter}
\titlespacing*{\chapter}{0pt}{-40pt}{20pt}
\titlelabel{\thetitle.\quad}

%% tikz
\tikzset{
  block/.style = {
    rectangle,
    draw,
    text width=5em,
    text centered,
    minimum width=3cm,
    minimum height=1cm,
  },
  line/.style = {
    draw,
    -latex',
  },
  text/.style = {textwidth = 3em}
}

%% personal commands
\makeatletter
\newcommand*\School[1]{\gdef\@School{#1}}
\newcommand*\Department[1]{\gdef\@Department{#1}}
\newcommand*\Author[1]{\gdef\@Author{#1}}
\newcommand\Maketitle{%
  \author{\@Author \\ \@School, \@Department}%
  \maketitle
}
\makeatother

%% final settings
\AtBeginDocument{\renewcommand{\chaptername}{Bài}}
\linespread{1.05}
\raggedbottom

\begin{document}

\chapter{Sản xuất giống cây trồng}

\section{Mục đích của công tác sản xuất giống cây trồng}

\begin{itemize}
    \item Duy trì, củng cố độ thuần chủng, sức sống và tính trạng điển hình của giống
    \item Tạo ra số lượng giống cần thết để cung cấp cho sản xuất đại trà
    \item Đưa giống tốt phổ biến vào sản xuất
\end{itemize}
\section{Hệ thống sản xuất giống cây trồng}

Hệ thống sản xuất giống cây trồng gồm 3 giai đoạn

\medskip % <--- space out a bit

\begin{tikzpicture}[node distance = 1cm, auto]
    \node [block] (bl1) {Hạt giống SNC};
    \node [block, below of=bl1, node distance=2cm] (bl2) {Hạt giống \\ NC};
    \node [block, below of=bl2, node distance=2cm] (bl3) {Hạt giống XN};
    \node [below right of = bl3, node distance=3cm] (bl4) {Sản xuất đại trà};

    \path [line] (bl1) -- (bl2);
    \path [line] (bl2) -- (bl3);
    \path [line] (bl3) |- (bl4);
\end{tikzpicture}

\begin{center}
\begin{tabular}{ | M{4em} | M{4cm}| M{4cm} |  } 
\hline
 & \textbf{Chất lượng, độ thuần, nguồn gốc} &\textbf{Nơi thực hiện}  \tabularnewline
 \hline
 \textbf{Hạt siêu nguyên chủng} & Cao \\ Được sản xuất từ hạt SNC & Công ty, trung tâm sản xuất giống cây trồng \tabularnewline
 \hline
 \textbf{Hạt xác nhận} & Cao \\ Được sản xuất từ hạt NC & Cơ sở nhân giống, trung tâm và các cơ sở sản xuất để sản xuất đại trà \tabularnewline
 \hline
\end{tabular}
\end{center}
\section{Quy trình sản xuất giống cây trồng}
\begin{center}
    \begin{tabular}{ | M{3em} | M{3cm} | M{3cm} | M{3cm} | M{3cm} | }
        \hline
         & \textbf{Cây tự thụ phấn} &\textbf{Cây thụ phấn chéo} 
         & \textbf{Cây nhân giống vô tính} & \textbf{Cây rừng}  \tabularnewline
         \hline
         \textbf{Đặc điểm} & & & & \tabularnewline
         \hline
         \textbf{Vật liệu khởi đầu} & & & & \tabularnewline
         \hline
         \textbf{Cách li} & & & & \tabularnewline
         \hline
         \textbf{Thời gian} & & & & \tabularnewline
         \hline
    \end{tabular}
\end{center}

\end{document}

在此处输入图片描述

当然,解决这个问题的另一种方法是给表格和图片添加标题,并让它们随table环境浮动figure

相关内容