Commit Graph
711 Commits
Author SHA1 Message Date
John MacFarlane 0cba767bd6 Update manual date and man page 2023-03-26 11:11:05 -07:00
John MacFarlane 2a1d5c49d0 Support typst as a pdf-engine. 2023-03-26 10:25:07 -07:00
John MacFarlane 9edf965712 Add typst writer.
See #8713.
2023-03-25 22:05:52 -07:00
John MacFarlane 80e750aa5e Docx writer: include abstract title.
Closes #8702.

Uses localized term for abstract.
2023-03-17 20:06:17 -07:00
John MacFarlane 1bfab1d11e HTML writer footnotes changes:
When `--reference-location=section` or `=block`, use an
`aside` element for the notes rather than a `section`.

When `--reference-location=section`, include the `aside`
element inside the section element, rather than outside.
(In slide shows, this option causes footnotes on a slide
to be displayed at the bottom of the slide.)

Closes #8695.
2023-03-14 21:49:05 -07:00
Pablo Rodríguez 49f748ca0e use Windows %APPDATA% variable to describe user data dir.
Closes #8686.
2023-03-13 16:16:07 -07:00
John MacFarlane 9b04036f6b Add babelfonts variable to default LaTeX template.
This allows specifying certain fonts to be used with
certain babel languages.

Thanks to Frederik Elwert.
2023-03-10 14:19:02 -08:00
John MacFarlane 8a1c8287f3 CHange manual date and regenerate man page. 2023-03-05 13:37:07 -08:00
John MacFarlane becabf5d68 Revise documentation for --mathml
to reflect support in all major browsers.

Closes #8667.
2023-03-03 12:06:52 -08:00
John MacFarlane 9e836d16fa Document CJKsansfont, CJKmonofont. 2023-02-26 15:04:35 -08:00
John MacFarlane 14e2d8d4c2 MANUAL: fix link. 2023-02-22 17:13:38 -08:00
John MacFarlane 077007894e MANUAL: remove obsolete "raw content in a style" section. 2023-02-14 10:03:43 -08:00
Thomas Hodgson 351a8e6c7c URL style in ConTeXt (#8612)
Previously, a URL like this would be in monospace text: `\useURL[url1][https://example.com]`.
Now, it will match the main text unless the `linkstyle` variable is set, which controls the styling of all links.
Closes #8602.

Added documentation for `urlstyle` variable in the ConTeXt template, and added detail to its
documentation in the LaTeX template.
2023-02-12 13:32:40 -08:00
John MacFarlane bc670665a1 MANUAL: document chunk-template in defaults file. 2023-02-09 22:33:17 -08:00
John MacFarlane 122feddce6 Update manual date and man page. 2023-02-08 17:28:16 -08:00
John MacFarlane 8fc4fc66a3 Add new --chunk-template option (closes #8581).
* Add `--chunk-template` CLI option, allowing more control over the
  chunk filenames in chunked HTML output.
* Text.Pandoc.App: Add `optChunkTemplate` constructor to Opt [API change].
* Text.Pandoc.Options: add `writerChunkTemplate` contsructor to
  WriterOptions [API change].
* Text.Pandoc.Chunks: add Data, Typeable, Generic instances for
  PathTemplate.
2023-01-30 21:09:02 -08:00
Salim B dba779cf1f Hyperlink reference to extension in manual (#8583) 2023-01-27 21:38:55 -08:00
John MacFarlane d784c20213 Update manual date. 2023-01-25 08:31:10 -08:00
Albert KrewinkelandIlona Silverwood 86a7e34a85 MANUAL: improve phrasing in PDF accessibility section
Co-authored-by: Ilona Silverwood <ilonasilverwood@gmail.com>
2023-01-18 17:11:49 +01:00
John MacFarlane 66dcba5215 Update MANUAL.txt date. 2023-01-17 21:18:15 -08:00
Albert Krewinkel 45c915f3d8 MANUAL: add section on accessible PDFs, archiving standards
Supersedes, closes: #8312
2023-01-17 07:55:51 -08:00
Albert Krewinkel c71d476fa6 ConTeXt writer: support tagging extension [API Change]
Paragraphs are enclosed by `\bpar` and `\epar` commands, and `highlight`
commands are used for emphasis. This results in much better tagging in
PDF output.
2023-01-15 10:03:58 -08:00
John MacFarlane d7960212c0 Replace --epub-chapter-level with --split-level.
Rationale: we need this splitting level now not just in
EPUB but in chunked HTML.

`--epub-chapter-level` will still function as a deprecated
synonynm. `epub-chapter-level` will also continue to work in
defaults files, ande `epub_chapter_level` will still work for
Lua marshalling.

[API changes]

Text.Pandoc.App.Opt: remove `optEpubChapterLevel`, add
`optSplitLevel`.

Text.Pandoc.Options: remove `writerEpubChapterLevel`, add
`writerSplitLevel`.
2023-01-12 09:04:29 -08:00
John MacFarlane a9a357b5d9 Allow --reference-doc to take URL argument.
Closes #8535.
2023-01-11 09:55:33 -08:00
John MacFarlane ec23d938e0 Add ChunkedHTML writer.
- Add module Text.Pandoc.Writers.ChunkedHTML,
  exporting writeChunkedHtml [API change].
- Revised API for Text.Pandoc.Chunks.
  `chunkNext`, `chunkPrev`, `chunkUp` are now
  just `Maybe Chunk`.
- Fix assignment of navigation elements of Chunks.
- Strip off anchor portion of next and prev links.
- Remove Ord instances for SecInfo, Chunk.
- Derive Show, Eq, Generic for ChunkDoc.
- Add `chunkSectionNumber`, `chunkUnlisted`.
- Automatically unwrap the zip to a directory
  if an extensionless output file specified.
- Incorporate images with relative paths below working dir.
2023-01-11 09:08:16 -08:00
John MacFarlane ce7d1d1c20 Man writer: use UTF-8 by default for non-ascii characters.
Only use groff escapes if `--ascii` has been specified on the
command line (`writerPreferAscii`).

Closes #8507.
2022-12-28 17:16:30 -08:00
John MacFarlane 063480accd T.P.Scripting: Refactor the scripting engine.
The new type CustomComponents is exported from T.P.Scripting, and the
ScriptEngine fields are changed. Instead of separate fields for custom
readers and writers, we now have a single function that loads any number
of "components" from a script: these may be custom readers, custom
writers, templates for writers, or extension configs. (Note: it's
possible to have a custom reader and a custom writer for a format
together in the same file.)

Pandoc now checks the folder `custom` in the user's data directory for a
matching script if it can't find one in the local directory. Previously,
the `readers` and `writers` data directories were search for custom
readers and writers, respectively. Scripts in those directories must be
moved to the `custom` folder.

Custom readers used to implement a fallback behavior that allowed to
consume just a string value as input to the `Reader` function. This has
been removed, the first argument is now always a list of sources. Use
`tostring` on that argument to get a string.

Closes #8417.

Signed-off-by: Albert Krewinkel <albert@zeitkraut.de>
2022-12-20 20:58:44 -08:00
Albert Krewinkel 3be34077f5 MANUAL: fix typo, spacing
Unified spacing in "Variables for ms" section with surrounding sections;
dropped spurious `s` from `install-font.sh` filename.
2022-12-13 12:44:47 +01:00
John MacFarlane aaa3beacc0 EPUB writer: make title page optional.
New command line option: `--epub-title-page=true|false`.

New `writerEpubTitlePage` field on `WriterOptions` [API change].

New `optEpubTitlePage` field on `Opts` [API change].

Closes #6097.
2022-12-04 09:59:05 -08:00
Terence Eden 2008a18f0e Fix epub-embed-font documentation
Fixes #8455
2022-11-28 12:01:17 -07:00
John MacFarlane a4bd4d655a Clarify docs for --metadata-file.
Closes #8459.
2022-11-28 10:58:36 -08:00
John MacFarlane 75435381ac Add support for mark extension for highlighted text.
+ Extensions: Add `Ext_mark` extension.
  This is not part of the pandoc extensions by default.
+ Markdown reader: parse `==..==` if `mark` extension enabled.
+ Markdown writer: support `mark` extension.
+ Docx writer: render Span with class `mark` as highlighted.
  Currently yellow is hardcoded.
+ LaTeX writer: support highlighted text for Span with class `mark`.
+ RST writer: use special `mark` role for Span with class `mark`.
+ Update MANUAL.txt.

Closes #7743.
2022-11-19 12:30:12 -08:00
Amar Al-Zubaidi 03e478ee2c Add LaTeX variable urlstyle (#8429)
This is set to `same` by default, so users should not experience any change.
2022-11-10 08:39:14 -08:00
John MacFarlane 334903bb9d HTML template: remove default font size, line height...
...and font family in default inline css.  Closes #8423
(see comments there for motivation).  `mainfont`, `fontsize`,
and `linestretch` can still be used as before; the only difference
is that we no longer provide opinionated defaults.

This commit also adds a `maxwidth` variable that sets `max-width`;
if not set, 36em is used as a default.
2022-11-09 17:03:12 -08:00
nbehrnd aaac5eb7ec clarify font selection for pdf -t ms (#8421)
Previous versions of the documentation did not clarify much which
options of font selection are available for the generation of .pdf
via `-t ms`.  Nor was there a description how to extend the set of
of fonts provided by ghostscript/pdfgroff.  This commit equally
hints to Peter Schaffter's script install-fonts.sh to facilitate
greatly the later, too.
2022-11-04 10:11:12 -07:00
Albert Krewinkel 79d6b45566 Remove sample.lua from data files (#8397)
The file is kept around in the pandoc-lua-engine test-suite.

Closes: #8356
2022-10-24 09:46:42 -07:00
John MacFarlane fde8635a18 Split Text.Pandoc.Version from Text.Pandoc.Shared.
This new module exports `pandocVersion` and `pandocVersionText`,
which are no longer exported from Text.Pandoc.Shared. [API change]

Also, we now set the `pandoc-version` variable centrally rather
than in the writers.  One effect is the man writer now emits
a comment with the pandoc version (this was intended before,
judging from the template, but it didn't happen because the
vairable wasn't set).
2022-10-19 09:16:13 -07:00
John MacFarlane cca8eee58a T.P.Error: Remove PandocParsecError constructor from PandocError. (#8385)
Henceforth we just use `PandocParseError`.

T.P.Parsing now exports `fromParsecError`, which can be used
to turn a parsec ParseError into a regular PandocParseError
(the appearance to the user should be unchanged in every case).

[API change]

Closes #8382.
2022-10-17 22:12:09 -07:00
John MacFarlane ef432b4324 MANUAL: Clarify that --css should be used with -s. 2022-10-17 08:09:47 -07:00
Albert Krewinkel f189579770 MANUAL: fix reference link in section "pandoc-lua" 2022-10-16 21:39:37 +02:00
John MacFarlane e1e07cce65 MANUAL.txt: add note about MathJax fonts to --embed-resources. 2022-10-10 09:34:40 -07:00
John MacFarlane e7d645c848 MANUAL.txt: update grid table documentation.
Add information about row/colspans and complex headers.

Closes #8346.
2022-10-02 22:40:35 -07:00
Albert Krewinkel cfc2024d37 Use server as command to start the pandoc server 2022-09-30 18:41:51 +02:00
Albert Krewinkel 14bcb4268b [API Change] Add new error constructor PandocNoScriptingEngine.
The exit code for this error is 89.
2022-09-30 08:33:40 -07:00
John MacFarlane 931ccd0376 Remove deprecated option --strip-empty-paragraphs. 2022-09-29 10:37:46 -07:00
John MacFarlane 6227144216 Remove deprecated --atx-headers option. 2022-09-29 10:29:29 -07:00
John MacFarlane 48d0bfc675 Add --list-tables option.
[API change] Add writerListTables to WriterOptions.

RST writer: Remove sensitivity to "list-table" class in table attributes.
Instead, just check `writerListTables` in writer options.

See #4564.
2022-09-29 10:20:58 -07:00
John MacFarlane 5849317bd3 Add link to pandoc-lua manual. 2022-09-27 08:48:34 -07:00
John MacFarlane c5961db10d MANUAL.txt: clarify what background-image does in reveal.js.
Closes #6450.
2022-09-27 08:42:46 -07:00
Albert Krewinkel efecff1f2f pandoc-cli: support -E flag in pandoc-lua 2022-09-27 08:42:27 -07:00