diff options
-rw-r--r-- | templates/latex.template | 6 | ||||
-rw-r--r-- | tests/writer.latex | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/latex.template b/templates/latex.template index fb40d506a..bca71f091 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -25,6 +25,12 @@ $if(verbatim-in-note)$ \usepackage{fancyvrb} $endif$ $if(fancy-enums)$ +% Redefine labelwidth for lists; otherwise, the enumerate package will cause +% markers to extend beyond the left margin. +\makeatletter\AtBeginDocument{% + \renewcommand{\@listi} + {\setlength{\labelwidth}{4em}} +}\makeatother \usepackage{enumerate} $endif$ $if(tables)$ diff --git a/tests/writer.latex b/tests/writer.latex index dcbca54e7..a23625252 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -3,6 +3,12 @@ \usepackage[mathletters]{ucs} \usepackage[utf8x]{inputenc} \usepackage{fancyvrb} +% Redefine labelwidth for lists; otherwise, the enumerate package will cause +% markers to extend beyond the left margin. +\makeatletter\AtBeginDocument{% + \renewcommand{\@listi} + {\setlength{\labelwidth}{4em}} +}\makeatother \usepackage{enumerate} \usepackage[normalem]{ulem} \newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}} |