Commit graph

652 commits

Author SHA1 Message Date
John MacFarlane
46a1888c26 Bump to 2.19.2, update changelog and man page. 2022-08-22 08:30:48 -07:00
John MacFarlane
e0a994aa22 Regenerate man pages. 2022-08-18 22:53:58 -07:00
John MacFarlane
e70c6c40c1 Add manual section on pandoc-server. 2022-08-17 12:38:11 -07:00
John MacFarlane
a14e7b0c6d Update date on manual. 2022-08-03 21:16:43 -07:00
John MacFarlane
c97c4761a8 Add boxlinks variable for LaTeX/PDF output.
If `boxlinks` is set but `colorlinks` is not, then boxes will
be printed around links (`hidelinks` will not be set in `hypersetup`).

Addresses #8198.
2022-07-26 09:48:17 -07:00
John Muccigrosso
d2caafea44
Add section for highlighting markup (#8191) 2022-07-22 10:40:22 +02:00
Benjamin Wuethrich
7999b0b96e
Fix links in manual (#8188)
* Fix link to slide shows section
* Fix link to reveal.js section
2022-07-18 10:16:36 +02:00
Ivan Panchenko
6ae91045a2
Fix mistakes in the User’s Guide (#8173) 2022-07-11 11:08:10 +02:00
Sukil Etxenike
227b21e0cb
Document math support in PowerPoint (#8161)
In the manual, there is an indication that Math is rendered in all output formats, yet there is no mention of PowerPoint below, when specifying how it is rendered.
2022-07-03 01:02:04 +02:00
John MacFarlane
e0dea96d6c Improve documentation of horizontal rules and YAML metadata.
Horizontal rules should have blank space after them, or
pandoc may interpret them as beginning a YAML metadata
block or table.

Closes #8140.
2022-06-22 10:22:46 -07:00
John MacFarlane
8fc370bcec Document docx writer's use of Source Code style. 2022-06-21 12:33:15 -07:00
John MacFarlane
2cc93c87c1 MANUAL: add note to --sandbox about embed_data_files.
See #8128.
2022-06-15 16:07:27 -06:00
Elliot Bobrow
6ff4972ca9
add --embed-resources flag (#8121)
* Add `--embed-resources` flag for `--self-contained` without implying
  `--standalone`
* Deprecate `--self-contained flag`

Closes #7331
2022-06-14 17:00:18 -06:00
John MacFarlane
30d802fe38 MANUAL: note that custom readers/writers will...
be sought in the readers/writers subdirectory of
the user data directory if not found relative to
the working directory.

Documents #8112.
2022-06-10 08:40:27 -07:00
Cezary Drożak
6ea83c185c
Remove "m." subdomain from Wikipedia link (#8076) 2022-05-17 08:19:05 -07:00
John MacFarlane
16f0316fba Add tsv (tab separated values) as an input format.
We us ethe simple spec at
<https://www.iana.org/assignments/media-types/text/tab-separated-values>.

API change: Text.Pandoc.Readers.CSV now exports `readTSV`.

Internal change:  In Text.Pandoc.CSV, CSVOptions has changed
so that csvQuote takes a Maybe value.

Closes #7974.
2022-04-24 12:25:04 -07:00
Albert Krewinkel
e1dc292a0c
MANUAL: remove spurious backtick. 2022-04-13 11:40:18 +02:00
Castedo Ellerman
810879a02b
Add HTML to formats including abstract (#8014)
Default HTML template is also including metadata variable `abstract`
2022-04-10 16:40:49 -07:00
John MacFarlane
221ae4c8cb Update man page. 2022-04-04 09:43:27 -07: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
697c814286 Note in manual that smart works for html input. 2022-03-04 10:00:49 -08:00
John MacFarlane
1abf2bcd5f Update MANUAL.txt, since now --self-contained...
seems to work with `--mathjax`.  See #682.
2022-02-22 12:54:04 -08:00
Dimitris Apostolou
2f521081ad
Fix typos (#7934) 2022-02-22 09:05:39 -08:00
John MacFarlane
5b84c0f09d Change --metadata-file parsing...
...so that, when the input format is not markdown or a markdown
variant, pandoc's markdown is used.  When the input format is
a markdown variant, the same format is used.  Reason for the change:
it doesn't make sense to run the markdown parser with a set of
extensions designed for a non-markdown format, and this dramatically
limits what people can do in metadata files.

Refines #6832.  Closes #7926.

Perhaps this can be reconsidered if we come up with a way
of specifying an arbitrary format for the metadata file (#5914).
2022-02-18 09:35:38 -08:00
John MacFarlane
3fa827ecf2 Document way to get list in block quote in slide shows.
This works around the convention that a list in a block
quote is incremental.

Closes #7916.
2022-02-12 13:55:24 -08:00
John MacFarlane
677f2ca26e Allow use of a RIS bibliography with citeproc. 2022-02-05 23:48:55 -08:00
John MacFarlane
3da5440858 Add RIS bibliography format reader.
New module, Text.Pandoc.Readers.RIS, exporting readRIS.

New input format `ris`.

Closes #7894.
2022-02-05 23:25:03 -08:00
John MacFarlane
2fca57522b MANUAL: document EndNote plugin support in docx+citations. 2022-02-05 08:26:42 -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
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
aa5e10ce6c MANUAL: fix documentation for citations and org mode. 2022-02-03 18:59:28 -08:00
John MacFarlane
0bd62ddeaf Update man page. 2022-01-30 11:17:18 -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
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
Carsten Allefeld
07e79f68a7 Additional information from comments in example 2022-01-29 14:22:14 -08:00
Carsten Allefeld
a251f3d274 New defaults files documentation 2022-01-29 14:22:14 -08:00
John MacFarlane
7fbce82f2f LaTeX writer: allow arbitrary frameoptions to be passed...
to a beamer frame, using the frameoptions attribute.
Updated manual.

See #7869.
2022-01-27 14:07:51 -08:00
Even Brenden
7df29e495f
Search for metadata files in $DATADIR/metadata (#7851)
If files specified with `--metadata-file` are not found in the working
directory, look in `$DATADIR/metadata`.

Expose new `readMetadataFile` function from Text.Pandoc.Class
[API change].

Expose new `PandocCouldNotFindMetadataFileError` constructor for
`PandocError` from Text.Pandoc.Error [API change].

Closes #5876.
2022-01-21 12:00:45 -08:00
John MacFarlane
6361d43e53 MANUAL: add that speaker notes can be used with beamer.
Closes #7856.
2022-01-20 18:48:14 -08:00
Albert Krewinkel
7f50324ff9
PDF: support pagedjs-cli as pdf engine (#7838)
PagedJS is a polyfill and supports the Paged Media standards by the W3C.
<https://www.pagedjs.org/>
2022-01-17 09:19:03 -08:00
John MacFarlane
a1cfe04a26 MANUAL: fix formatting of some occurrences of 'pandoc'. 2022-01-15 12:09:51 -08:00
John MacFarlane
55cc9040cb Update man page. 2022-01-14 10:36:59 -08:00
John MacFarlane
4fdbb30a97 Citeproc: allow notes-after-punctuation to work...
with numerical styles that use superscripts (e.g.
american-medical-association.csl), as well as with
note styles. The default setting of `notes-after-punctuation`
is true for note styles and false otherwise.

This restores a behavior of pandoc-citeproc that wasn't properly
carried over to Citeproc.

Closes #7826.
See also jgm/pandoc-citeproc#384.
2022-01-12 21:08:28 -08:00
John MacFarlane
1a6fad9fbd Update manual date and man page. 2022-01-12 15:12:53 -08:00
John MacFarlane
beaf09a758 Add manual section on EPUB styling. 2022-01-09 11:41:46 -08:00
John MacFarlane
ceb463e36e EPUB template improvements.
Include abstract in default template.

Also ensure that the essential styles needed by
pandoc (`styles.html` partial) are included in the
templates.  This is important for correct formatting
of CSL bibliographies.

Note that much of the styling in `styles.html` will
be ignored for EPUB, because of the conditional on
`document-css`, but if it is desired, you can set
the `document-css` variable.
2022-01-09 11:33:47 -08:00