aboutsummaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-03-01 22:24:19 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-03-01 22:24:19 +0000
commit50583e9e3f586ef93edf6108fde9b1801b231088 (patch)
treef047ee4c4a463e6d0cfd1eb84a13e796f506160c /templates/latex.template
parent6059b43574cc2145a3ecf2a05ed89a464df2e135 (diff)
downloadpandoc-50583e9e3f586ef93edf6108fde9b1801b231088.tar.gz
LaTeX template: redefine labelwidth when using enumerate package.
Otherwise the list labels (numbers) often extend past the left margin, which looks bad. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1858 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template6
1 files changed, 6 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)$