Commit graph

308 commits

Author SHA1 Message Date
John MacFarlane
09767991b2 OpenDocument: use text:p instead of text:h for title.
Using text:h causes problems with numbering.
See jgm/pandoc#2059.
2015-04-12 21:22:38 -07:00
John MacFarlane
7846f08b61 rst template: Added conditional role definition for raw-latex. 2015-04-07 22:07:11 -07:00
John MacFarlane
bed3f14dbc epub, epub3: added header-includes, include-before, include-after.
Closes jgm/pandoc#1987.
2015-04-07 21:10:00 -07:00
John MacFarlane
c3aa395c71 reveal.js template: move custom css after theme.
This allows custom css to modify themes, instead of being replaced
by themes.

Closes #91.
2015-04-07 20:31:00 -07:00
Kaixhin
aee1b3dea7 Add option for ToC color 2015-04-01 17:46:53 +01:00
John MacFarlane
1d55d84730 Merge pull request #89 from onlyjob/reveal.js
reveal.js: add new configurable options and comments:
2015-03-31 15:47:54 -07:00
Dmitry Smirnov
f51a985b21 reveal.js: add new configurable options and comments:
* Made option "center" configurable.
 * Added new options "maxScale" and "slideNumber".
 * Added comments to existing options.

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2015-04-01 08:21:39 +11:00
John MacFarlane
7bdcb5e43d Fixed some cosmetic spacing issues in reveal.js template. 2015-02-16 19:57:17 -08:00
John MacFarlane
260f7876a2 reveal.js template: Fixed link to theme. 2015-02-16 19:51:03 -08:00
John MacFarlane
7db5002730 Merge pull request #81 from aaron0browne/issue-80
Fix revealjs theme functionality
2015-01-31 19:49:12 -08:00
Aaron Browne
066b307b63 Fix revealjs theme functionality
Use up-to-date theme as link convention for revealjs. Leave old theme as
config option just in case. Match current revealjs behavior of
defaulting to "black" theme.

Fixes #80

Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2015-01-31 16:00:17 -05:00
John MacFarlane
cc302d99be Merge pull request #78 from EoinTravers/patch-1
Link to non-minified reveal.js JS and CSS files
2015-01-20 17:17:19 -08:00
Eoin Travers
8fd90a51ff Link to non-minified reveal.js JS and CSS files
`reveal.js` no longer ships with /css/reveal.min.css or /js/reveal.min.js, so template should refer to non-minified original files.
2015-01-19 21:37:44 +00:00
John MacFarlane
2b786e7518 Merge pull request #76 from ousia/master
YAML rights containing blank lines should be wrapped in a <div> (not <p>)
2014-12-28 11:25:26 -08:00
Pablo Rodríguez
5d80361089 replace <p class="rights"> with <div class="rights"> (fixes #75) 2014-12-28 18:10:24 +01:00
John MacFarlane
c76c6c5224 epub templates: insert id="cover" in body of cover page.
We check for the coverpage variable.
2014-11-17 15:42:00 -08:00
John MacFarlane
eac006ec6d Revert "epub, epub3: Added id="cover" to body of titlepage."
This reverts commit 63443da450.
2014-11-17 15:35:09 -08:00
John MacFarlane
9655f58e36 Revert "Removed extra body tag from epub3 template."
This reverts commit 7ff2baf592.
2014-11-17 15:34:59 -08:00
John MacFarlane
7ff2baf592 Removed extra body tag from epub3 template. 2014-11-16 21:12:04 -08:00
John MacFarlane
63443da450 epub, epub3: Added id="cover" to body of titlepage.
Closes jgm/pandoc#1758.
2014-11-16 20:58:17 -08: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
John MacFarlane
5c35a0a698 Merge pull request #70 from bluebirch/master
Fix polyglossia/biblatex problem with xelatex
2014-09-26 15:31:18 -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
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