我正在尝试制作一个简单的待办事项列表,其中左侧有复选框和一些文本,右侧有与当前行底部对齐的水平线。目前,行间距比复选框列表更紧密。
由于某种原因,和\parskip
不会\baselineskip
改变间距,最重要的是不会对齐两边。
有人能帮我修复一下吗?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multido}
\newcommand{\drawline}{\noindent\rule{0.9\textwidth}{0.5pt}\par}
\newcommand{\Repeat}{\multido{\i=1+1}}
\usepackage{geometry}
\geometry{
a4paper,
left=25mm,
headheight=27mm,
footskip=8mm,
bottom=20mm,
right=12mm
}
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\pagestyle{fancy}% Change page style to fancy
\fancyhf{}% Clear header/footer
\fancyhead[L]{Checkliste Bewehrungseisen}
\fancyfoot[R]{\thepage\hspace{1cm}}
\renewcommand{\headrulewidth}{0.3pt}
\renewcommand{\footrulewidth}{0.3pt}
\usepackage{enumitem,amssymb}
\newlist{todolist}{itemize}{2}
\setlist[todolist]{label=$\square$}
%%----------------------------------------------------------
\begin{document}
\begin{minipage}[t]{0.4\textwidth}
\begin{todolist}
\item List item 1 goes here.
\item List item 2 goes here.
\begin{todolist}
\item Sublist item 1 goes here.
\item Sublist item 2 goes here.
\end{todolist}
\item List item 3 goes here
\item List item 4 goes here.
\end{todolist}
\clearpage
\end{minipage}%
\hfill
\vrule
\hfill
\begin{minipage}[t]{0.5\textwidth}
\Repeat{6}{\drawline}
\end{minipage}
\end{document}