Commit graph

641 commits

Author SHA1 Message Date
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
Lucas Viana
fb91a91615 Org reader: support alphabetical (fancy) lists
This adds support for alphabetical lists in org by enabling the
extension Ext_fancy_lists, mimicking the behaviour of Org Mode when
org-list-allow-alphabetical is enabled.

Enabling Ext_fancy_lists will also make Pandoc differentiate between the
delimiters of ordered lists (periods or closing parentheses). Org does
this differentiation by default when exporting to some formats (e.g.
plain text) but does not in others (e.g. html and latex), so I decided
to copy Pandoc's markdown reader behaviour.
2022-01-09 09:39:27 -08:00
John MacFarlane
6fffa1ac78 Change stretch to r-stretch in manual for reveal.js. 2022-01-06 11:41:05 -08:00
Martin Fischer
73e429dccb MANUAL.txt: clarify "standard Markdown" as "original Markdown"
"standard Markdown" might be confused with CommonMark.

Closes #7802.
2022-01-05 13:07:54 -08:00
Albert Krewinkel
b7a44f9d19 Copyright notices: update for 2022 2022-01-02 11:59:22 -08:00
John MacFarlane
7a9832166e Add text wrapping to HTML output.
Previously the HTML writer was exceptional in not being
sensitive to the `--wrap` option.  With this change `--wrap`
now works for HTML. The default (as with other formats) is
automatic wrapping to 72 columns.

A new internal module, T.P.Writers.Blaze, exports `layoutMarkup`.
This converts a blaze Html structure into a doclayout Doc Text.

In addition, we now add a line break between an `img` tag
and the associated `figcaption`.

Note: Output is never wrapped in `writeHtmlStringForEPUB`.
This accords with previous behavior since previously the HTML
writer was insensitive to `--wrap` settings.  There's no real
need to wrap HTML inside a zipped container.

Note that the contents of script, textarea, and pre tags are
always laid out with the `flush` combinator, so that unwanted
spaces won't be introduced if these occur in an indented context
in a template.

Closes #7764.
2021-12-22 09:45:02 -08:00
binaarinen
0610f16f7f
Add a writer for Markua 0.10 (#7729)
Markua is a markdown variant used by Leanpub.
More information about Markua can be found at https://leanpub.com/markua/read.

Adds a new exported function `writeMarkua` from T.P.Writers.Markdown.
[API change]

Closes #1871.

Co-authored by Tim Wisotzki and Samuel Lemmenmeier.
2021-12-19 12:10:41 -08:00
John MacFarlane
426342f00d Fix typo. Closes jgm/pandoc-website#54. 2021-11-30 08:25:15 -08:00
John MacFarlane
79e6f8db13 Improve detection of pipe table line widths.
Fixed calculation of maximum column widths in pipe tables.
It is now based on the length of the markdown line, rather
than a "stringified" version of the parsed line.  This should
be more predictable for users. In addition, we take into account
double-wide characters such as emojis.

Closes #7713.
2021-11-23 13:29:25 -08:00
John MacFarlane
4857cd1769 Update man page. 2021-11-20 23:19:22 -08:00
John MacFarlane
946b959751 Fix misspelled extension name in manual.
`short_subsuperscript` -> `short_subsuperscripts`.
Closes #7690.
2021-11-14 20:55:39 -08:00
John MacFarlane
881b45209e Replace old sample custom reader with a full-featured reader for creole.
This is better as an example.  And it is faster than pandoc's
regular creole parser, which shows that high-performance readers
can be developed this way.
2021-11-07 14:34:56 -08:00