Skip to content

Commit 87fb2d8

Browse files
authored
[std, macros, styles] Use 'enumerate' package to make vertical spacing of lists uniform. (#1134)
This change makes it so that lists are now spaced the same regardless of whether they are preceded by a paragraph break.
1 parent 866c145 commit 87fb2d8

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install the `MacTeX distribution <http://tug.org/mactex/>`_.
2424
If you are on a slow network, you'll want to get the `BasicTeX package <http://tug.org/mactex/morepackages.html>`_ instead,
2525
then run the following command to install the other packages that the draft requires:
2626

27-
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts
27+
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem
2828

2929
------------
3030
Instructions

source/macros.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@
353353
%%--------------------------------------------------
354354
%% Indented text
355355
\newenvironment{indented}
356-
{\list{}{}\item\relax}
357-
{\endlist}
356+
{\begin{indenthelper}\item\relax}
357+
{\end{indenthelper}}
358358

359359
%%--------------------------------------------------
360360
%% Library item descriptions

source/std.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
\usepackage{parskip} % handle non-indented paragraphs "properly"
2222
\usepackage{array} % new column definitions for tables
2323
\usepackage[normalem]{ulem}
24+
\usepackage{enumitem}
2425
\usepackage{color} % define colors for strikeouts and underlines
2526
\usepackage{amsmath} % additional math symbols
2627
\usepackage{mathrsfs} % mathscr font

source/styles.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@
9898
% set style for main text
9999
\setlength{\parindent}{0pt}
100100
\setlength{\parskip}{1ex}
101-
\setlength{\partopsep}{-1.5ex}
101+
102+
% set style for lists (itemizations, enumerations)
103+
\setlength{\partopsep}{0pt}
104+
\newlist{indenthelper}{itemize}{1}
105+
\setlist[itemize]{parsep=\parskip, partopsep=0pt, itemsep=0pt, topsep=0pt}
106+
\setlist[enumerate]{parsep=\parskip, partopsep=0pt, itemsep=0pt, topsep=0pt}
107+
\setlist[indenthelper]{parsep=\parskip, partopsep=0pt, itemsep=0pt, topsep=0pt, label={}}
102108

103109
%%--------------------------------------------------
104110
%% set caption style and delimiter

0 commit comments

Comments
 (0)