Commit Graph
10211 Commits
Author SHA1 Message Date
John MacFarlane eaca413df7 make-windows-installer.bat: add copying to shared drive. 2015-10-16 09:36:38 -07:00
John MacFarlane 3455a34e66 make_osx_package.sh: use released version of pandoc-citeproc.1. 2015-10-16 09:32:11 -07:00
John MacFarlane 5d73186153 stack.pkg.yaml: use latest versions of texmath & h-k.
Also use cpphs in building h-k.
2015-10-16 09:31:44 -07:00
John MacFarlane eac9cdcffb Use stack for make_osx_package.sh.
Added stack.pkg.yaml for package creation.
2015-10-16 08:03:59 -07:00
Andrew Dunning 4ee7a20dfc Use en dash to separate title-prefix. 2015-10-16 08:48:24 -04: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 2357e61748 LaTeX reader: fixed longtable support. 2015-10-15 23:15:40 -07:00
John MacFarlane f4e35a1fec Updated changelog. 2015-10-15 20:59:52 -07:00
John MacFarlane ee7c5fbd21 Updated pandoc.1. 2015-10-15 20:39:24 -07:00
John MacFarlane 504bf3f8e7 Support all frame attributes in Beamer. 2015-10-15 15:11:07 -07:00
John MacFarlane 047cb32dfc Use unicode super/subscripts for digits in plain output. 2015-10-15 14:35:01 -07:00
John MacFarlane 3f9dd65572 reveal.js template changes (Andrew Dunning).
- Add width, height variables to reveal.js.

- Update reveal.js template from 3.1 source.
  All configuration options are now available as variables,
  but are only be included if set (reveal.js uses defaults
  otherwise).
2015-10-14 20:47:18 -07:00
John MacFarlane 319b641365 Merge pull request #134 from adunning/patch-1
Update reveal.js template from 3.1 source.
2015-10-14 20:46:54 -07:00
John MacFarlane 4d677e094c Merge pull request #2451 from adunning/patch-1
Update slides variables in README.
2015-10-14 20:44:19 -07:00
Andrew Dunning f472515a93 Update slides variables in README.
This reflects the inclusion of all reveal.js variables in <https://github.com/jgm/pandoc-templates/pull/134>.
2015-10-14 18:26:53 -04:00
Andrew Dunning d104c53565 Add width, height variables to reveal.js. 2015-10-14 17:31:23 -04:00
Andrew Dunning da139313d2 Update reveal.js template from 3.1 source.
All configuration options are now available as variables, but are only be included if set (reveal.js uses defaults otherwise).
2015-10-14 17:15:21 -04:00
John MacFarlane b8bdfdad90 Merge pull request #2450 from adunning/patch-1
Add new LaTeX variables to README.
2015-10-14 11:08:21 -07:00
Andrew Dunning ffbe3a37b0 Add new LaTeX variables to README. 2015-10-14 13:49:38 -04:00
John MacFarlane de77bc730a LaTeX template: Add fontenc, indent, subparagraph variables.
Thanks to Andrew Dunning.
2015-10-14 10:06:41 -07:00
John MacFarlane 6dc3b6585d More changes to avoid compiler warnings on ghc 7.10.
* CPP around deprecated `parseTime`.
* Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time,
  now exports Data.Time.
2015-10-14 10:06:18 -07: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 1aff1b84eb Merge pull request #2449 from adunning/patch-1
Improve documentation of recent template changes.
2015-10-14 10:01:33 -07:00
John MacFarlane 2739f5ab86 travis: use -Werror even on ghc 7.10. 2015-10-14 09:11:32 -07:00
John MacFarlane 82b3e0ab97 Use custom Prelude to avoid compiler warnings.
- The (non-exported) prelude is in prelude/Prelude.hs.
- It exports Monoid and Applicative, like base 4.8 prelude,
  but works with older base versions.
- It exports (<>) for mappend.
- It hides 'catch' on older base versions.

This allows us to remove many imports of Data.Monoid
and Control.Applicative, and remove Text.Pandoc.Compat.Monoid.

It should allow us to use -Wall again for ghc 7.10.
2015-10-14 09:09:10 -07:00
Andrew Dunning c058c3f03f Improve documentation of recent template changes. 2015-10-14 10:13:58 -04:00
John MacFarlane 198862ee40 LaTeX writer: add \protect to \hyperdef in inline context.
This way we don't get an error when this is used as a moveable
argument.

Closes #2136.
2015-10-13 21:48:14 -07:00
John MacFarlane 25e0e0bd2a epub with --webtex: include image file rather than data: URI.
Closes #2363.
2015-10-13 21:19:43 -07:00
John MacFarlane 74476e1f66 Fixed tests for template changes. 2015-10-13 20:50:40 -07:00
John MacFarlane 309ff7a6da Template changes:
- Move HTML5 shiv after CSS (Andrew Dunning).
- Fix HTML5 shiv URL (Andrew Dunning).
- Add dir attribute in html5 (Andrew Dunning).
- Realign beamer and LaTeX templates (Andrew Dunning).
2015-10-13 20:35:18 -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
John MacFarlane 40cc09ff57 Merge pull request #132 from adunning/patch-1
Add `dir` variable to HTML5 and update shiv.
2015-10-13 20:30:25 -07:00
John MacFarlane d998cfbfc3 Merge pull request #131 from adunning/master
Realign LaTeX and beamer templates.
2015-10-13 20:29:23 -07:00
Andrew Dunning a108c1ea17 Move HTML5 Shiv after CSS.
Per usage notes at <https://github.com/aFarkas/html5shiv/blob/master/readme.md>.
2015-10-13 22:30:55 -04:00
Andrew Dunning d6f2a585bc Add dir variable to HTML5 and update shiv.
Project moved from Google Code to <https://github.com/aFarkas/html5shiv>.
2015-10-13 22:22:38 -04:00
John MacFarlane 24f68654e9 RST writer: do header normalization only in "standalone" mode.
If we're producing a fragment, just skip normalization.
After all, the fragment might be somewhere in the middle
of the document.  It's more important for fragments to
have consistency in rendering (so they can be pieced
together) than to normalize.

This closes #2394.  It's simpler and more robust than
my earlier fix.
2015-10-12 23:00:27 -07:00
John MacFarlane fb51077712 Revert "RST writer: tweaks to header normalization."
This reverts commit 476b383c57.
2015-10-12 22:44:37 -07:00
John MacFarlane 476b383c57 RST writer: tweaks to header normalization.
These changes are intended to make the writer more
useful to people who are processing small fragments,
which may for example look like this:

    ### third level header from previous section

    ## second level header

Previously such fragments got turned into two
headers of the same level.  The new algorithm
avoids doing any normalization until we hit the
minimal-level header in the fragment (here, the
second level header).

Closes #2394.
2015-10-12 22:04:40 -07:00
John MacFarlane 0715c5cbed Changed stack.yaml to use latest resolver (3.9). 2015-10-12 22:04:30 -07:00
John MacFarlane 2c15b1fcac Added ghc-prim to build-depends.
This is needed for the Generic instance of PandocError.

Closes #2448.
2015-10-12 14:28:11 -07:00
John MacFarlane 0b91c73456 Removed unnecessary import. 2015-10-11 17:27:00 -07:00
John MacFarlane 1e8a25ad69 Percent-encode more special characters in URLs.
HTML, LaTeX writers adjusted.
The special characters are '<','>','|','"','{','}','[',']','^', '`'.

Closes #1640, #2377.
2015-10-11 17:12:50 -07:00
John MacFarlane 04307a1554 Define Typeable and Exception instances for PandocError.
Closes #2386.
2015-10-11 15:50:41 -07:00
John MacFarlane 0e78eba791 HTML reader/writer: better handling of "section" elements.
Previously `<section>` tags were just parsed as raw HTML
blocks.  With this change, section elements are parsed as
Div elements with the class "section".  The HTML writer will
use `<section>` tags to render these Divs in HTML5; otherwise
they will be rendered as `<div class="section">`.

Closes #2438.
2015-10-11 15:25:49 -07:00
John MacFarlane 60dcaa37d5 Native writer: format Div properly, with blocks separated. 2015-10-11 15:14:35 -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 e3a5abc64f Removed xltxtra, xunicode from LaTeX template.
Thanks Andrew Dunning.

Updated tests and changelog.
2015-10-10 16:12:50 -07: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
John MacFarlane 0123f01b5d Organized changelog. 2015-10-10 16:05:39 -07:00