git.iko.soy/typeable/pandoc
on master help sign in
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.

commite5573bca8f8c92bf96ed1525fb29fc8fb61dc44c authorJohn MacFarlane <jgm@berkeley.edu> dateFri 20 Nov 2015, 14:36 (11 years ago) parent73e2d79
5 files changed+18−22
data/templates+1−1 tests/lhs-test.latex+2−3 tests/lhs-test.latex+lhs+2−3 tests/writer.latex+4−5 tests/writers-lang-and-dir.latex+9−10
data/templates+1−1

Submodule changed.

tests/lhs-test.latex+2−3
@@ -72,9 +72,6 @@
7272\providecommand{\tightlist}{%
7373 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
7474\setcounter{secnumdepth}{0}
75−
76−\date{}
77−
7875% Redefines (sub)paragraphs to behave more like sections
7976\ifx\paragraph\undefined\else
8077\let\oldparagraph\paragraph
@@ -85,6 +82,8 @@
8582\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
8683\fi
8784
85+\date{}
86+
8887\begin{document}
8988
9089\section{lhs test}\label{lhs-test}
tests/lhs-test.latex+lhs+2−3
@@ -36,9 +36,6 @@
3636\providecommand{\tightlist}{%
3737 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
3838\setcounter{secnumdepth}{0}
39−
40−\date{}
41−
4239% Redefines (sub)paragraphs to behave more like sections
4340\ifx\paragraph\undefined\else
4441\let\oldparagraph\paragraph
@@ -49,6 +46,8 @@
4946\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
5047\fi
5148
49+\date{}
50+
5251\begin{document}
5352
5453\section{lhs test}\label{lhs-test}
tests/writer.latex+4−5
@@ -50,11 +50,6 @@
5050\providecommand{\tightlist}{%
5151 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
5252\setcounter{secnumdepth}{0}
53−
54−\title{Pandoc Test Suite}
55−\author{John MacFarlane \and Anonymous}
56−\date{July 17, 2006}
57−
5853% Redefines (sub)paragraphs to behave more like sections
5954\ifx\paragraph\undefined\else
6055\let\oldparagraph\paragraph
@@ -65,6 +60,10 @@
6560\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
6661\fi
6762
63+\title{Pandoc Test Suite}
64+\author{John MacFarlane \and Anonymous}
65+\date{July 17, 2006}
66+
6867\begin{document}
6968\maketitle
7069
tests/writers-lang-and-dir.latex+9−10
@@ -54,6 +54,15 @@
5454\providecommand{\tightlist}{%
5555 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
5656\setcounter{secnumdepth}{0}
57+% Redefines (sub)paragraphs to behave more like sections
58+\ifx\paragraph\undefined\else
59+\let\oldparagraph\paragraph
60+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
61+\fi
62+\ifx\subparagraph\undefined\else
63+\let\oldsubparagraph\subparagraph
64+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
65+\fi
5766\ifxetex
5867 % load bidi as late as possible as it modifies e.g. graphicx
5968 \usepackage{bidi}
@@ -68,16 +77,6 @@
6877
6978\date{}
7079
71−% Redefines (sub)paragraphs to behave more like sections
72−\ifx\paragraph\undefined\else
73−\let\oldparagraph\paragraph
74−\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
75−\fi
76−\ifx\subparagraph\undefined\else
77−\let\oldsubparagraph\subparagraph
78−\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
79−\fi
80−
8180\begin{document}
8281
8382\section{Empty Divs and Spans}\label{empty-divs-and-spans}