Commit Graph
10211 Commits
Author SHA1 Message Date
John MacFarlane e87db3739e Fixed bug in determining writer for xelatex engine.
This revises the last commit, fixing #3931.
2017-09-20 11:45:26 -07:00
John MacFarlane 582cb4b505 Fix and simply latex engine code in App.
Fixes #3931.
2017-09-19 17:22:32 -07:00
John MacFarlane d7917836f1 linux/Makefile - added interact target. 2017-09-19 16:17:06 -07:00
John MacFarlane 7c20fab3a7 stack.pkg.yaml - use latest pandoc-citeproc. 2017-09-17 20:29:41 -07:00
John MacFarlane b1ee747a24 Added --strip-comments option, readerStripComments in ReaderOptions.
* Options:  Added readerStripComments to ReaderOptions.
* Added `--strip-comments` command-line option.
* Made `htmlTag` from the HTML reader sensitive to this feature.

This affects Markdown and Textile input.

Closes #2552.
2017-09-17 13:01:27 -07:00
John MacFarlane ce05814372 Adjusted headings in using-the-pandoc-api.md. 2017-09-16 23:17:33 -07:00
John MacFarlane 91ab987a52 Removed customizing-pandoc.md from doc/, added filters.md.
filters.md is essentially the scripting tutorial from the
webiste.
2017-09-16 23:00:20 -07:00
John MacFarlane 9add713654 Moved ldoc.ltp from doc to tools.
doc should be reserved for actual documents, I think.

@tarleb - will this cause a problem?
2017-09-16 22:47:49 -07:00
John MacFarlane 86730f49be Markdown reader: added inlines, inlines1.
Eventually we'll add `processEmphasis` and `processBracketed`
to this.

This will allow us to conform to CommonMark rules and
fix #3903 and #1735.
2017-09-16 11:10:19 -07:00
John MacFarlane 684f055248 Set PANDOC_READER_OPTIONS in environment where filters are run.
This contains a JSON representation of ReaderOptions.
2017-09-15 17:26:14 -07:00
John MacFarlane 04aba6bd51 Use skylighting 0.4. 2017-09-15 09:36:54 -07:00
John MacFarlane b1aa67f0c9 Remove To/FromJSON instance for WriterOptions.
This required the (now removed) instances for Syntax.
It was too long, anyway, to be of use.
2017-09-15 09:36:23 -07:00
John MacFarlane 64472a468c FromJSON/ToJSON instances for Reader, WriterOptions.
Depends on skylighting 0.3.5.
2017-09-14 22:38:23 -07:00
John MacFarlane 5849b89e52 Use texmath 0.9.4.2 in stack.yaml. 2017-09-13 10:05:47 -07:00
John MacFarlane 4177ee8626 Textile reader: allow 'pre' code in list item.
Closes #3916.
2017-09-12 08:58:47 -07:00
John MacFarlane 2e2795412d Move 'tables in footnotes' fix out of beamer part of default.latex.
This caused an error in beamer.

Footnotes already work in tables in beamer, without this code.
2017-09-12 08:31:59 -07:00
John MacFarlane b71c7d97d1 Add default pdf engine for beamer. 2017-09-12 08:28:04 -07:00
John MacFarlane 6509501e90 Use defaultLatexEngine instead of head latexEngines.
Partial functions make me nervous.
2017-09-12 08:25:41 -07:00
Ian 5e5ec586d4 Update MANUAL.txt (#3919)
Add URL for Prince HTML > PDF engine
2017-09-12 08:15:08 -07:00
Mauro Bieg c7e3c1ec17 Support for PDF generation via weasyprint and prince (#3909)
* Rename --latex-engine to --pdf-engine
* In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`.
 * Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906).
* `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file
2017-09-11 20:18:42 -07:00
John MacFarlane ddecd72783 Merge pull request #3911 from labdsf/muse-reader-braces
Muse reader: parse {{{ }}} example syntax
2017-09-11 14:01:05 -07:00
John MacFarlane 1307b023af Merge pull request #3917 from labdsf/muse-reader-emphasis-word
Muse reader: allow inline markup to be followed by punctuation
2017-09-11 10:57:19 -07:00
Alexander Krotov 8e4ee66563 Muse reader: allow inline markup to be followed by punctuation
Previously code was not allowed to be followed by comma,
and emphasis was allowed to be followed by letter.
2017-09-11 18:34:32 +03:00
Alexander Krotov 508c3a64d8 Muse reader: parse {{{ }}} example syntax 2017-09-11 18:17:28 +03:00
John MacFarlane 7df095f049 Merge pull request #3913 from labdsf/muse-reader-verbatim
Muse reader: parse verbatim tag
2017-09-11 07:35:14 -07:00
Alexander Krotov 27cccfac84 Muse reader: parse verbatim tag 2017-09-11 12:13:09 +03:00
John MacFarlane 41a16a1e9d Merge pull request #3908 from labdsf/muse-reader-example
Muse reader: trim newlines from <example>s
2017-09-10 06:41:41 -07:00
Alexander Krotov afedb41b17 Muse reader: trim newlines from <example>s 2017-09-10 12:42:24 +03:00
John MacFarlane cbdeed9cfd Require skylighting 0.3.4.1 or higher. 2017-09-09 21:06:07 -07:00
John MacFarlane a1c11b048a Updated lhs-test for new skylighting. 2017-09-09 21:05:31 -07:00
John MacFarlane 8c8630c138 Use skylighting 0.3.4.1. 2017-09-09 21:05:02 -07:00
John MacFarlane 4f2dd91e36 Merge pull request #3904 from labdsf/muse-reader-code
Muse reader: debug inline code markup
2017-09-09 12:11:05 -07:00
Alexander Krotov 2230371304 Muse reader: debug inline code markup 2017-09-09 16:39:06 +03:00
John MacFarlane 2358229876 Adjusted some tests for last commit. 2017-09-08 16:34:33 -07:00
John MacFarlane a783a30661 Merge pull request #3902 from adunning/euro
Write euro symbol directly in LaTeX
2017-09-08 16:28:05 -07:00
Andrew Dunning 621e43e0ec Write euro symbol directly in LaTeX
The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
2017-09-08 22:26:32 +01:00
John MacFarlane 3421f3eac7 Removed old beamer template.
We now use the default.latex template for both latex and beamer.
It contains conditionals for the beamer-specific things.

`pandoc -D beamer` will return this template.
2017-09-08 10:48:02 -07:00
John MacFarlane 91240d08b7 Merge pull request #3879 from adunning/patch-1
Combine LaTeX/Beamer templates
2017-09-08 10:43:35 -07:00
Andrew Dunning 331a0a0c25 Use starred versions of xcolor names
Prevents changes to documents defined using the dvipsnames list (e.g. `Blue` gives a different result with svgnames enabled).
2017-09-08 10:32:36 +01:00
Andrew Dunning 2791a68d68 Note use of xcolor in manual. 2017-09-08 10:18:54 +01:00
Andrew Dunning 51bb7453e4 Merge branch 'master' into patch-1 2017-09-08 07:06:50 +01:00
John MacFarlane 732005456e LaTeX template: load polyglossia after header-includes.
It needs to be loaded as late as possible.

Closes #3898.
2017-09-07 22:16:23 -07:00
John MacFarlane 5fc4980216 Markdown writer: Escape pipe characters when pipe_tables enabled.
Closes #3887.
2017-09-07 22:10:13 -07:00
John MacFarlane a90f131937 LaTeX writer: use proper code for list enumerators.
This should fix problems with lists that don't use arabic
numerals.

Closes #3891.
2017-09-07 22:05:22 -07:00
John MacFarlane f802990d45 Merge pull request #3885 from tarleb/lua-module-docs
Lua module documentation
2017-09-07 21:40:02 -07:00
Andrew Dunning 3654c4373a Use xcolor for colorlinks option
Beamer loads `xcolor` rather than `color`, and thus the `dvipsnames` option doesn't take effect. This also provides a wider range of colour selections with the `svgnames` option. Closes #3877.
2017-09-07 22:06:51 +01:00
John MacFarlane de93744179 cabal: add custom-setup stanza, lowercase field names. 2017-09-07 10:13:40 -07:00
Václav Haisman 19a06b0c83 Add simple Emacs mode to help with Pandoc templates editing. (#3889)
tools/pandoc-template-mode.el
2017-09-06 15:28:37 -07:00
Alexander 743413a5b5 Muse reader: Allow finishing header with EOF (#3897) 2017-09-06 08:48:06 -07:00
John MacFarlane 0b05222a9c LaTeX reader: Better support for ogonek accents. 2017-09-05 13:54:44 -07:00