Commit graph

138 commits

Author SHA1 Message Date
John MacFarlane
fea830fcd2 Added 'paper' after $papersize$ variable in latex template.
Thus you can say `papersize: a4` and the latex will contain
`a4paper`.

This change may break some existing workflows; if you currently
specify `a4paper`, you'll get `a4paperpaper` which is meaningless.

However, the change seems worth it, as it will make the
`papersize` variable work uniformly across ConTeXt, LaTeX,
and html->pdf via wkhtmltopdf.
2015-12-23 13:28:59 -08:00
John MacFarlane
7e91df709a Merge pull request #175 from twsh/thanks
Added option for thanks to default.latex
2015-12-19 18:28:09 -08:00
John MacFarlane
ddf17ce3df Merge pull request #172 from twsh/parskip
Use parskip.sty when the 'indent' option isn't set
2015-12-19 18:25:50 -08:00
Thomas Hodgson
01a0cadf98 Make loading parskip.sty conditional on its availability 2015-12-16 00:01:37 +00:00
Thomas Hodgson
f4742780dc Use biblio-style when setting biblatex options 2015-12-15 14:18:51 +00:00
Thomas Hodgson
8d86ed2b52 Added biblatex options 2015-12-15 14:18:51 +00:00
Thomas Hodgson
528cb518ef Added option for thanks 2015-12-15 14:16:37 +00:00
Thomas Hodgson
ac0f48c73f Use parskip.sty when the 'indent' option isn't set 2015-12-10 13:54:13 +00:00
John MacFarlane
293e847b76 Merge pull request #162 from adunning/patch-3
Make \euro conditional for XeTeX/LuaTeX.
2015-12-03 10:35:15 -08:00
Andrew Dunning
e45a3fac77 Make \euro conditional for XeTeX/LuaTeX.
Mirrors behaviour for pdfTeX.
2015-11-30 22:53:19 -05:00
Andrew Dunning
1811fb32eb Make color option change dependent on colorlinks.
The color options are only used for setting the link colour; it is otherwise redundant (someone wanting to add colour to other parts of the document will likely have more complex needs).
2015-11-30 22:46:50 -05:00
John MacFarlane
db3aec1a82 latex: Moved definitions of subparagraph, header-includes.
`header-includes` now occurs before setting of title,
author, etc.  This allows you to include a definition of
`\subtitle`, for example, before `\subtitle` is called.

Redefining of `\paragraph` and `\subparagraph` now occurs
before `header-includes` rather than after.
2015-11-20 14:30:24 -08:00
John MacFarlane
4ac59af242 latex: Use \subtitle command for subtitle, and give fallback defn.
The fallback definition is a no-op.  In a class that does not
define `\subtitle`, the `subtitle` will not appear.

This changes earlier behavior, which was to add the subtitle
to the title.  This had bad results with page headers etc.
2015-11-20 14:26:12 -08:00
John MacFarlane
769581dfe2 latex template: Removed setting of 'subject' from subtitle.
Subtitle isn't always subject. Also, subtitle can contain
formatting, so we'd need a plain text version as with title.
Easier to remove.
2015-11-20 14:20:28 -08:00
John MacFarlane
e94ed582b4 Revert "Merge pull request #158 from xoolive/pr-title"
This reverts commit edf101400a, reversing
changes made to ff9ebaa31a.
2015-11-20 11:38:01 -08:00
Xavier Olive
04f49ca4a1 Issue for title.meta when subtitle is set 2015-11-20 10:31:58 +01:00
Andrew Dunning
3ed48ae68f Make LaTeX/ConTeXt link colour optional.
Prevents a conflict when base text is not black. This makes the
`hidelinks` option redundant.
2015-11-09 11:10:47 -05:00
Andrew Dunning
e7f2258c89 Always use $for$ to allow multiple options in LaTeX/ConTeXt/Beamer.
Also makes minor improvements to spacing. Adds indenting option to ConTeXt and multiple header/footer texts.
2015-10-23 08:55:45 -04:00
John MacFarlane
06fe6706f1 Merge pull request #139 from adunning/patch-2
Simplify hyperref usage.
2015-10-20 14:59:38 -07:00
Andrew Dunning
a84f822c30 Change default LaTeX link colour to black.
This reflects the default behaviour of `hyperref` when `colorlinks` is not enabled (but instead sets the colour to black when it is not specified by the user, for the sake of simplicity).
2015-10-20 14:38:48 -04:00
John MacFarlane
5d0aaa0b39 Merge pull request #137 from mb21/lang-inlines
LaTeX template: add babel-otherlangs and babel-newcommands
2015-10-19 23:01:46 -07:00
Andrew Dunning
17f380f089 Simplify hyperref usage.
The different usage for `xetex` appears to have been a workaround for bugs fixed in 2009 (see my question on this at <http://tex.stackexchange.com/questions/273339/what-hyperref-options-should-be-used-for-correct-unicode-output>), meaning that the same options can be used for all engines. The `subtitle` is used to set the PDF subject, following ConTeXt. The `bookmarks` option is enabled by default and does not need to be repeated.
2015-10-19 18:21:58 -04:00
John MacFarlane
69609ded4e Merge pull request #135 from adunning/fontspec
Use Ligatures=TeX for fontspec.
2015-10-18 21:50:11 -07:00
mb21
e3cfba2926 LaTeX and beamer templates: add babel-otherlangs and babel-newcommands 2015-10-18 16:48:55 +02:00
Andrew Dunning
a91783cee3 Use Ligatures=TeX for fontspec.
This avoids the ‘use `Ligatures=TeX` instead of `Mapping=tex-text`’
warning when using LuaTeX. The manual clarifies: “for consistency
`Ligatures=TeX` will perform the same function as `Mapping=tex-text`.”
2015-10-16 08:41:15 -04:00
John MacFarlane
16a172d79c Merge pull request #133 from adunning/latex-options
Add fontenc, indent, subparagraph variables to LaTeX.
2015-10-14 10:02:49 -07:00
John MacFarlane
aad70de992 Merge pull request #113 from hugoroy/patch-1
Enable to hide links as plain text (hyperref option)
2015-10-13 20:31:51 -07:00
Andrew Dunning
4698c2f5cb Add fontenc, indent, subparagraph variables to LaTeX.
`fontenc` allows for a different encoding: closes #112.

`indent` and `subparagraph` allow the default Pandoc overrides for
these features to be disabled.
2015-10-11 02:03:42 -04:00
Andrew Dunning
92e66456ec Realign LaTeX and beamer templates.
Adds new language and bidi variables; removes duplicated
`\VerbatimFootnotes`.

The standard `fontspec` variables, previously omitted, are now
included. Beamer defaults to the font set as `sansfont`. If `mainfont`
is set, the `serif` font theme will also be used, which uses this for
the slide text (does not have to be a serif font per se).

The paragraph indentation and use of the `url` package seem to have had
no visible effect, and have been removed.
2015-10-11 01:39:56 -04:00
John MacFarlane
ff0db28a2c Merge pull request #130 from adunning/xltxtra
Remove xltxtra, xunicode from LaTeX template.
2015-10-10 16:07:25 -07:00
Andrew Dunning
5701a7cc35 Remove xltxtra, xunicode. 2015-10-10 11:22:30 -04:00
mb21
77cb2e5cfa Change variable to polyglossia-lang.name and .options 2015-10-07 22:46:44 +02:00
Xavier Olive
def68fce50 Keep the same options when color is already passed
Use `\PassOptionsToPackage` instead of `\usepackage` when package color
is already loaded.

Resolves: #116
See also: #107
2015-10-04 21:03:26 +02:00
Xavier Olive
f73de97de9 Deal with conflicts with tufte-handout.cls
There are several conflicts that are raised when you use tufte-handout
layout with the default.latex template, namely hyperref and color, which
are already loaded by the class.

This commit enables to only load `hyperref` and `color` packages if they
are not already loaded (by Tufte).
2015-10-04 21:03:26 +02:00
Andrew Dunning
1d728214e8 Allow for font options. 2015-09-29 16:55:50 -04:00
mb21
0b80b7006f Support bidirectional text output with XeLaTeX, ConTeXt and HTML 2015-09-26 21:28:09 +02:00
mb21
aabd14676b LaTeX, ConTeXt: more specific language variables 2015-08-20 23:14:27 +02:00
Hugo Roy
fbc42d0bbc hidelinks take no argument 2015-08-20 20:11:34 +02:00
Hugo Roy
2b7111ddec Enable to hide links as plain text (hyperref option)
Add a variable "hidelinks" to allow to hide links as plain text in LaTeX. It removes any color and borer. The variable does not need any particular argument  (see https://www.tug.org/applications/hyperref/manual.html)
2015-08-20 15:26:11 +02:00
John MacFarlane
8ea41996bf Revert "LaTeX template: move abstract to before \maketitle."
This reverts commit 988a712310.
2015-08-11 11:46:47 -07:00
John MacFarlane
988a712310 LaTeX template: move abstract to before \maketitle. 2015-08-09 09:45:11 -07:00
John MacFarlane
4d9a73d767 Merge pull request #106 from xoolive/pr-cjk
Pass options to CJKmainfont (CJKoption)
2015-06-27 18:06:38 -07:00
Xavier Olive
efed5dd879 Rename CJKoption to CJKoptions 2015-06-27 18:41:26 +02:00
Xavier Olive
8ca9de455b Add dvipsnames colors 2015-06-24 22:54:57 +02:00
Xavier Olive
742d658f5f Pass options to CJKmainfont (CJKoption) 2015-06-24 22:54:06 +02:00
Xavier Olive
fc6ef27970 Support for Asian languages, CJKmainfont label
Works only with xelatex.
This is not a big deal since when it hits on a utf8 unknown char (say Asian script), pandoc suggests to switch to the xelatex engine.
2015-06-02 22:53:58 +02:00
John MacFarlane
92e84768b8 LaTeX template: move hyperref before polyglossia.
This avoids a warning: “Package bidi Error: Oops! you have loaded package
hyperref after bidi package. Please load package hyperref before bidi package,
and then try to run xelatex on your document again.”

Closes #96.
2015-05-27 12:22:55 -07:00
John MacFarlane
4e72f2bff9 LaTeX, beamer: add setotherlanguages to polyglossia. 2015-05-27 12:14:54 -07:00
John MacFarlane
513c4388c3 Merge pull request #90 from Kaixhin/master
Add option for ToC color
2015-05-27 10:28:25 -07:00
John MacFarlane
da35eb3c4a Beamer, LaTeX templates: Use bibliography instead of biblio-files.
Also use `\addbibresource` instead of `\bibliography` for biblatex.

See jgm/pandoc#1661.
2015-05-11 21:13:25 -07:00