diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-11-30 08:10:35 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-11-30 08:10:35 +0000 |
| commit | 84e53fb3fe0e6875e67515cbb0e04a13d6f86120 (patch) | |
| tree | 2d66f8ff78b1ccda04feb8857361f4fd40b387c3 /docutils/test | |
| parent | c1b2f204609c203e6c8dd998413a57c4fadf3123 (diff) | |
| download | docutils-84e53fb3fe0e6875e67515cbb0e04a13d6f86120.tar.gz | |
New ``latex_preamble`` setting, PDF standard fonts as default.
Use Times/Helvetica/Courier (the PDF standard fonts) as default fonts.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6204 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
| -rw-r--r-- | docutils/test/functional/expected/latex_docinfo.tex | 6 | ||||
| -rw-r--r-- | docutils/test/functional/expected/standalone_rst_latex.tex | 6 | ||||
| -rwxr-xr-x | docutils/test/test_writers/test_latex2e.py | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/latex_docinfo.tex b/docutils/test/functional/expected/latex_docinfo.tex index fc6861326..6aca23c5a 100644 --- a/docutils/test/functional/expected/latex_docinfo.tex +++ b/docutils/test/functional/expected/latex_docinfo.tex @@ -7,6 +7,12 @@ \usepackage[latin1]{inputenc} \usepackage{ifthen} +%%% Custom LaTeX preamble +% PDF Standard Fonts +\usepackage{mathptmx} % Times +\usepackage[scaled=.90]{helvet} +\usepackage{courier} + %%% User specified packages and stylesheets %%% Fallback definitions for Docutils-specific commands diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index 12ce43877..90cda8c95 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -17,6 +17,12 @@ \newlength{\DUtablewidth} % internal use in tables \usepackage{tabularx} +%%% Custom LaTeX preamble +% PDF Standard Fonts +\usepackage{mathptmx} % Times +\usepackage[scaled=.90]{helvet} +\usepackage{courier} + %%% User specified packages and stylesheets %%% Fallback definitions for Docutils-specific commands diff --git a/docutils/test/test_writers/test_latex2e.py b/docutils/test/test_writers/test_latex2e.py index bb3466b50..6e75930f9 100755 --- a/docutils/test/test_writers/test_latex2e.py +++ b/docutils/test/test_writers/test_latex2e.py @@ -36,6 +36,8 @@ r"""% generated by Docutils <http://docutils.sourceforge.net/> $head_prefix\usepackage{fixltx2e} % LaTeX patches, \textsubscript \usepackage{cmap} % fix search and cut-and-paste in PDF $requirements +%%% Custom LaTeX preamble +$latex_preamble %%% User specified packages and stylesheets $stylesheet %%% Fallback definitions for Docutils-specific commands @@ -52,6 +54,11 @@ requirements = r"""\usepackage{babel} \usepackage[latin1]{inputenc} \usepackage{ifthen} """, +latex_preamble = r"""% PDF Standard Fonts +\usepackage{mathptmx} % Times +\usepackage[scaled=.90]{helvet} +\usepackage{courier} +""", stylesheet = '', fallbacks = '', pdfsetup = r""" |
