aboutsummaryrefslogtreecommitdiff
path: root/default.latex
AgeCommit message (Collapse)AuthorFilesLines
2016-08-04Load "beamerarticle" first (if needed)Carsten Gips1-0/+3
The beamerarticle package needs to be loaded directly after the documentclass declaration. Loading it later (e.g. using the -H option) leads to several errors due to package dependencies. This patch also introduces a new variable "beamerarticle" to activate the beamerarticle package.
2016-07-14Added `\institute`Thomas Hodgson1-0/+1
Fixes https://github.com/jgm/pandoc-templates/issues/204 by adding a dummy `\institute` command.
2016-07-01Pass $biblatexoptions$ directly to biblatexThomas Hodgson1-2/+1
Addresses https://github.com/jgm/pandoc-templates/issues/201
2016-06-25Added secnumdepth variable to LaTeX template.John MacFarlane1-1/+1
2016-06-07Fix for obscure hyperref/xelatex issue.John MacFarlane1-2/+2
Here's a minimal case: \documentclass[]{article} \usepackage{hyperref} \begin{document} \section{\%á} \end{document} Without this change, this fails on the second invocation of xelatex. See https://tex.stackexchange.com/questions/313266/and-non-ascii-characters-in-headings This affects inputs this like # %á with pdf output via xelatex.
2016-05-18Custom font familiesVladislav Turbanov1-0/+3
Adding ability to define custom font families. Needed for correct polyglossia operation with Cyrillic fonts and perhaps can find some other usages. Example usage in YAML metadata: ``` fontfamilies: - name: \cyrillicfont font: Liberation Serif - name: \cyrillicfonttt options: Scale=MatchLowercase font: Liberation Mono ```
2016-03-19Merge pull request #79 from josefs/masterJohn MacFarlane1-0/+3
Add $institute to the latex template
2015-12-23Added 'paper' after $papersize$ variable in latex template.John MacFarlane1-1/+1
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-19Merge pull request #175 from twsh/thanksJohn MacFarlane1-1/+1
Added option for thanks to default.latex
2015-12-19Merge pull request #172 from twsh/parskipJohn MacFarlane1-0/+4
Use parskip.sty when the 'indent' option isn't set
2015-12-16Make loading parskip.sty conditional on its availabilityThomas Hodgson1-0/+5
2015-12-15Use biblio-style when setting biblatex optionsThomas Hodgson1-1/+2
2015-12-15Added biblatex optionsThomas Hodgson1-1/+1
2015-12-15Added option for thanksThomas Hodgson1-1/+1
2015-12-10Use parskip.sty when the 'indent' option isn't setThomas Hodgson1-2/+1
2015-12-03Merge pull request #162 from adunning/patch-3John MacFarlane1-0/+2
Make \euro conditional for XeTeX/LuaTeX.
2015-11-30Make \euro conditional for XeTeX/LuaTeX.Andrew Dunning1-0/+2
Mirrors behaviour for pdfTeX.
2015-11-30Make color option change dependent on colorlinks.Andrew Dunning1-0/+2
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-20latex: Moved definitions of subparagraph, header-includes.John MacFarlane1-16/+15
`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-20latex: Use \subtitle command for subtitle, and give fallback defn.John MacFarlane1-1/+5
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-20latex template: Removed setting of 'subject' from subtitle.John MacFarlane1-3/+0
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-20Revert "Merge pull request #158 from xoolive/pr-title"John MacFarlane1-1/+1
This reverts commit edf101400a07fd099910fd52c5c55d83855b4c38, reversing changes made to ff9ebaa31ae31401e236574e81c2e75609adc727.
2015-11-20Issue for title.meta when subtitle is setXavier Olive1-1/+1
2015-11-09Make LaTeX/ConTeXt link colour optional.Andrew Dunning1-7/+11
Prevents a conflict when base text is not black. This makes the `hidelinks` option redundant.
2015-10-23Always use $for$ to allow multiple options in LaTeX/ConTeXt/Beamer.Andrew Dunning1-12/+22
Also makes minor improvements to spacing. Adds indenting option to ConTeXt and multiple header/footer texts.
2015-10-20Merge pull request #139 from adunning/patch-2John MacFarlane1-24/+12
Simplify hyperref usage.
2015-10-20Change default LaTeX link colour to black.Andrew Dunning1-3/+3
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-19Merge pull request #137 from mb21/lang-inlinesJohn MacFarlane1-3/+4
LaTeX template: add babel-otherlangs and babel-newcommands
2015-10-19Simplify hyperref usage.Andrew Dunning1-21/+9
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-18Merge pull request #135 from adunning/fontspecJohn MacFarlane1-1/+1
Use Ligatures=TeX for fontspec.
2015-10-18LaTeX and beamer templates: add babel-otherlangs and babel-newcommandsmb211-3/+4
2015-10-16Use Ligatures=TeX for fontspec.Andrew Dunning1-1/+1
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-14Merge pull request #133 from adunning/latex-optionsJohn MacFarlane1-1/+7
Add fontenc, indent, subparagraph variables to LaTeX.
2015-10-13Merge pull request #113 from hugoroy/patch-1John MacFarlane1-1/+2
Enable to hide links as plain text (hyperref option)
2015-10-11Add fontenc, indent, subparagraph variables to LaTeX.Andrew Dunning1-1/+7
`fontenc` allows for a different encoding: closes #112. `indent` and `subparagraph` allow the default Pandoc overrides for these features to be disabled.
2015-10-11Realign LaTeX and beamer templates.Andrew Dunning1-4/+1
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-10Merge pull request #130 from adunning/xltxtraJohn MacFarlane1-1/+0
Remove xltxtra, xunicode from LaTeX template.
2015-10-10Remove xltxtra, xunicode.Andrew Dunning1-1/+0
2015-10-07Change variable to polyglossia-lang.name and .optionsmb211-2/+4
2015-10-04Keep the same options when color is already passedXavier Olive1-4/+4
Use `\PassOptionsToPackage` instead of `\usepackage` when package color is already loaded. Resolves: #116 See also: #107
2015-10-04Deal with conflicts with tufte-handout.clsXavier Olive1-0/+8
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-09-29Allow for font options.Andrew Dunning1-5/+5
2015-09-26Support bidirectional text output with XeLaTeX, ConTeXt and HTMLmb211-0/+17
2015-08-20LaTeX, ConTeXt: more specific language variablesmb211-4/+4
2015-08-20hidelinks take no argumentHugo Roy1-2/+2
2015-08-20Enable to hide links as plain text (hyperref option)Hugo Roy1-0/+1
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-11Revert "LaTeX template: move abstract to before `\maketitle`."John MacFarlane1-3/+3
This reverts commit 988a712310194d1994b71aacfc42616c6c75ac06.
2015-08-09LaTeX template: move abstract to before `\maketitle`.John MacFarlane1-3/+3
2015-06-27Merge pull request #106 from xoolive/pr-cjkJohn MacFarlane1-1/+1
Pass options to CJKmainfont (CJKoption)
2015-06-27Rename CJKoption to CJKoptionsXavier Olive1-1/+1