diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:36:47 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:40:27 -0800 |
commit | e5573bca8f8c92bf96ed1525fb29fc8fb61dc44c (patch) | |
tree | 6a982a9570b5dac2af2a58e995c4c0c397c4832e /tests/writers-lang-and-dir.latex | |
parent | 73e2d7976c06cc6087f2c4a63538593076fb5623 (diff) |
latex template changes.
* Removed setting of `subject` in PDF metadata.
This used to be set to the subtitle, but really the subtitle
need not give the subject. Also, `subtitle` can contain formatting,
so we'd need, at least, a plain text version for this.
* Moved `header-includes` before setting of `\title`, `\author`,
etc. This allows these macros to be redefined.
* Use `\subtitle` command for `subtitle`, instead of tacking it
on to the title as before. We give a no-op fallback definition if it is
not defined. This change should produce much better results
in classes that support `\subtitle`. With the default article
class, which does not define `\subtitle`, subtitles will no
longer be printed unless the user defines `\subtitle` and
redefines `\maketitle`.
* Moved redefinitions of `\paragraph` and `\subparagraph` to
before header-includes.
Diffstat (limited to 'tests/writers-lang-and-dir.latex')
-rw-r--r-- | tests/writers-lang-and-dir.latex | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/writers-lang-and-dir.latex b/tests/writers-lang-and-dir.latex index 3f4ecd5e3..5e8ea293a 100644 --- a/tests/writers-lang-and-dir.latex +++ b/tests/writers-lang-and-dir.latex @@ -54,6 +54,15 @@ \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} \setcounter{secnumdepth}{0} +% Redefines (sub)paragraphs to behave more like sections +\ifx\paragraph\undefined\else +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\fi +\ifx\subparagraph\undefined\else +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} +\fi \ifxetex % load bidi as late as possible as it modifies e.g. graphicx \usepackage{bidi} @@ -68,16 +77,6 @@ \date{} -% Redefines (sub)paragraphs to behave more like sections -\ifx\paragraph\undefined\else -\let\oldparagraph\paragraph -\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} -\fi -\ifx\subparagraph\undefined\else -\let\oldsubparagraph\subparagraph -\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} -\fi - \begin{document} \section{Empty Divs and Spans}\label{empty-divs-and-spans} |