Paul Tilley
f7ebd5107d
LaTeX reader: support \underline
, \ul
, \uline
( #5359 )
...
These are parsed as a Span with class `underline`, as with other readers.
2019-03-10 13:31:25 -06:00
John MacFarlane
73c5b50042
ipynb reader: removed vestigial ReaderOptions param.
2019-03-10 12:29:28 -07:00
John MacFarlane
e405d7b532
Include execution output in ipynb test.
2019-03-09 16:53:53 -08:00
John MacFarlane
4810f300e1
Add recommendation to use raw_attribute
with ipynb.
...
See #5354 .
2019-03-09 16:53:29 -08:00
John MacFarlane
2476d5f284
ipynb reader: remove sensitivity to raw_html
, raw_tex
extensions.
...
We now include every output format. Pruning is handled by
`--ipynb-output=`.
2019-03-09 16:52:15 -08:00
John MacFarlane
00ec47b3f9
Markdown writer: improve handling of raw blocks/inline.
...
We now emit raw content using `raw_attribute` when no more
direct method is available.
2019-03-09 16:31:39 -08:00
John MacFarlane
3394d3835d
Makefile - remove --resolver from quick target.
2019-03-09 14:30:07 -08:00
John MacFarlane
873f342f11
Ipynb reader/writer: better handling of cell metadata.
...
We now handle even complex cell metadata in the Div's attributes.
Simple metadata fields are rendered as a plain string, and complex ones
as JSON.
2019-03-09 14:27:34 -08:00
John MacFarlane
bf4a164a6f
Allow -o/--output to be used with --print-*.
...
`--print-default-data-file`
`--print-highlighting-style`
`--print-default-template`
Note that `-o` must occur BEFORE the `--print*` command on the command line
(this is documented).
Closes #5357 .
2019-03-08 08:44:45 -08:00
John MacFarlane
a286ef2eb5
Update pandoc-citeproc version in cabal.project.
2019-03-07 22:38:14 -08:00
John MacFarlane
12afafdf7f
Use latest pandoc-citeproc, texmath.
2019-03-07 22:09:22 -08:00
John MacFarlane
536161df2d
Add inNote to Footcite and Footcites
2019-03-07 16:17:33 -08:00
Cormac Relf
d638873433
Add tectonic as an option for --pdf-engine. ( #5346 )
...
Closes #5345
Runs tectonic on STDIN instead of a temporary .tex file, so that it
looks in the working directory for `\include` and `\input` like the rest
of the engines.
Allows overriding the output directory without messing up the args
with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
2019-03-07 10:16:40 -07:00
John MacFarlane
449910bf40
filterIpynbOutput - go back to just including one block per format.
...
In the end we need a 1-1 map of mime types to output blocks.
2019-03-06 11:17:51 -08:00
John MacFarlane
d68b300dca
Fixed mistake in filterIpynbOutput (prefer lower, not higher rank!)
2019-03-06 10:49:59 -08:00
John MacFarlane
5863e5c75d
Improve filterIpynbOutput.
...
- Ensure that images are prioritized over text.
- Allow multiple RawBlocks for same format.
2019-03-06 10:36:03 -08:00
John MacFarlane
1c4c384a62
ipynb writer: recurse into native divs for output cell data.
...
See #5354 .
2019-03-06 10:09:34 -08:00
John MacFarlane
707eef34b7
Shared.filterIpynbOutput: 'best' should include everything for ipynb.
2019-03-06 10:00:18 -08:00
Andrew Dunning
186b50e263
LaTeX writer: Add classes for frontmatter support ( #5353 )
...
Remove frontmatter from scrreprt
The KOMA-Script `scrreprt` class follows the pattern of `report`, and does not support `\frontmatter`.
Use frontmatter for more classes
2019-03-04 18:47:42 -07:00
Andrew Dunning
d7f56f8189
LaTeX template: Robust section numbering removal ( #5351 )
...
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/ >.
Update tests
2019-03-04 16:58:20 -07:00
John MacFarlane
ebdcf75276
LaTeX writer/template: better handling of front/main/backmatter.
...
In pandoc 2.7 we assumed that every class with chapters would
accept `\frontmatter`, `\mainmatter`, and `\backmatter`.
This is not so (e.g. report does not). So pandoc 2.7
breaks on report class by including an unsupported command.
So we replace the book-class variable in the template with
two variables, has-chapters and has-frontmatter, and set
these intelligently in the writer.
Closes #5348 .
2019-03-04 11:29:41 -08:00
John MacFarlane
1de644783c
Added to AUTHORS.md.
2019-03-03 12:10:22 -08:00
John MacFarlane
14d9d25b2a
Another small changelog fix.
2019-03-03 12:06:50 -08:00
John MacFarlane
5aa5ebcb7c
Fix typo in changelog.
2019-03-03 12:04:11 -08:00
John MacFarlane
9a511660ab
Update manual date, man page, README.md.
2019-03-03 09:46:21 -08:00
John MacFarlane
994ca26199
cabal.project - update pandoc-citeproc version.
2019-03-03 09:16:28 -08:00
John MacFarlane
7895e2386d
Update bash completion template.
...
Added `--ipynb-output` and `latexmk` pdf-engine.
2019-03-03 09:15:46 -08:00
John MacFarlane
70ab78e294
Use latest pandoc-citeproc. Updated cahngelog.
2019-03-02 17:49:55 -08:00
John MacFarlane
e4b71bc8e4
Changelog rewording and reformatting.
2019-03-02 17:40:09 -08:00
John MacFarlane
52bea747a0
Update changelog.
2019-03-02 17:25:51 -08:00
John MacFarlane
b083a3c384
JATS reader: Support fig-group block element ( #5317 ).
2019-03-02 16:52:19 -08:00
John MacFarlane
a4eaacc396
Add John KetzerX to AUTHORS
2019-03-02 16:49:40 -08:00
John MacFarlane
3eb50cc2e9
Require texmath 0.11.2.1
2019-03-02 16:29:59 -08:00
John MacFarlane
4ef0e13c47
Shared: remove withTempDir.
2019-03-02 15:12:33 -08:00
John MacFarlane
4774cf507e
Bump version to 2.7.
2019-03-02 15:06:53 -08:00
John MacFarlane
0bed0ab5a3
Use XDG data directory for user data directory.
...
Instead of `$HOME/.pandoc`, the default user data directory is
now `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
`$HOME/.local/share` but can be overridden by setting the environment
variable.
If this directory is missing, then `$HOME/.pandoc` is searched
instead, for backwards compatibility. However, we recommend
moving local pandoc data files from `$HOME/.pandoc` to
`$HOME/.local/share/pandoc`.
On Windows the default user data directory remains the same.
Closes #3582 .
2019-03-02 15:03:59 -08:00
John MacFarlane
a99423b59c
Add new exported function defaultUserDataDirs
2019-03-02 15:03:51 -08:00
John MacFarlane
068fff2023
Update MANUAL on slide shows to reflect changes.
2019-03-01 21:51:29 -08:00
John MacFarlane
f431f67b2f
LaTeX(Beamer) writer: include contents under headers < slidelevel.
...
Currently we keep the fancy title slide and add a new
slide with the same title and whatever content was under the
header.
This changes behavior of slides, but is consistent with the
new behavior of the revealjs and other HTML slide show writers.
See #4317 .
2019-03-01 21:47:19 -08:00
John MacFarlane
5990f14ad4
HTML writer: include content under title slides.
...
This facilitates real 2D revealjs slideshows, with
content under the top-level slide in each stack.
It also enables notes on title slides.
Closes #4317 and #5237 .
2019-03-01 21:01:29 -08:00
John MacFarlane
c26d7f1e36
LaTeX template: Add \frontmatter, \mainmatter, \backmatter for book classes.
...
Closes #5306 .
2019-03-01 16:23:05 -08:00
John MacFarlane
9f268bce85
Rearrange --help output in a more rational way.
...
Closes #5336 .
2019-03-01 12:11:07 -08:00
John MacFarlane
1eae1e53b3
PDF: change types of subsidiary functions to PandocIO,...
...
...to allow warnings to be threaded through.
Additional fix for #5343 .
2019-03-01 11:20:34 -08:00
John MacFarlane
89ccbc171b
Make --fail-if-warnings
work for PDF output.
...
Closes #5343 .
2019-03-01 10:57:10 -08:00
John MacFarlane
5769ce9e55
Remove license boilerplate (pandoc.hs).
2019-03-01 10:29:23 -08:00
John MacFarlane
f3080c0c22
Remove license boilerplate.
...
The haddock module header contains essentially the
same information, so the boilerplate is redundant and
just one more thing to get out of sync.
2019-03-01 10:27:06 -08:00
Mauro Bieg
0216b68aae
Markdown Reader: yamlToMeta respects extensions ( #5276 )
...
Add ReaderOptions parameter to yamlToMeta [API change].
fixes #5272
2019-02-28 22:52:15 -07:00
John MacFarlane
77faccb505
Shared: add filterIpynbOutput. [API change]
...
Add command line option `--ipynb-output=all|none|best`.
Closes #5339 .
2019-02-28 21:50:09 -08:00
John MacFarlane
7aeabd8430
ipynb writer: only include metadata under 'jupyter' field.
2019-02-28 15:29:36 -08:00
John MacFarlane
f6ebb33353
Remove spaces on empty lines in manual.
2019-02-28 15:29:04 -08:00