15246 Commits
Author SHA1 Message Date
John MacFarlane 1402051da5 Add framework for RIS reader. 2022-02-04 23:47:19 -08:00
John MacFarlane 7cfce21426 Document ris output in manual. 2022-02-04 23:41:59 -08:00
John MacFarlane f813aca3ea Add endnotexml test to pandoc.cabal extra-source-files. 2022-02-04 23:39:39 -08:00
John MacFarlane b7f1c97b6a Docx zotero/mendeley/endnote: add comma before locator in suffix. 2022-02-04 23:28:46 -08:00
John MacFarlane f48890eff0 Support Prefix, Suffix, Pages in endnote ADDINs. 2022-02-04 22:20:51 -08:00
John MacFarlane 19cfe6a907 Got endnote citations working in docx...
Still to do:  prefix, suffix, locator.
2022-02-04 21:54:50 -08:00
John MacFarlane 28349447cb Docx reader: skeleton for endnote citation ADDINs. 2022-02-04 17:02:43 -08:00
John MacFarlane 15316a0058 EndNote: export readEndNoteXMLCitation...
instead of readEndNoteXMLReferences.  This is the function
we'll need in the docx reader.

We still need to implement locator, prefix, and suffix.
2022-02-04 14:02:58 -08:00
John MacFarlane 75c6389e9d Add endnotexml reader test. 2022-02-04 10:36:58 -08:00
John MacFarlane 697aea3717 Add mendeley citation tests. 2022-02-04 10:14:21 -08:00
John MacFarlane d164e5bb1d Docx reader: parse EN.CITE and EN.REFLIST fields. 2022-02-04 10:04:16 -08:00
John MacFarlane 34897031f4 Add endnote XML reader.
New input format: endnotexml

New reader module: Text.Pandoc.Readers.EndNote, exporting
`readEndNoteXML` and `readEndNoteXMLReferences`. [API change]

This reader is still a bit rudimentary, but it should get
be good enough to be helpful.
2022-02-04 10:03:52 -08:00
John MacFarlane e07c0e74ce Support embedded Mendeley citations in docx.
These are supported in the same way as Zotero citations,
using the same code.  As with Zotero, enable the `citations`
extension on `docx` to parse these as native citations.

Closes #7840.
2022-02-04 10:00:23 -08:00
John MacFarlane d40236805d MediaBag: improve detection of absolute paths.
Previously we used System.FilePath's isRelative to
determine when paths are relative (since absolute
paths need to get a new name based on the sha1 hash).
But this has an OS-specific behavior and actually
returns True on Windows for paths like `/media/file.png`.
This ought to fix #7881.
2022-02-04 09:47:07 -08:00
John MacFarlane 40b174c770 Revert "T.P.Class.IO.adjustImagePath: avoid double slash."
This reverts commit 3dcb526b9b.
2022-02-04 09:29:49 -08:00
John MacFarlane 3dcb526b9b T.P.Class.IO.adjustImagePath: avoid double slash.
PReviously if the directory argument ended in slash,
we'd get a doubled slash in the path.  This may help
with #7881.
2022-02-04 07:54:52 -08:00
John MacFarlane 60caa0a1e1 Docx reader: add bibliographic entries for zotero ADDIN.
Bibliographic data embedded in citation items is added
to the `references` metadata field.

Closes #7840.
2022-02-03 22:08:46 -08:00
John MacFarlane f854e31bc8 Add zoreto test with +citations.
So far, though, we still don't include the references in
the metadata.
2022-02-03 21:29:04 -08:00
John MacFarlane 9625e17e86 Add zotero citation test with docx-citations. 2022-02-03 21:06:48 -08:00
John MacFarlane 4086873281 Improve locators for docx Zotero citations. 2022-02-03 20:23:11 -08:00
John MacFarlane 1c2f0fe1d2 Enable citations extension for docx reader.
When enabled, Zotero citations are parsed as native pandoc
citations.  (When disabled, the Zotero-generated citation
text is passed through as regular text.)  In addition, the
Zotero-generated bibliography is suppressed.

Locators still need some work.
2022-02-03 19:34:05 -08:00
John MacFarlane 04d365623b doc/org.md: remove obsolete citations section.
This mostly described citation formats we no longer
support.
2022-02-03 18:59:40 -08:00
John MacFarlane aa5e10ce6c MANUAL: fix documentation for citations and org mode. 2022-02-03 18:59:28 -08:00
John MacFarlane 9ef8650612 Docx reader: Parse CSL JSON in Zotero addin.
This gives us what we ned for #7840, except adding
to the references in metadata.
2022-02-03 16:04:15 -08:00
John MacFarlane b9ac243986 Trim whitespace from math in --webtex.
This fixes problems with --webtex and markdown output,
when display math starts or ends with a newline.

Closes #7892.
2022-02-03 13:21:27 -08:00
John MacFarlane 9618b66fe8 Whitespace fixes. 2022-02-03 13:13:03 -08:00
John MacFarlane 0011c9520d Docx reader: add more framework for Zotero citations.
- Add docxReferences to state, so we can accumulate
  references for metadata.
- Add a clause for ZoteroItem to parPartToInlines'.
  So far it doesn't do anything except add a surrounding Cite element.

See #7840.
2022-02-03 07:39:07 -08:00
John MacFarlane 54279149ab Use unreleased citeproc. 2022-02-03 07:37:13 -08:00
John MacFarlane 6ed8999f75 LaTeX reader: handle subequations as inline math environment.
Closes #7883.
2022-02-02 10:41:46 -08:00
Albert Krewinkel 2fa8308afa Restore wkhtmltopdf as default pdf engine for HTML 2022-02-01 14:43:38 -08:00
John MacFarlane 64a21caa6c Makefile: add 'make help', trim some useless targets. 2.17.1.1 2022-01-31 10:07:13 -08:00
John MacFarlane a081859743 Bump to 2.17.1.1, update changelog and man page. 2022-01-31 09:45:44 -08:00
John MacFarlane 4c8c7f6dff Revert "T.P.App.Opt: fix logic bug in fullDefaultsPath."
This reverts commit 545c0911aa.

Fixes regression in 2.17.1.

The original commit was completely misguided, and caused
problems finding defaults files in the default user data
directory.
2022-01-31 09:36:49 -08:00
Albert Krewinkel 46e5937628 Custom writer: default to single quotes for strings
Makes the code more consistent and makes it easier to use double quotes
in strings, which is the usual quoting style used for HTML attributes.

Closes: #7487
2022-01-31 11:33:31 +01:00
John MacFarlane 0e5ab9760b RELEASE-CHECKLIST: remove CircleCI step. 2022-01-30 12:41:27 -08:00
John MacFarlane 645668f3ad Fix typo in changelog. 2.17.1 2022-01-30 12:30:50 -08:00
John MacFarlane 0bd62ddeaf Update man page. 2022-01-30 11:17:18 -08:00
John MacFarlane cb93a08e8a Update AUTHORS.md. 2022-01-30 11:12:41 -08:00
John MacFarlane 3933480c83 Minor changelog fixes. 2022-01-30 11:10:54 -08:00
John MacFarlane 5c6b0c3abd Fix identifier in lua-filters doc. 2022-01-30 11:07:44 -08:00
John MacFarlane 96ab241056 lua-filters: put all parameters in code font. 2022-01-30 11:06:30 -08:00
John MacFarlane 222fb2a445 Move beamerarticle in MANUAL.
It should be documented under "Variables for LaTeX", not
"for Beamer."  Closes #7874.
2022-01-30 09:43:42 -08:00
John MacFarlane 9f282a025e Bump to 2.17.1. Provisionally update changelog. 2022-01-29 23:16:10 -08:00
John MacFarlane a246107347 LaTeX reader: ensure that \raggedright doesn't gobble an argument.
See #7757.
2022-01-29 22:15:04 -08:00
John MacFarlane 148cf8a064 Document --trace option.
Closes #7873.
2022-01-29 21:57:46 -08:00
John MacFarlane 5e42189ddb Document no-check-certificate in defaults files.
See #7873.
2022-01-29 21:54:12 -08:00
John MacFarlane 9f4693d003 Document 'sandbox' option for defaults files.
See #7873.
2022-01-29 21:51:30 -08:00
John MacFarlane c348c4d4fe Use [x] not [X] for asciidoctor checklists.
See #7798.
2022-01-29 17:47:35 -08:00
John MacFarlane 6bb047690e Regenerate man page. 2022-01-29 15:35:57 -08:00
John MacFarlane 989f315a84 manfilter.lua: remove extra indent in table cells with code blocks. 2022-01-29 15:35:37 -08:00