From 50583e9e3f586ef93edf6108fde9b1801b231088 Mon Sep 17 00:00:00 2001
From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
Date: Mon, 1 Mar 2010 22:24:19 +0000
Subject: 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
---
 tests/writer.latex | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'tests/writer.latex')

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}}}}
-- 
cgit v1.2.3

