Commit Graph

909 Commits

Author SHA1 Message Date
John MacFarlane 28d3dbfec9 Implement reset-citation-positions class on headings.
When the `reset-citation-positions` class is added to
a top-level heading, `--citeproc` will reset position
information at that point in the document. This is needed
in order to ensure that the first citation in a chapter
to a work that has been cited in a previous chapter will
not be in abbreviated form.

Requires a dependency on a development version of citeproc.
2025-12-06 18:33:17 +01:00
John MacFarlane 5e72d6e143 Use latest dev asciidoc. 2025-12-05 10:24:36 +01:00
John MacFarlane c6d99c957a Use latest asciidoc. 2025-12-04 23:41:19 +01:00
John MacFarlane 78929adb4d Use dev typst-hs 2025-12-04 12:04:20 +01:00
John MacFarlane e79e0d621e Use dev asciidoc. 2025-12-03 09:32:57 +01:00
John MacFarlane 4bdb4550c2 Use released asciidoc 0.1. 2025-11-30 17:57:08 +01:00
John MacFarlane b22eaa6939 Use released djot 0.1.2.4. 2025-11-30 17:43:30 +01:00
John MacFarlane 7e2bd987ae Use released texmath 0.13.0.2. 2025-11-30 17:41:56 +01:00
John MacFarlane 847e7d566f Use released typst 0.8.1. 2025-11-30 17:25:05 +01:00
John MacFarlane 564e275008 Use released citeproc 0.12. 2025-11-30 16:58:20 +01:00
John MacFarlane 37b7bd3b38 Use latest dev asciidoc. 2025-11-30 11:08:32 +01:00
John MacFarlane 8651ec3c28 Add asciidoc as an input format.
New exported module Text.Pandoc.Readers.AsciiDoc,
exporting readAsciiDoc [API change].

The bulk of parsing is handled by the asciidoc library.

Closes #1456.
2025-11-29 17:04:42 +01:00
John MacFarlane fe62b25f49 Use latest dev citeproc. 2025-11-19 21:59:50 +01:00
John MacFarlane f162c7a1cd Use latest dev citeproc. 2025-11-18 23:18:30 +01:00
John MacFarlane 97a9088121 Use latest dev typst-hs. 2025-11-18 23:05:04 +01:00
John MacFarlane 1443e7dc8f Use latest dev djoths. 2025-11-10 11:27:12 +01:00
John MacFarlane b69e9dbb81 Typst reader: handle document metadata and #title.
See jgm/typst-hs#80.

Note that previously, the typst reader never returned document
metadata.  Now it does, even if the typst document does not contain
a `#title` function that would result in actually printing the
title block.
2025-10-30 20:02:28 +01:00
John MacFarlane d4d69fafb9 Fix stack.yaml. 2025-10-27 09:23:48 +01:00
John MacFarlane 6f1972351d stack.yaml - fix syntax. 2025-10-27 08:03:56 +01:00
John MacFarlane 9639a33b17 Use dev versions of typst-hs, texmath, typst-symbols. 2025-10-26 22:43:18 +01:00
John MacFarlane d6c95435bf Use latest dev citeproc. 2025-10-24 23:11:26 +02:00
John MacFarlane 263b058d70 Use released citeproc 0.11. 2025-10-19 23:12:29 +02:00
John MacFarlane 350b821d7c Update to use latest dev citeproc.
Fixed golden test regeneration in Docx reader test.
2025-10-18 15:03:50 +02:00
John MacFarlane ae1ef4364a Use released texmath 0.13.0.1 2025-10-05 17:14:10 +02:00
John MacFarlane 208142fcf2 Use dev version of texmath. 2025-10-04 21:10:50 +02:00
John MacFarlane def9fc94ff Use released djot 0.1.2.3. 2025-09-27 13:36:45 +02:00
John MacFarlane 3cf8c5f716 Use dev version of djoths. 2025-09-19 10:15:24 +02:00
John MacFarlane 812e8c6854 stack.yaml - use lts-24.9 2025-09-06 17:57:36 +02:00
John MacFarlane 4eeb322028 Use skylighting 0.14.7 2025-09-06 10:48:22 +02:00
John MacFarlane 42d5b57026 Used released typst 0.8.0.2 2025-09-03 23:40:15 +02:00
John MacFarlane 57fe93c6ba Use released texmath 0.13 2025-09-03 21:50:41 +02:00
John MacFarlane 9867a3d9c4 Use released citeproc-0.10 2025-09-03 21:30:11 +02:00
John MacFarlane 682e82ce21 Use released doclayout 0.5.0.1 2025-09-03 19:47:08 +02:00
John MacFarlane 65c698a5bb Use latest dev citeproc. 2025-09-02 11:26:10 +02:00
John MacFarlane 22ff5a8909 Use latest dev citeproc. 2025-09-02 11:02:03 +02:00
John MacFarlane c74f2b8588 Use dev typst-hs. 2025-08-30 12:59:56 +02:00
John MacFarlane 1882f0088a Use latest dev texmath. 2025-08-27 13:09:07 +02:00
John MacFarlane 10404ca6d5 Add dev doclayout to stack.yaml. 2025-08-26 12:41:19 +02:00
John MacFarlane 6b2f66507a Use latest dev texmath. 2025-08-11 16:05:42 -07:00
Albert Krewinkel 282fa55421 Lua: require hslua-module-system 1.2.3
This provides List methods to the value returned by
`pandoc.system.list_directory`.

Closes: #11032
2025-08-09 20:59:11 +02:00
John MacFarlane 52e28c31ed Use latest dev citeproc.
Add test for #11013. Closes #11013.
2025-08-01 15:33:50 -07:00
John MacFarlane 8907b0b300 Use latest dev texmath. 2025-08-01 10:04:31 -07:00
John MacFarlane 270fbd54f8 Use latest dev citeproc.
This solves the problem of unwanted capitalization of names
at the beginning of citations in footnotes.

Closes #10983.
2025-07-24 14:51:11 -07:00
John MacFarlane ebf41dd539 Fix stack.yaml. 2025-07-23 23:32:48 -07:00
John MacFarlane a4872aa223 Use dev texmath. 2025-07-23 18:46:12 -07:00
John MacFarlane 00e02e110b Use latest dev citeproc. 2025-07-23 16:08:34 -07:00
John MacFarlane 7ec7efeee7 Use latest dev citeproc.
Closes #10983 by allowing `nocase` spans to be used to suppress
capitalization of initial word in a footnote.
2025-07-23 14:10:43 -07:00
Albert Krewinkel 01a305af58 Lua: add function pandoc.path.exists.
The functions allows to check the existence of file-system objects.
2025-07-23 19:31:03 +02:00
John MacFarlane 8d9e124878 Use latest dev citeproc. 2025-07-20 16:24:26 -07:00
Albert Krewinkel 6b81649771 Lua: add more UTF-8-aware file operations to pandoc.system.
Functions that expect UTF-8-encoded filenames should make it easier to
write platform-independent scripts, as the encoding of the actual
filename depends on the system.

Additionally, this also adds a generalized method to run commands, and
functions to retrieve XDG directory names.

The new functions are `command`, `copy`, `read_file`, `remove`,
`rename`, `times`, `write_file`, `xdg`.
2025-06-30 09:56:08 -06:00