我正在使用itemize
并minipage
观察到项目之间意外的间距。
\documentclass[11pt,table,a4paper]{article}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage[top=.5cm, bottom=2cm, left=1cm, right=1cm]{geometry}
\usepackage{wrapfig}
\usepackage{enumitem}
\begin{document}
This is first line.\newline
\begin{minipage}{\textwidth}\begin{itemize}[topsep=0ex]
\item First Item
\item Second Item
\item Third Item
\end{itemize}\end{minipage}
\newline This is second line.
\end{document}
我该如何解决这个问题?
答案1
我对此不确定,但也许以下内容就是您正在寻找的。
代码
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\noindent This is first line.\\[\baselineskip]
\begin{minipage}{\textwidth}
\begin{itemize}
\item First Item
\item Second Item
\item Third Item
\end{itemize}
\end{minipage}
\\[\baselineskip] This is second line.
\end{document}
输出
更新
代码
\documentclass{article}
\usepackage{enumitem}
\setlength\parindent{0pt}
\begin{document}
This is first line.\\[0.5\baselineskip]
\begin{minipage}{\textwidth}
\begin{itemize}
\item First Item
\item Second Item
\item Third Item
\end{itemize}
\end{minipage}
\\[0.5\baselineskip] This is second line.
\end{document}
输出