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
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
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
Nikolay Yakimov
0f736312db
Fix paragraph undefined problem
2015-05-03 21:11:36 +03:00
John MacFarlane
81c1a2216b
latex template: use providecommand for tightlist.
...
This avoids a conflict when the memoir class is used.
Closes #94 .
2015-05-02 09:08:39 -07:00
John MacFarlane
d248c9d638
LaTeX template: Added \tightlist
definition.
...
See jgm/pandoc#1571 .
2015-04-17 19:22:28 -07:00
Nikolay Yakimov
9ca76d3fbe
Redefine (sub)paragraphs in default LaTeX template
...
This should make those behave more like sections, as per https://github.com/jgm/pandoc/issues/1658
2015-04-17 23:26:21 +03:00
John MacFarlane
12ba81ec96
LaTeX: include grffile when including graphics.
...
This allows filenames with spaces etc. See jgm/pandoc#2074 .
2015-04-13 08:53:08 -07:00
Kaixhin
aee1b3dea7
Add option for ToC color
2015-04-01 17:46:53 +01:00
John MacFarlane
ec057f0ad3
LaTeX template: Add shorthands=off to babel options.
...
This prevents special bindings of characters like " in Spanish.
2014-09-27 17:05:17 -07:00
Stefan Björk
19525bdeda
Revert "Use biblatex-chicago instead of biblatex."
...
This reverts commit a0ea58bc2e
.
2014-09-25 09:54:01 +02:00
Stefan Björk
a0ea58bc2e
Use biblatex-chicago instead of biblatex.
2014-09-24 14:53:14 +02:00
Stefan Björk
a9a9180432
Fixed typo.
2014-09-24 14:36:17 +02:00
Stefan Björk
a4b477f6e6
Moved polyglossia/babel definitions to before biblatex; otherwise biblatex fails with xetex.
2014-09-24 14:31:39 +02:00
John MacFarlane
a63c58b23e
Added \VerbatimFootnotes if there is verbatim in notes.
...
See http://tex.stackexchange.com/questions/203/how-to-obtain-verbatim-text-in-a-footnote
Closes jgm/pandoc#1616 .
2014-09-09 09:35:33 -07:00
John MacFarlane
7be841cee6
latex template: disable protrusion for typewriter font.
...
Closes #1549 . Thanks to lemzwerg.
2014-08-20 08:16:51 -07:00
John MacFarlane
3befef257c
Added lot
and lof
variables to latex template.
...
lof = list of figures.
lot = list of tables.
2014-07-20 21:54:45 -07:00
John MacFarlane
2c51fb0c40
Fixed subtitle in latex template.
...
See jgm/pandoc#1327 .
2014-06-09 22:33:13 -07:00
John MacFarlane
20fab138d3
LaTeX template: fix subtitles.
...
The old code really requires scrartcl from koma-script.
Closes #1327 .
2014-06-09 22:29:21 -07:00
John MacFarlane
9f1636367e
LaTeX/Beamer templates: Remove conditionalization around date.
...
This restores the old behavior, where no date was printed
if no date was specified. If the `\date` command is removed
entirely, standard document classes will print today's date.
Closes #1321 .
Partially reverts fc5229df16
.
See #61 .
2014-06-01 15:26:23 -07:00
John MacFarlane
620e8fe5e1
latex template: Added linestretch variable that loads setspace.
2014-05-06 10:16:09 -07:00
John MacFarlane
04e59d4df8
latex template: Added fontfamily variable.
...
Thanks to tlvince for the patch. Closes #50 .
2014-05-06 09:54:00 -07:00
John MacFarlane
fc5229df16
latex template: conditionalize author and date.
...
Thanks to ivoanjo for the patch. Closes #61 .
2014-05-06 09:48:59 -07:00
John MacFarlane
5de411030b
Load upquote after fontenc in latex template.
2014-05-06 09:05:46 -07:00