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
Josef Svenningsson
7688f0f78b
Add $institute to the latex template
...
Adding the $institute variable allows me to use pandoc for writing
papers using the llncs document class.
http://www.springer.com/computer/lncs/lncs+authors?SGWID=0-40209-0-0-0
2015-01-25 14:56:34 +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
Yihui Xie
a3cce8d359
Use \setkeys{Gin}{} to set appropriate defaults for \includegraphics, instead of entirely redefining this command.
...
Note we also consider the height of images; if an image is too high, 0.8\textheight will be used for beamer slides, and \textheight is used for articles (see http://tex.stackexchange.com/q/11954/9128 ).
If the user has explicitly provided the width/height options in \includegraphics[], our defaults will be overwritten, and this approach is better than the check `\@ifnextchar[` after \includegraphics because the latter approach simply gives up everything once it sees [, whereas \setkeys{Gin} can keep the good defaults unless they are explicitly overwritten in [].
closes #30 , closes #28 , and closes #26
2014-04-11 17:22:45 -05:00
John MacFarlane
2afb0792ba
Revert "LaTeX template: Allow bibliography to be used in place of biblio-files."
...
This reverts commit 5f8d7968fe
.
I'll use a different approach, setting the biblio-files variable
in the LaTeX writer. This will also work for beamer.
See #42 .
2014-04-11 11:11:16 -07:00
John MacFarlane
5f8d7968fe
LaTeX template: Allow bibliography to be used in place of biblio-files.
...
Closes #43 . Thanks to nougad.
2014-04-11 11:08:54 -07:00
John MacFarlane
3a0ed995ca
default.latex: include fontenc only if pdflatex engine is used.
...
See pandoc #1164 .
2014-02-20 09:36:20 -08:00
John MacFarlane
dd1d637420
latex template: Put header includes after title.
...
Closes pandoc#908.
2013-12-11 22:34:57 -08:00
John MacFarlane
dd178889f6
Added abstract variable in latex template.
2013-12-11 22:05:20 -08:00
Jose Luis Duran
f643a076d8
LaTeX template: Add booktabs package
2013-12-02 09:58:55 +00:00
John MacFarlane
120bed772b
LaTeX template: Added biblio-style
variable.
2013-07-20 10:51:52 -07:00
John MacFarlane
24dab8e06e
LaTeX/Beamer templates: Add classoption variable.
...
This is intended for class options like `oneside`; it may
be repeated with different options.
2013-07-17 15:05:45 -07:00
John MacFarlane
cb23306c27
default.latex: Use tex-ansi mapping for monofont.
...
This ensures that straight quotes appear as straight, rather than
being treated as curly. See pandoc#889.
2013-07-04 14:48:39 -07:00
John MacFarlane
050ea0fa8d
Merge pull request #31 from aaronwolen/master
...
Provide a variable to define citation color
2013-06-24 09:18:31 -07:00
John MacFarlane
64544dea58
Added subtitle to html and latex formats.
2013-06-21 22:48:49 -07:00
Aaron Wolen
796eb50f8d
Add citecolor variable
2013-06-18 11:42:32 -05:00
John MacFarlane
7a93757ff1
default.latex: Use \ScaleIfNeeded w/ nicer def instead of \maxwidth.
2013-05-07 17:30:44 -07:00
John MacFarlane
2c876edb60
default.latex: Redefine includegraphics to allow custom options.
...
Thanks to Bernhard Weichel.
Now, literal \includegraphics commands with square-bracketed options
will work properly. When no options are given, a default option
limits images to the text width.
2013-05-07 16:01:11 -07:00
John MacFarlane
6836e16da2
LaTeX template: Changes to make mathfont work with xelatex.
...
We need the mathspec library, not just fontspec, for this.
We also need to set options for setmathfont.
2013-04-25 21:06:58 -07:00
Douglas F. Calvert
a1f7cce1f9
Load microtype after fonts.
...
Microtype needs to know what fonts are in use and it is suggested that it is aded after loading fonts.
2013-02-26 21:21:31 -05:00
John MacFarlane
eb7dfde58b
LaTeX template: set secnumdepth to 5 if --number-sections
specified.
...
This yields behavior equivalent to the other writers, numbering
level 4 and 5 headers too.
2013-02-18 08:49:37 -08:00
John MacFarlane
5ed01e0e8e
LaTeX template: Don't use monospace font for URLs.
2013-01-21 11:42:42 -08:00
John MacFarlane
3474aecee9
Added conditional import of upquote package.
...
This fixes straight quotes in verbatim.
2013-01-19 09:40:26 -08:00
John MacFarlane
25ad173f00
toc-level -> toc-depth.
2013-01-05 11:58:09 -08:00
John MacFarlane
d541256441
Added tocdepth to latex template.
2013-01-05 11:49:10 -08:00
John MacFarlane
3bbb793e41
LaTeX, beamer templates: Don't require 'float' package.
...
AS far as I can see, it isn't needed by anything pandoc does.
2012-09-16 22:26:16 -07:00
John MacFarlane
6d4f0a78a0
Beamer, LaTeX templates: removed enumerate package.
2012-09-16 22:23:02 -07:00
John MacFarlane
22628ea9aa
LaTeX, beamer: Use longtable instead of ctable.
2012-09-15 17:40:49 -04:00
Raphael
254bc55c65
papersize variable in the LaTeX template
...
Adds a variable `papersize` in the LaTeX template which controls, surprise, paper size. Possible values are those the chosen `documentclass` allows.
2012-09-04 08:48:07 +03:00
John MacFarlane
4b27abf404
LaTeX template: Separate urlcolor
and linkcolor
variables.
2012-06-08 10:56:57 -07:00
John MacFarlane
ba5f9741a1
LaTeX template: use ifxetex, ifluatex instead of iftex.
...
iftex is not in debian.
2012-06-05 22:21:41 -07:00
John MacFarlane
8806382b9a
Removed extra blank line.
2012-06-05 11:49:37 -07:00
John MacFarlane
b5d67647dc
LaTeX: Use blank \date{} if no date specified.
...
This way we don't get a date unless a date is explicitly specified.
2012-06-05 11:41:06 -07:00
John MacFarlane
b9d2a1595d
Use iftex instead of ifluatex, ifxetex. Simplified template.
2012-06-05 11:35:17 -07:00
John MacFarlane
aa67d0c69f
LaTeX: Use fontenc [T1] and lmodern fonts.
...
This gives better behavior for accented characters.
2012-06-05 11:35:03 -07:00
John MacFarlane
cb68b11fb4
LaTeX: Make TOC links black.
2012-06-05 10:04:42 -07:00
John MacFarlane
242daf3377
Added links-as-notes variable to print links as footnotes
2012-06-05 10:04:36 -07:00
John MacFarlane
02120505d6
LaTeX: added linkcolor variable
2012-06-05 10:04:15 -07:00
John MacFarlane
3bc667281e
LaTeX template: Use black for internal links.
...
This ensures that the table of contents will not be colored.
Also added commented-out code to use footnotes for internal
links (for print purposes).
2012-06-03 10:57:58 -07:00
Paul Vorbach
bdf9629138
Add option urlcolor=blue
to package hyperref
2012-04-26 10:04:28 +03:00
John MacFarlane
c819cf2149
LaTeX and Beamer: Use fixltx2e package for \textsubscript.
2012-04-21 09:59:21 -07:00
John MacFarlane
8e7c61c307
LaTeX template: only include eurosym if the document uses a euro symbol.
2012-04-03 18:48:42 -07:00
John MacFarlane
401f84bb04
Include PDF metadata (author, title) in latex template.
2012-03-25 12:03:24 -07:00
John MacFarlane
0aa45c20bc
LaTeX template: Added mathfont variable.
2012-03-15 14:38:21 -07:00
John MacFarlane
329c356da6
LaTeX: use mainfont instead of romanfont, allow multiple geometry.
2012-03-15 10:48:08 -07:00
John MacFarlane
efd4ae929d
FIxed spacing in latex template.
2012-03-14 19:06:17 -07:00
John MacFarlane
48c5b8eca7
LaTeX template: don't use SetupFonts macro.
2012-03-14 18:49:48 -07:00
John MacFarlane
6269b216b4
Added romanfont, sansfont, monofont variables to latex template.
...
Note: These only work with xelatex/lualatex.
2012-03-14 14:40:47 -07:00
John MacFarlane
188e01f80e
Added geometry
variable.
2012-03-14 14:17:05 -07:00
John MacFarlane
49d45a23dc
LaTeX template: use mainlang variable in \setmainlanguage.
2012-03-05 08:37:04 -08:00
John MacFarlane
d8fc051068
LaTeX commands to deal with \euro command with every engine.
2012-03-04 18:52:20 -08:00
John MacFarlane
49e113d0d1
Better language defaults in LaTeX template.
...
Thansk to Francois Gannaz. The lang variable is now included, if set,
in documentclass options. polyglossia is used instead of babel if
xetex.
2012-03-04 18:42:42 -08:00
John MacFarlane
f26a6351b2
Split off default.beamer from default.latex.
2012-01-30 11:25:39 -08:00
John MacFarlane
b8385d84d7
LaTeX: Don't include \maxwidth in beamer.
...
It causes an error when you include an image.
2012-01-30 09:17:09 -08:00
John MacFarlane
c6ffb2602f
latex: use ignorenonframetext on beamer, and make proper title slide.
2012-01-25 17:49:11 -08:00
John MacFarlane
83f2fdd9e2
LaTeX template: code for section title slides in beamer.
2012-01-25 10:39:54 -08:00
John MacFarlane
04e35de2de
LaTeX template: color links blue.
2011-12-30 14:29:37 -08:00
John MacFarlane
9f199556ef
LaTeX template: Changes to allow beamer output.
2011-12-29 13:25:36 -08:00
John MacFarlane
0d116481c0
LateX: Instead of having multiple imports of listings, combine to one.
2011-12-23 18:24:04 -08:00
John MacFarlane
ac3ddfed96
Add highlighting macros to default latex template.
2011-12-23 17:51:07 -08:00
John MacFarlane
cdfe1966da
Revert "LaTeX: Use \date{} if no date in metadata."
...
This reverts commit 9ebdb944b6
.
2011-12-01 19:03:39 -08:00
John MacFarlane
9ebdb944b6
LaTeX: Use \date{} if no date in metadata.
...
Thanks to Daron Wilson for the suggestion.
2011-12-01 19:01:53 -08:00
John MacFarlane
6c48030dcd
LaTeX template: if 'lang' is set, load babel.
...
Thanks to Magnus Therning for the suggestion.
2011-11-27 20:36:37 -08:00
John MacFarlane
b1a3d5fa8a
LaTeX template: Minor spacing changes.
2011-07-30 17:03:03 -07:00
John MacFarlane
ce85f7cd30
Removed ucs package and utf8 from default latex template.
...
This is no longer supported, and it clashes with packages
like biblatex and csquotes.
http://groups.google.com/group/comp.text.tex/browse_thread/thread/e0b0bec4e0dbf8b5/5487c7b0a170b95f?q=utf8x+group%3acomp.text.tex#5487c7b0a170b95f
2011-07-30 16:22:47 -07:00