Commit Graph
10211 Commits
Author SHA1 Message Date
John MacFarlane 46d8b42da5 AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis.
In AsciiDoc, you must use a special form of emphasis (double `__`)
for intraword emphasis.  Pandoc was previously using this more
than necessary.

Closes #3068.
2016-10-02 21:51:34 +02:00
John MacFarlane a99d81dce3 Revert overhasty bounds change for pandoc-types. 2016-10-02 20:58:24 +02:00
John MacFarlane c28c16d463 Use doctemplates 0.1.0.2. 2016-10-02 12:29:37 +02:00
John MacFarlane 7ecafa6ff1 Removed unneeded stack.hsb2hs.yaml. 2016-10-02 11:09:47 +02:00
John MacFarlane fcb45c3505 Use doctemplates 0.1.0.1. 2016-10-02 11:07:10 +02:00
John MacFarlane e4b74aa2e5 Added doctemplates to stack.lts6.yaml. 2016-10-02 09:42:16 +02:00
John MacFarlane 5ec9b6352c Moved template compiling/rendering code to a separate library.
jgm/doctemplates.

This allows the pandoc templating system to be used independently.
2016-10-02 09:30:26 +02:00
John MacFarlane f49ed2e71a Removed cabal 1.16 cruft from .travis.yml. 2016-10-01 21:12:01 +02:00
John MacFarlane 9a2d92a395 Merge pull request #3136 from nichtich/patch-1
Execute .js filters with node
2016-09-30 08:30:04 +02:00
Jakob Voß 06fa6986d1 Execute .js filters with node 2016-09-30 07:20:43 +02:00
John MacFarlane 6b2bb8f1cc Update changelog. 2016-09-28 12:53:36 +02:00
John MacFarlane e95047ed85 Markdown reader: added bracket syntax for native spans.
See #168.

Text.Pandoc.Options.Extension has a new constructor `Ext_brackted_spans`,
which is enabled by default in pandoc's Markdown.
2016-09-28 12:33:05 +02:00
John MacFarlane 03167bb447 Updated test suite. 2016-09-28 12:01:42 +02:00
John MacFarlane 66575ab620 Updated changelog 2016-09-28 11:36:53 +02:00
John MacFarlane ae32d71da4 LaTeX template: use footnote package to fix notes in tables.
Thanks to Václav Haisman.
2016-09-28 11:35:13 +02:00
John MacFarlane 1475299c9a LaTeX template: fix footnotes in tables.
This requires the footnote package, which is imported only
if present.

See #208.  Thanks to Václav Haisman.
2016-09-28 11:34:00 +02:00
John MacFarlane 0ab833ecd7 revealjs template: Added notes-server option (Yoan Blanc).
jgm/pandoc-templates#212
2016-09-28 11:31:23 +02:00
John MacFarlane cbbadf94c8 Merge pull request #212 from greut/notes-server
Addition of notes-server option.
2016-09-28 11:29:56 +02:00
John MacFarlane 78c142be5f Updated changelog. 2016-09-28 11:28:25 +02:00
John MacFarlane a244aff244 LaTeX template: set default figure placement.
Thanks to Václav Haisman.  This accompanies #3093.

This change allows users to set the default figure placement
for figures, instead of enforcing one choice.

Users with custom templates will need to add this.
2016-09-28 11:19:12 +02:00
John MacFarlane e1a88be15b Added a comment. 2016-09-28 11:18:31 +02:00
John MacFarlane c6d3eca44e Merge pull request #3093 from wilx/master-figure-placement
LaTeX: Do not set [htbp] figure placement options.
2016-09-28 11:17:48 +02:00
John MacFarlane f3ab4bc2b9 Merge pull request #215 from wilx/master-figure-placement
LaTeX: Set figure placement defaults.
2016-09-28 11:17:32 +02:00
John MacFarlane 14a26f99e8 Whitespace fixes. 2016-09-28 11:12:05 +02:00
Jesse Rosenthal cc5c5c1037 Update MANUAL.txt for new filter behavior. 2016-09-27 12:25:21 -04:00
Jesse Rosenthal ec6d0638be Check $DATADIR/filters for filters
If the `$DATADIR/filters` is present, pandoc will look in it for filters
specified without a path, before looking in the $PATH. Note that unlike
executables in $PATH, the `filters` dir may contain scripts that are not
executable (pandoc will try to execute them using an associated
interpreter, if possible).

Note: the `filters` dir has priority over the user path. In order of
preference, pandoc will look in:

  1. a specified full or relative path (executable or non-executable)
  2. `$DATADIR/filters` (executable or non-executable)
  3. `$PATH` (executable only)

This closes #3127.
2016-09-27 11:56:39 -04:00
John MacFarlane e7c3ea44bd Updated man page and MANUAL date. 2016-09-26 14:25:24 +02:00
John MacFarlane cacb9c0fcb USe latest pandoc-citeproc in binary package stack.yaml. 2016-09-25 23:06:18 +02:00
John MacFarlane 820ab51401 Use p tags for subtitle, author, date in epub, revealjs, slidy templates.
See #3119.
2016-09-25 21:44:16 +02:00
John MacFarlane 8db1c36001 Use p tag for subtitle, author, date in epub, revealjs, slidy. 2016-09-25 21:43:19 +02:00
John MacFarlane b43ebd2af2 HTML template: use p instead of h1 for subtitle, author, date.
Closes #3119.
2016-09-25 21:36:54 +02:00
John MacFarlane f2b84d021d Merge pull request #218 from tarleb/html5-semantical-header
Put only one heading element in top-level header
2016-09-25 21:36:09 +02:00
Albert Krewinkel 859acea0b5 Put only one heading element in top-level header
Every heading element semantically creates a new section.  Three
consecutive heading elements, e.g. `<h1></h1>`, `<h2></h2>`,
`<h3></h3>`, are semantically equivallent to a section with two nested
subsections.  This is not the intended meaning of subtitle, author, and
date, making plain `<p>` elements the better choice.  This is one of the
W3C's [common idioms].

This change is the result of discussions on issue jgm/pandoc#3119.

[common idioms]: https://www.w3.org/TR/html5/common-idioms.html#common-idioms

Fixes: jgm/pandoc#3119
2016-09-23 22:04:54 +02:00
John MacFarlane dfb1676c5c Updated changelog. 2016-09-23 18:13:10 +02:00
John MacFarlane e70d8488eb Beamer template: added support for fontfamilies.
As already in LaTeX.
Closes #216.
2016-09-23 18:11:54 +02:00
John MacFarlane 00491f422b Merge pull request #216 from artemklevtsov/patch-1
Custom font families for beamer template
2016-09-23 18:11:14 +02:00
John MacFarlane 86f6d7921d Added pandoc-citeproc back to extra-deps. 2016-09-23 13:00:18 +02:00
John MacFarlane c1d26a20cc Use lts-7.0 in stack.yaml files. 2016-09-23 12:50:56 +02:00
John MacFarlane c55233fc2d Update changelog. 2016-09-23 12:20:42 +02:00
John MacFarlane fd3520b97a Bump to 1.17.3 2016-09-23 12:20:34 +02:00
Jesse Rosenthal 581fc0130b LaTeX writer: change braced backtick to \textasciigrave{}
Backticks in verbatim environments are converted to
open-single-quotes. This change makes them appear as backticks. This
corresponds to how we treat `'' in verbatim environments (with
\textquotesingle{}).
2016-09-20 09:44:35 -04:00
John MacFarlane 02e4b7da89 Merge pull request #3071 from tarleb/structured-author-doc
Put note on structured vars in separate paragraph
2016-09-20 11:31:49 +02:00
Jesse Rosenthal 9c1467e848 Add test for backtick in verbatim. 2016-09-19 16:34:28 -04:00
Jesse Rosenthal 5b5f55a710 LaTeX writer: enclose backtick in {} in verbatim
We don't want ligatures like ` ?` ` (which produces `¿`) inside
`\texttt{}` environments, so we enclose the backtick in braces.

This fixes #3121
2016-09-19 16:23:28 -04:00
Artem Klevtsov abb9e892e4 Custom font families for beamer
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-09-14 16:24:12 +07:00
Albert Krewinkel aca695ab0b TEI writer: remove heuristic to detect book template
TEI doesn't have `<book>` elements but only generic `<divN>` division elements.
Checking the template for a trailing `</book>` is nonsensical.
2016-09-13 18:21:03 +02:00
Oliver Matthews 23fb52ef7d Add --parts command line option to LaTeX writer.
Add --parts command line argument.
This only effects LaTeX writer, and only for non-beamer output formats.
It changes the output levels so the top level is 'part', the next
'chapter' and then into sections.
2016-09-06 21:43:45 +02:00
John MacFarlane fd4831dd03 DocBook writer: include an anchor element when a div or span has an id.
This closes #3102.  Note that DocBook does not have a class attribute,
but at least this provides an anchor for internal links.
2016-09-06 10:09:52 +02:00
Jesse Rosenthal 09d96bb884 Remove unnecessary CPP in custom Prelude.
We don't have to worry about base < 4.7.
2016-09-03 15:23:32 -04:00
Jesse Rosenthal 3f82471355 Remove http-client CPP conditionals.
Our lower bound on http-client is 0.5, and both of these min_version
tests are less than 0.5, so they will always pass.
2016-09-03 08:41:00 -04:00