Commit graph

231 commits

Author SHA1 Message Date
John MacFarlane
2d5491bc0b EPUB, EPUB3 templates: Handle structured metadata on titlepage.
Previously we just expected 'title', 'subtitle', 'author', 'date'.

Now we still support those, but also support the format recommended
for epub metadata in the pandoc README:

---
title:
- type: main
  text: My Book
- type: subtitle
  text: An investigation of metadata
creator:
- role: author
  text: John Smith
- role: editor
  text: Sarah Jones
identifier:
- scheme: DOI
  text: doi:10.234234.234/33
publisher:  My Press
rights:  (c) 2007 John Smith, CC BY-NC
...
2014-08-31 12:00:37 -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
ecb769cb7b Typo: duel->dual. (#13) 2014-08-17 09:57:11 -07:00
John MacFarlane
950b54c55c Indicate that the templates are duel licensed, GPLv2+ and BSD3.
Closes #13.
2014-08-16 16:47:16 -07:00
John MacFarlane
095196e8d6 epub3: Put title page in section w epub:type titlepage. 2014-08-12 17:06:11 -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
4425dfc894 Added type="text/css" to link tags in epub3 template. 2014-07-08 00:23:51 -06:00
John MacFarlane
95f515decb Merge pull request #65 from claremacrae/dokuwiki
Merge in template file for Dokuwiki support
2014-06-28 13:40:15 -07:00
Clare Macrae
f3d3f64d31 Merge remote-tracking branch 'jgm/master' into dokuwiki 2014-06-28 18:25:36 +01:00
John MacFarlane
f3b3f2dda6 Added default.haddock. 2014-06-18 17:48:06 -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
John MacFarlane
3719269b45 Merge pull request #60 from yihui/patch-1
upquote must be used after fontenc
2014-05-06 09:03:58 -07:00
Yihui Xie
032af5ecee upquote must be used after fontenc
otherwise single quotes in verbatim environments will be in trouble; see an example at http://stackoverflow.com/a/12852815/559676
2014-05-06 00:21:02 -07:00
John MacFarlane
c3a7937a28 Merge pull request #58 from yihui/master
Use \setkeys{Gin}{} to set appropriate defaults for \includegraphics
2014-04-30 23:20:42 -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
7c977fe097 Merge pull request #44 from aaronwolen/beamer-captions
Beamer template: Consistent styles for figure and table captions
2014-04-11 11:02:12 -07:00
Garrick Aden-Buie
b8ae07eb09 Fix issue #52: set max width and height of images in default.beamer 2014-04-11 10:52:09 -07:00
John MacFarlane
79806d4417 reveal.js template: Fix PDF print function.
See pandoc issue #1220.
2014-04-05 15:23:36 -07:00
John MacFarlane
44723bcc95 DocBook template: Use authorgroup. 2014-04-04 21:43:02 -07:00
John MacFarlane
7de81bf0a5 Added caption package to beamer template.
Closes #1200.
2014-04-04 13:13:09 -07:00
John MacFarlane
0ab594bc47 Merge pull request #54 from KarolS/master
Improving Unicode support in the Beamer template
2014-03-19 11:11:23 -07:00
John MacFarlane
c6eedc3727 Merge pull request #46 from mb21/master
InDesign ICML template
2014-03-04 10:27:08 -08:00
mb21
7e808534ad InDesign ICML template 2014-02-28 13:09:41 +01:00
KarolS
088fccaeda Backported changes from default.latex to default.beamer in order to improve Unicode support 2014-02-26 21:51:29 +01: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
Alexander Belyaev
cf4e5f4520 Moved $include-after$ to the closing </body>
See https://groups.google.com/forum/#!topic/pandoc-discuss/Fbfh8IIcVds
2014-02-12 01:59:25 +04:00
John MacFarlane
50ca8c85d9 Merge pull request #49 from lionandoil/master
Fixing default.beamer includegraphics redefinition to allow custom options
2013-12-13 21:41:43 -08:00
Kevin
c1f20a285a Fixing default.beamer includegraphics redefinition to allow custom options 2013-12-13 11:06:31 +00: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
John MacFarlane
e3c8bae0b1 Merge pull request #48 from lionandoil/master
Beamer template: add booktabs package
2013-12-09 10:54:10 -08:00
Kevin
ccdf08caea Beamer template: add booktabs package 2013-12-09 18:40:44 +00:00
John MacFarlane
93d667c0be Merge pull request #47 from jlduran/booktabs
LaTeX template: Add booktabs package
2013-12-03 20:54:56 -08:00
Jose Luis Duran
f643a076d8 LaTeX template: Add booktabs package 2013-12-02 09:58:55 +00:00
John MacFarlane
713a8f63d5 ConTeXt template: Setup up defaults for floats.
This allows the user to adjust the figure and table placement
and numbering globally.
2013-11-30 16:15:53 -08:00
John MacFarlane
8cadd4f204 ConTeXt template: setup captions with no numbering.
See pandoc #1067.
2013-11-22 19:50:26 -08:00
aaronwolen
6db8eff46a Beamer template: Consistent styles for figure and table captions 2013-10-23 20:50:33 -04:00
John MacFarlane
4bdebc73b0 Beamer template: put slide around bibliography with natbib or biblatex. 2013-10-21 14:29:08 -07:00
John MacFarlane
0bb5f9ba20 opendocument: Replaced fontface variable with actual declaration. 2013-09-24 18:40:52 -07:00
John MacFarlane
2720ba3abd Merge pull request #41 from wilx/master
default.opendocument: Add $font-face-decls$ field.
2013-09-24 18:27:15 -07:00
Václav Zeman
605a8d351e default.opendocument: Add $font-face-decls$ field. 2013-09-25 01:13:38 +02:00
John MacFarlane
1ccb16bb33 Merge pull request #38 from ErikEvenson/pr/html5-meta-scale
Adds meta tag to allow scaling by the user.
2013-09-07 22:57:21 -07:00