Commit graph

12380 commits

Author SHA1 Message Date
John MacFarlane
66e5f0ff8d Docx writer: Use w:br without attributes for line breaks.
We previously added the attribute `type="textWrapping"`, but
this causes problems on Word Online.

Closes #5377.
2019-03-21 09:28:16 -07:00
John MacFarlane
957314143f Improve pdfSize in ImageSize.
Improves fix to #4322.
2019-03-20 12:25:09 -07:00
John MacFarlane
6be8f4e953 Improved fix to #5340 and added test. 2019-03-18 16:53:36 -07:00
John MacFarlane
c57649956d Improve autolink detection in LaTeX reader.
This determines whether `\url` or `\href` is used.
Closes #5340.
2019-03-18 16:41:06 -07:00
John MacFarlane
3880a23de9 Properly escape attributes in Markdown writer.
Closes #5369.
2019-03-17 18:15:47 -07:00
John MacFarlane
ebd7035a2a Add test case for #5368. 2019-03-17 18:02:59 -07:00
John MacFarlane
8632526fc2 Markdown writer: be sure implicit figures work in list contexts.
Previously they would sometimes not work: e.g., when they
occured in final paragraphs in lists that were originally
parsed as Plain and converted later using PlainToPara.

Closes #5368.
2019-03-14 21:43:25 -07:00
John MacFarlane
16bf907252 Remove clone of pandoc-citeproc.
It wasn't being used; cabal.project specifies the version to use.
Closes #5366.
2019-03-14 10:11:11 -07:00
John MacFarlane
cdad322a98 Use cmark-gfm-0.1.8. 2019-03-13 21:16:51 -07:00
John MacFarlane
838dc8a4cc Update changelog 2019-03-13 21:07:56 -07:00
John MacFarlane
3862565132 Update manual date and man page. 2019-03-13 20:59:25 -07:00
John MacFarlane
1749a5924b Updated tested-with. 2019-03-13 20:58:54 -07:00
John MacFarlane
28394f8d8c Bump to 2.7.1 2019-03-13 20:57:58 -07:00
John MacFarlane
68c449591e Update AUTHORS 2019-03-13 20:57:41 -07:00
John MacFarlane
5b385d2e66 Tests.Old: specify --data-dir=../data.
Remove old pandoc_datadir environment variable, which
doesn't do anything.
2019-03-13 17:44:07 -07:00
Andrew Dunning
bbe2da390e LaTeX template: Improve readability (#5363)
+ LaTeX template: Improve template readability
  Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`,
  but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format
  comments more consistently.
+ Update tests
+ Remove hyperref breaklinks option.  According to the documentation, hyperref
  sets this automatically as appropriate to the driver.
2019-03-13 18:22:28 -06:00
Andrew Dunning
8d58c61702 LaTeX reader test: Allow compilation of file (#5364)
The test could not compile in LaTeX due to missing `setspace` package. Remove redundant packages.
2019-03-13 18:21:00 -06:00
John MacFarlane
514a729946 Revise last commit, adding an upper bound for cmark-gfm. 2019-03-13 15:51:41 -07:00
John MacFarlane
1e4bc70280 Exclude cmark-gfm-hs 0.1.7, which is buggy. 2019-03-13 15:48:40 -07:00
John MacFarlane
12e36ba827 Use latest pandoc-citeproc. 2019-03-12 23:27:45 -07:00
John MacFarlane
b7cbd7b8c9 docx writer: avoid extra copy of abstractNum and num elements...
...in numbering.xml.  This caused pandoc-produced docx files to
be uneditable using Word Online.

The problem was that recent versions of reference.docx include
samples of various kinds of text, including lists.  The
numering elements for these were getting copied over to
the new docx, where they clashed with the autogenerated
elements produced by pandoc.  This didn't confuse Desktop
Word, but it did confuse Word Online.

Closes #5358.
2019-03-11 22:09:21 -07:00
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