diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-04-29 19:28:06 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-04-29 19:28:06 +0000 |
| commit | af1043bea359449fb8d373a296260565f7552595 (patch) | |
| tree | 0372c9e4b7d51301d3b8753c744a8cef42292e07 /docutils/test/functional/expected/latex_docinfo.tex | |
| parent | b41b05165a6c9df568bdaf4d649aa2d50b9f42a1 (diff) | |
| download | docutils-af1043bea359449fb8d373a296260565f7552595.tar.gz | |
latex2e writer: new custom macros
update relevant documentation (including spelling and whitespace fixes)
update tests
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5931 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/expected/latex_docinfo.tex')
| -rw-r--r-- | docutils/test/functional/expected/latex_docinfo.tex | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/docutils/test/functional/expected/latex_docinfo.tex b/docutils/test/functional/expected/latex_docinfo.tex index a34fae295..d53fda09c 100644 --- a/docutils/test/functional/expected/latex_docinfo.tex +++ b/docutils/test/functional/expected/latex_docinfo.tex @@ -4,18 +4,18 @@ %\usepackage[OT1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{ifthen} -\newlength{\locallinewidth} \usepackage{tabularx} \usepackage{typearea} +% provide a length variable and set it +\newcommand*{\DUprovidelength}[2]{ + \ifthenelse{\isundefined{#1}}{\newlength{#1}\setlength{#1}{#2}}{} +} %%% User specified packages and stylesheets %%% Fallback definitions for Docutils-specific commands % width of docinfo table: -\ifthenelse{\isundefined{\DUdocinfowidth}}{ - \newlength{\DUdocinfowidth} - \setlength{\DUdocinfowidth}{0.9\textwidth} -}{} +\DUprovidelength{\DUdocinfowidth}{0.9\textwidth} % hyperref (PDF hyperlinks): \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} @@ -48,6 +48,4 @@ South Barwell} \end{tabularx} \end{center} -\setlength{\locallinewidth}{\linewidth} - \end{document} |
