Commit graph

545 commits

Author SHA1 Message Date
John MacFarlane
4630cff2a6 Merge branch 'epubend' of https://github.com/mpickering/pandoc into mpickering-epubend
Conflicts:
	pandoc.cabal
2014-08-04 07:36:18 -07:00
John MacFarlane
81335df9a5 Merge pull request #1461 from cben/readme-linkable-extensions
README: linkable extensions
2014-08-03 11:50:07 -07:00
Beni Cherniavsky-Paskin
4919b1b568 README: make all extension headers H4 2014-07-31 23:56:40 +03:00
Matthew Pickering
d6717c7aba README: Updated with EPUB information 2014-07-31 21:39:50 +01:00
Beni Cherniavsky-Paskin
dc799507e1 README: blank line after headers 2014-07-31 23:11:56 +03:00
John MacFarlane
fcafcaa8e6 Added note in README about pipe tables not wrapping in LaTeX/PDF.
See
http://stackoverflow.com/questions/25037357/pandoc-long-tablerows-in-markdown-pdf-documents-do-not-get-linewrap/25050474#25050474
2014-07-31 07:48:14 -07:00
John MacFarlane
b5210bc175 Added --extract-media option.
This has been documented to affect the epub and docx readers, so
we should either add the epub reader before the next release or
change the documentation.
2014-07-30 11:44:25 -07:00
John MacFarlane
33a051d00d Docx writer: Print subtitle from metadata if present.
Use Subtitle style.

See #1451.
2014-07-29 20:46:55 -07:00
Beni Cherniavsky-Paskin
f84a25e1aa README: reduce 1:1 Topic -> Extension nesting
Reorganize some sections whose only purpose was containing a single Extension subsection.
2014-07-28 18:19:50 +03:00
John MacFarlane
2610de0159 Docx writer: include abstract with Abstract style.
Addresses docx part of #1451.
2014-07-26 22:55:45 -07:00
John MacFarlane
74690b191e Added t2t to -f in README documentation. 2014-07-26 18:49:19 -07:00
Matthew Pickering
00cb9836b8 Txt2Tags Reader: Updated README and package description 2014-07-27 00:12:57 +01:00
Beni Cherniavsky-Paskin
28debcd9dd README: turn all extensions into headers for direct linking
Change all `**Extension: ...**` lines into headers to allow permalinking to a specific extension.
2014-07-23 22:50:46 +03:00
John MacFarlane
64c7a0ab76 Include lot and lof variables in latex template.
These can be set to get `\listoftables` and `\listoffigures`.
Closes #1407.

At this point we won't add a command line argument, because
this only affects one writer.  But the variables can be set
at the command line with

    -Vlof -Vlot

or in YAML metadata.
2014-07-20 21:58:16 -07:00
John MacFarlane
4af8eed764 Markdown reader: revised definition list syntax (closes #1429).
* This change brings pandoc's definition list syntax into alignment
  with that used in PHP markdown extra and multimarkdown (with the
  exception that pandoc is more flexible about the definition markers,
  allowing tildes as well as colons).

* Lazily wrapped definitions are now allowed; blank space is required
  between list items; and the space before definition is used to
  determine whether it is a paragraph or a "plain" element.

* For backwards compatibility, a new extension,
  `compact_definition_lists`, has been added that restores the behavior
  of pandoc 1.12.x, allowing tight definition lists with no blank space
  between items, and disallowing lazy wrapping.
2014-07-20 16:33:59 -07:00
John MacFarlane
fe6b4e532d Fixed typo in link 2014-07-17 19:40:01 -07:00
John MacFarlane
9d10df7ff4 Clarified documentation on small caps. (#1360) 2014-07-13 15:21:32 -07:00
Caleb McDaniel
a9f00ee0d6 document fenced_code_attributes extension
Adds explanation of this extension to the README, using
description provided in 7654db9df1.
2014-07-12 15:48:54 -05:00
John MacFarlane
7654db9df1 Markdown writer: don't use braced attributes for fenced code.
Removed `Ext_fenced_code_attributes` from `markdown_github`
extensions.

If this extension is not set, the first class attribute will
be printed after the opening fence as a bare word.

Closes #1416.
2014-07-11 15:54:21 -07:00
John MacFarlane
ca159de30a Documented fact that you can put YAML metadata in a separate file.
See #1412.
2014-07-10 13:49:40 -07:00
John MacFarlane
7560f99167 Document DokuWiki writer in README. 2014-07-07 16:20:28 -06:00
Jesse Rosenthal
74676df75f Fix typo in README. 2014-06-25 16:19:27 -04:00
Jesse Rosenthal
58da1cd3bd Updated README to include "--track-changes" option. 2014-06-25 16:01:52 -04:00
John MacFarlane
5d0103606f Markdown reader: Support smallcaps through span.
`<span style="font-variant:small-caps;">foo</span>` will be
parsed as a `SmallCaps` inline, and will work in all output
formats that support small caps.

Closes #1360.
2014-06-20 15:26:45 -07:00
John MacFarlane
35e57db5c2 Finished first draft of Haddock writer. 2014-06-18 17:09:36 -07:00
Jesse Rosenthal
c709cec0bd Updated README to reflect docx reader. 2014-06-16 07:18:52 -04:00
John MacFarlane
ff25cf079c Reformatted nocite example in README. 2014-06-04 08:18:24 -07:00
John MacFarlane
455072bdf2 Updated README on reference.docx. 2014-06-01 23:38:27 -07:00
John MacFarlane
265f0e3da1 Fixed documentation of attributes. Closes #1315. 2014-05-27 10:39:13 -07:00
John MacFarlane
f1cd6af5ec Updated date on README. 2014-05-27 10:32:46 -07:00
Phillip Alday
cb6879cd2f fixed escape for literal paragraph 2014-05-16 17:36:01 +02:00
John MacFarlane
0048b8c68c README: Updated Authors. 2014-05-07 09:32:25 -07:00
John MacFarlane
d508c554f7 LaTeX template: Added linestretch variable.
Documented this and fontfamily.
2014-05-06 10:48:31 -07:00
John MacFarlane
ddb47ef6e8 Added fontfamily variable to latex template. (tlvince) 2014-05-06 09:55:43 -07:00
John MacFarlane
9fe669976c README: Clarified citation key syntax. 2014-05-04 12:21:34 -07:00
John MacFarlane
26dc79cdd1 Clarified use of --natbib and --biblatex.
Not for use with pandoc-citeproc.
2014-05-04 12:18:44 -07:00
John MacFarlane
9625cf6f40 README: Note about unnumbered being added to final 'References' sect. 2014-05-03 22:05:24 -07:00
Albert Krewinkel
a76869ced5 README: Update variable defaults documentation
The documented default values of variables now agree with their true
default values as defined in Writer/HTML.hs.
2014-04-27 21:21:20 +02:00
John MacFarlane
dc82d222e5 README: Added note to --bibtex/--natbib: not for use in making PDF.
Closes #1194. Thanks to nahoj.
2014-04-05 16:01:46 -07:00
John MacFarlane
e3097172b1 Fixed typo in README 2014-03-24 10:16:06 -07:00
John MacFarlane
64a571775d Updated README and pandoc.cabal with icml writer. 2014-03-04 10:29:13 -08:00
Albert Krewinkel
8909229671 Update README to include info on Org-mode reader 2014-03-04 10:40:52 +01:00
John MacFarlane
0f1fa1b586 Added explanation of 'nocite' trick. 2014-02-13 10:33:18 -08:00
John MacFarlane
68b438b1b8 Removed obsolete README note about mmd title blocks. 2014-01-13 00:13:46 -08:00
John MacFarlane
8ef758fa68 Added README comment on line breaks in cells 2014-01-08 08:11:49 -08:00
John MacFarlane
93eac71383 Documented biblio-files variable 2014-01-03 10:05:56 -08:00
Nicolas Kaiser
a738153941 fix typos in README 2013-12-23 17:00:14 +01:00
John MacFarlane
02e3b2afca Updated README (since abstract will work, at least with default latex). 2013-12-11 22:09:49 -08:00
John MacFarlane
2c886935e6 Added more explanation of metadata in README. 2013-12-11 10:46:36 -08:00
John MacFarlane
7929099a7d Fixed documentation bug. 2013-12-10 10:24:14 -08:00
John MacFarlane
6ba51165b0 Documented use of extensions with non-markdown input formats. 2013-12-06 17:40:11 -08:00
John MacFarlane
e3d19bf1cd Merge pull request #1076 from jlduran/booktabs
Add booktabs package for LaTeX tables
2013-12-03 20:55:14 -08:00
Jose Luis Duran
fdaeec0c48 Add booktabs package for LaTeX tables
[ci skip]
2013-12-04 04:26:22 +00:00
John MacFarlane
bd96f2bdcc EPUB writer: Allow 'stylesheet' in metadata.
The value is a path to the stylesheet.
2013-12-03 10:32:25 -08:00
John MacFarlane
17ef39d157 Fixed cover-image in EPUB YAML metadata. 2013-11-30 15:25:28 -08:00
John MacFarlane
96b678d823 Allow specification of epub-cover-image in YAML metadata. 2013-11-30 15:17:38 -08:00
John MacFarlane
2f4bf9dfa4 README: minor reformatting. 2013-11-30 15:08:09 -08:00
John MacFarlane
6e17070be1 Documented use of YAML metadata for EPUB. 2013-11-30 15:06:19 -08:00
John MacFarlane
0df7cce37d Treat div with class "notes" as speaker notes in slide formats.
Currently beamer goes to `\note{}`, revealjs to `<aside class="notes">`,
and the notes are simply suppressed in other formats.

Closes #925.
2013-10-13 15:37:25 -07:00
John MacFarlane
df313b859f Added small explanation of difference btw -M and -V. 2013-09-19 21:04:58 -07:00
John MacFarlane
87def47e87 Documented --metadata change. 2013-09-19 21:01:17 -07:00
John MacFarlane
c92d9db7f0 README: Added link to lua. 2013-09-13 22:40:00 -07:00
John MacFarlane
873a21170e Updated README on pandocfilters python module. 2013-09-11 22:17:00 -07:00
John MacFarlane
6a5d7cfcbe Changed pandocfilters repository URL. 2013-09-11 19:43:13 -07:00
John MacFarlane
d47eadaf56 --bibliography again implies -F pandoc-citeproc.
But only if pandoc-citeproc isn't already specified as a filter.
2013-09-10 20:23:03 -07:00
John MacFarlane
4381c37b10 --bibliography no longer implies -F pandoc-citeproc.
This could lead to double filtering if the user specifies `-F`
too.
2013-09-08 22:46:30 -07:00
John MacFarlane
81e2df32c9 Made . . . for pause work in all slide show formats except slideous. 2013-09-08 15:47:50 -07:00
John MacFarlane
5afd373ae4 Added lists_without_preceding_blankline extension.
* Added `Ext_lists_without_preceding_blankline` to
  `Extension` in `Options`.  Added this option to
  `githubMarkdownExtensions`.
* Made markdown reader sensitive to this.
* Closes #972.
2013-09-07 09:36:37 -07:00
John MacFarlane
6fb9e82281 Fixed typo. 2013-09-05 19:55:19 -07:00
John MacFarlane
9ca89ec673 Documented --bibliography, --csl, --citation-abbreviations. 2013-09-01 16:26:08 -07:00
John MacFarlane
8977b2aaed Changed --metadata to return Boolean True if no value.
Also documented in README.
2013-09-01 16:22:40 -07:00
John MacFarlane
8e61a6214f Document fact that --toc doesn't do anything for docx or odt output.
See #458.
2013-09-01 09:45:48 -07:00
John MacFarlane
deb59b6235 Removed dependency on citeproc-hs.
Going forward we'll use pandoc-citeproc, as an external filter.

The `--bibliography`, `--csl`, and `--citation-abbreviation` fields
have been removed.  Instead one must include `bibliography`, `csl`,
or `csl-abbrevs` fields in the document's YAML metadata.  The filter
can then be used as follows:

    pandoc --filter pandoc-citeproc

The `Text.Pandoc.Biblio` module has been removed.  Henceforth,
`Text.CSL.Pandoc` from pandoc-citations can be used by library users.

The Markdown and LaTeX readers now longer format bibliographies and
citations.  That must be done using `processCites` or `processCites'`
from Text.CSL.Pandoc.

All bibliography-related fields have been removed from `ReaderOptions`
and `WriterOptions`: `writerBiblioFiles`, `readerReferences`,
`readerCitationStyle`.

API change.
2013-08-24 22:33:01 -07:00
John MacFarlane
0e2605ffdf Allow multiple YAML metadata blocks in document. 2013-08-18 18:39:04 -07:00
John MacFarlane
05cc3a5c21 Improved --filter documentation. 2013-08-18 15:58:08 -07:00
John MacFarlane
89a7703260 Shared: Changed stringify so it ignores notes.
Also documented this in README.
2013-08-16 13:22:27 -07:00
John MacFarlane
bd73d73a28 Removed --print-sample-lua-writer, added --print-default-data-file.
Closes #943.
2013-08-13 18:29:57 -07:00
John MacFarlane
2677e84663 Revert "Revert "Added --filter option.""
This reverts commit 2e5edbb278.
2013-08-08 11:09:00 -07:00
John MacFarlane
208a9e076d Beamer template: Added fonttheme variable. 2013-08-06 18:08:38 -07:00
John MacFarlane
1dde96e418 Document that fancy_lists turns on # as list marker. 2013-07-29 08:38:29 -07:00
John MacFarlane
a97f39c12e Beamer: add allowframebreaks to slide if set in header classes.
It's recommended that your bibliography slide have this
attribute:

    # References {.allowframebreaks}

This causes multiple slides to be created if necessary, depending
on the length of the bibliography.
2013-07-26 12:40:56 -07:00
John MacFarlane
2e5edbb278 Revert "Added --filter option."
This reverts commit 85dacbb282.
2013-07-23 23:17:07 -07:00
John MacFarlane
85dacbb282 Added --filter option.
This makes it easier to use JSON filters.  Instead of
doing

    pandoc -t json | ./filter | pandoc -f json

you can just do

    pandoc --filter ./filter
2013-07-23 23:02:47 -07:00
John MacFarlane
a5df042e28 LaTeX template: Added biblio-style variable.
Closes #920.
2013-07-20 10:53:11 -07:00
David Röthlisberger
df3546068e README: Fix minor typo 2013-07-20 13:02:35 +01:00
John MacFarlane
6c2e76ac61 Added ignore_line_breaks markdown extension.
This causes intra-paragraph line breaks to be ignored,
rather than being treated as hard line breaks or spaces.
This is useful for some East Asian languages, where spaces
aren't used between words, but text is separated into lines
for readability.
2013-07-17 15:38:56 -07:00
John MacFarlane
7d75b913bd LaTeX/Beamer template: Added classoption variable.
This is intended for class options like `oneside`; it may
be repeated with different options.  Thanks to Oliver Matthews.
2013-07-17 15:06:43 -07:00
John MacFarlane
595149a9bc Fixed YAML code block in README. 2013-07-15 19:32:08 -07:00
John MacFarlane
22699a979d Updated authors in README. 2013-07-14 16:12:06 -07:00
John MacFarlane
1de55ecbbd --toc-level no longer implies --toc.
Reason: EPUB users who don't want a visible TOC may still want
to set the TOC level for in the book navigation.
2013-07-03 12:47:35 -07:00
John MacFarlane
3deab5d8e3 Document YAML metadata blocks. 2013-07-02 22:54:36 -07:00
John MacFarlane
3cd62d7c35 Rename Ext_yaml_title_block -> Ext_yaml_metadata_block. 2013-07-02 20:54:30 -07:00
John MacFarlane
dd96213c05 Man writer: give more fine-grained control in template.
Now the `title`, `section`, `header`, and `footer` can all be set
individually in metadata.  The `description` variable has been
removed.

Quotes have been added so that spaces are allowed in the title.

If you have a title that begins

    COMMAND(1) footer here | header here

pandoc will parse it as before into a title, section, header, and
footer.  But you can also specify these elements explicitly.

Closes #885.
2013-06-27 19:32:28 -07:00
Aaron Wolen
1364fb3f00 Documented citecolor variable 2013-06-24 17:49:06 -03:00
John MacFarlane
768ddc3d56 README: Note that --atx-headers affects asciidoc as well as markdown. 2013-05-30 17:01:34 -07:00
John MacFarlane
68272fad66 README: Noted that --self-contained doesn't work with --mathjax. 2013-04-25 19:30:09 -07:00
John MacFarlane
fd36acf439 README: Documented markdown variants (which extensions they have). 2013-04-23 20:41:25 -07:00
John MacFarlane
d0ab30f632 README: Documented ascii_identifiers extension 2013-04-23 20:41:10 -07:00
John MacFarlane
4fa2a94759 Added Text.Pandoc.Writers.Custom, --print-custom-lua-writer.
pandoc -t data/sample.lua

will load the script sample.lua and use it as a custom writer.
data/sample.lua is provided as an example.

Added `--print-custom-lua-writer` option to print the sample
script.
2013-04-14 00:31:39 -05:00
John MacFarlane
72020f1773 Docx writer: Use Compact style for Plain block elements.
This differentiates between tight and loose lists.
Closes #775.
2013-03-30 22:11:00 -07:00