Commit graph

15654 commits

Author SHA1 Message Date
John MacFarlane
db0a2c3947 Remove unnecessary dependency on hslua-aeson. 2022-03-24 09:20:56 -07:00
John MacFarlane
f2eb52ad80 Use current dev versions of citeproc, doclayout. 2022-03-23 13:51:14 -07:00
John MacFarlane
5fdcb36c80 Use latest dev citeproc. 2022-03-23 08:52:47 -07:00
Mario Lang
6e94c8ddcd
doc/lua-filters.md: Fix typo (#7981) 2022-03-23 11:15:43 +01:00
John MacFarlane
98275f1a85 Revert "Try re-enabling ghc 9.2.2 tests on CI."
This reverts commit 26f64c4d05.
2022-03-22 10:08:49 -07:00
John MacFarlane
26f64c4d05 Try re-enabling ghc 9.2.2 tests on CI. 2022-03-22 09:42:33 -07:00
Albert Krewinkel
4394fdf59c
JATS writer: encode author "others" as <etal/>
Citeproc adopted the BibTeX convention to use the author name "others"
when there are additional authors that are not named. JATS uses the
`<etal>` element for this.
2022-03-22 15:09:14 +01:00
John MacFarlane
9053214fba LaTeX template: Move urlstyle and xurl commands to after hyperref.
Closes #7978.
2022-03-21 10:42:18 -07:00
John MacFarlane
e2d05626fc Use latest dev texmath. 2022-03-20 11:51:31 -07:00
Albert Krewinkel
69177861a4
Parsing.GridTable: simplify column handling code. 2022-03-18 14:20:49 +01:00
Albert Krewinkel
eaba313fb3
Writers.GridTable: improve module documentation. 2022-03-18 14:16:03 +01:00
Albert Krewinkel
43e549b2fb
Markdown writer: move table-related code into submodule. 2022-03-18 14:15:56 +01:00
John MacFarlane
d69807fb92 Minor changes to security section of manual. 2022-03-17 09:45:29 -07:00
John MacFarlane
75ddff2422 Allow formatted bibliography to be placed in metadata fields.
This modifies `processCitations` so that pandoc will look not just
in the document body but in metadata for a Div with id `refs` in
which to place the formatted bibliography.

Thus, one can include a metadata field, say `refs`, whose content
is an empty div with id `refs`, and the formatted bibliography
will be put into this metadata field.  It may then be interpolated
into a template using the variable `refs`.

Closes #7969.

Closes #526 by providing a way to interpolate references into
a template.
2022-03-16 14:37:51 -07:00
John MacFarlane
878c4d6607 Remove obsolete stuff from Makefile. 2022-03-16 09:04:50 -07:00
John MacFarlane
54f6e1be9b Remove native_divs from allowed gfm extensions.
This allows `<div>` to be suppressed using `-raw_html`.
Previously `native_divs` was enabled but could
not be suppressed, because it was not in the list of
available extensions for commonmark-based formats.

Closes #7965.
2022-03-14 12:45:45 -07:00
John MacFarlane
c9cf8568bf LaTeX template: Fix regression with code in footnotes...
...due to moving hyperref later in the template.

Closes #7964.
2022-03-14 12:28:56 -07:00
John MacFarlane
9b5e6a8944 Skip ghc 9.2.2 tests for now...
the are failing with exit 1 in linker phase (out of memory?).
2022-03-14 08:35:38 -07:00
John MacFarlane
307a4e25b2 CI: use ghcup to install ghc, cabal; use ghc 9.2.2. 2022-03-13 23:23:53 -07:00
John MacFarlane
d0a874bd30 Add CI for ghc 9.2.1. 2022-03-13 17:44:35 -07:00
John MacFarlane
8d3959ea29 Remove special redefinition of \sout.
This used to be necessary to avoid problems with hyperref,
when headings contain strikeout text, but it does not seem to be
necessary any more (tested).
2022-03-13 17:18:31 -07:00
John MacFarlane
6328ac5097 LaTeX template: Move \sout correction after hyperref.
This fixes the previous change the default.latex.
2022-03-13 15:25:32 -07:00
John MacFarlane
f3fcdd52c8 LaTeX template: move hyperref near end of preamble.
It now comes after header-includes and right before title, author, date,
abstract.

The hyperref documentation says: “Make sure it comes last of your loaded
packages”. The reason is that it redefines many LaTeX commands.

For example, loading it after titlesec (which might be loaded in
header-includes) causes links in the table of contents to point to
the wrong page (#7960).

Closes #5811.

Note:  Users who presuppose hyperref in their header-includes
will now have to add `\usepackage{hyperref}` to their header-includes
to make it available there.  (The redundant `\usepackage` will
do no harm in this case.)
2022-03-13 10:48:09 -07:00
John MacFarlane
6b79e944bb Use ghc4pandoc:9.2.2 docker image for linux build 2022-03-13 10:39:38 -07:00
Albert Krewinkel
1aeeba9ecb
Shared: define ordNub as alias for nubOrd from containers package (#7963)
This requires at least containers 0.6.0.1, which ships with the oldest
GHC version currently supported by pandoc (GHC 8.6).
2022-03-13 08:42:30 -07:00
Albert Krewinkel
edfe34c86c
Document more functions in T.P.Parsing and T.P.Shared. 2022-03-12 23:16:31 +01:00
John MacFarlane
699336cf5b LaTeX reader: better handling of \usepackage.
If the package is local but causes parse errors, parse
everything up to the error and skip the rest.  Issue a
CouldNotParseIncludeFile warning indicating that parsing
failed at that point.

T.P.Logging: add CouldNotParseIncludeFile constructor.
2022-03-12 12:18:51 -08:00
John MacFarlane
d128f5ee15 Depend on latest dev texmath. 2022-03-12 10:23:55 -08:00
John MacFarlane
f9a4e049c5 T.P.Readers.LaTeX.Parsing: Monoid and Semigroup instances for TokStream. 2022-03-12 10:23:25 -08:00
John MacFarlane
6abcde0bf7 LaTeX reader: further optimizations for inline parsing. 2022-03-11 21:59:26 -08:00
John MacFarlane
b423c17100 LaTeX reader: use custom TokStream...
that keeps track of whether macros are expanded. This allows
us to improve performance a bit by avoiding unnecessary
runs of the macro expansion code (e.g. from 24 ms to 20 ms on
our standard benchmark).
2022-03-11 19:51:59 -08:00
John MacFarlane
d523eca3d3 Use dev version of pandoc-types.
This allows toJSONFilter to work with Meta and MetaValue.
2022-03-11 10:23:06 -08:00
Albert Krewinkel
517bceeba8
Parsing: partition module into (internal) submodules (#7962) 2022-03-11 09:21:59 -08:00
Albert Krewinkel
168529f0a4
Org writer: stop indenting property drawers, quote blocks
This follows the current default org-mode behavior.

Closes: #3245
2022-03-11 12:12:04 +01:00
John MacFarlane
a7d94dba43 Org reader: allow multiple #+bibliography:. 2022-03-10 13:31:02 -08:00
John MacFarlane
18c432024b Org reader: parse #+print_bibliography: as Div with id refs. 2022-03-10 13:15:52 -08:00
John MacFarlane
581c94913f LaTeX reader: allow inline groups starting with \bgroup.
Closes #7953.
2022-03-09 17:53:00 -08:00
John MacFarlane
82d9f5eb8b Add tests for idempotency of makeSections.
See #7950.
2022-03-08 09:53:57 -08:00
Guriy Samarin
0adfc6e58e
add reference to install via winget (#7951) 2022-03-08 09:01:18 -08:00
John MacFarlane
9b5ec100e5 Markdown writer: update escaping rules for \.
We now escape `\` only if `raw_tex` is enabled or
it is followed by a non-alphanumeric.
2022-03-07 10:46:07 -08:00
John MacFarlane
abffe63274 Remove raw_tex extension from list of commonmark...
extensions, and from the `commonmark_x` defaults.
commonmark doesn't parse raw TeX, and it doesn't
make sense to write it if we don't parse it.
2022-03-07 10:45:03 -08:00
John MacFarlane
0124e8b095 Org reader: handle #+bibliography: as metadata...
so that it can work with citeproc.
2022-03-04 22:50:17 -08:00
John MacFarlane
697c814286 Note in manual that smart works for html input. 2022-03-04 10:00:49 -08:00
John MacFarlane
bc7f74968e LaTeX template: skip \babelprovide if babel-lang is empty.
This avoids an error.  See #7945.
2022-03-02 08:52:13 -08:00
John MacFarlane
c3cf339f1d RST writer: support all standard metadata ("bibliographic") fields. 2022-03-01 13:20:31 -08:00
John MacFarlane
326a00ab1a DocBook reader: handle address and coyright in metadata.
See #7747.
2022-02-28 10:22:09 -08:00
John MacFarlane
b94ad5b2ed DocBook reader: improve info parsing.
Simplify metadata parsing code.
Handle abstract as block-level content.
Report skipped info elements with `--verbose`.

See #7747.
2022-02-28 10:19:04 -08:00
Tony
bff49852a5
add armhf support (#7944) 2022-02-28 09:03:25 -08:00
John MacFarlane
dc0fdb2709 DocBook reader: handle abstract in info section.
See #7747.
2022-02-28 08:38:03 -08:00
John MacFarlane
97c4f3f237 LaTeX reader: rudimentary support for vbox.
Closes #7939.
2022-02-27 23:24:30 -08:00