Commit graph

640 commits

Author SHA1 Message Date
Andrew Dunning
7a97ef75ec Correct setspace package usage in README.
Template configured to set `setstretch` directly rather than package options.
2015-10-08 16:27:26 -04:00
Andrew Dunning
5c803252fc Improve CSL documentation in README. 2015-10-08 13:37:26 -04:00
Andrew Dunning
32964ef860 Improve links and cross-references in README. 2015-10-08 12:04:17 -04:00
mb21
80b851a4cf Change variable to polyglossia-lang.name and .options
closes #2437
2015-10-07 22:53:09 +02:00
John MacFarlane
398547bb51 Minor change in README: and -> or.
We never need both polyglossia and babel.
2015-10-05 22:22:45 -07:00
Andrew Dunning
317a5441a8 Revise variables discussion in README. 2015-10-05 18:47:58 -04:00
John MacFarlane
6d0e586b2d Template updates.
Beamer:  added `innertheme`, `outertheme` variables.

LaTeX:  added `mainfontoptions`, `sansfontoptions`,
`monofontoptions`, `mathfontoptions`, `fontfamilyoptions`.
2015-10-03 17:01:01 -07:00
John MacFarlane
fdfc961284 Merge pull request #2419 from mb21/bidi
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
2015-09-26 17:06:56 -07:00
John MacFarlane
72bade01f5 Slightly improved description of citation locators in README. 2015-09-26 16:18:32 -07:00
mb21
7b0c1e0d37 Support bidirectional text output with XeLaTeX, ConTeXt and HTML
closes #2191
2015-09-26 22:22:24 +02:00
nickbart1980
d2bffb098e Give details of locator terms 2015-09-26 17:59:26 +00:00
John MacFarlane
f232a0a720 Merge pull request #2369 from mb21/language-variables
`lang` variable is now in BCP47 format
2015-09-22 22:21:06 -07:00
John MacFarlane
546201cb46 Removed obsolete reference to default.csl.
Closes #2372.

@cinaeco as the pandoc-citeproc man page describes, the current
behavior if no style is specified is to look in
`~/.csl/chicago-author-date.csl`, and if nothing is found there,
to use a default version of chicago-author-date.csl.

You may want to open a separate issue on jgm/pandoc-citeproc
suggesting the use of `default.csl` rather than
`chicago-author-date.csl`.  I agree that this would make sense.
2015-08-25 13:35:21 -07:00
mb21
622df7034c lang variable is now in BCP47 format
strings are converted for LaTeX and ConTeXt output, closes #1614
2015-08-20 23:17:47 +02:00
John MacFarlane
73824908aa Added --bash-completion option.
This generates a bash completion script.

To use:

     eval "$(pandoc --bash-completion)"
2015-08-13 15:27:47 -07:00
John MacFarlane
f78b5a4a5a Clarified what is "out of scope" in README and CONTRIBUTING.md. 2015-08-08 15:18:31 -07:00
mb21
a010b83a75 Updated readers, writers and README for link attribute 2015-08-07 12:38:37 +02:00
John MacFarlane
3e8590d8a4 Clarify docs on block quotes.
The space after `>` is optional.

Closes #2346.
2015-08-06 10:30:22 -07:00
John MacFarlane
5df099957e Text.Pandoc.Options: modifications for image attributes.
* Added `Ext_common_link_attributes` constructor to `Extension`
  (for link and image attributes).
* Added this to `pandocExtensions` and `phpMarkdownExtraExtensions`.
* Added `writerDpi` to `WriterOptions`.
* pandoc.hs:  Added `--dpi` option.
* Updated README for `--dpi` and `common_link_attributes` extension.

Patch due to mb21, with some modifications: `writerDpi` is now an
`Int` rather than a `Double`.
2015-07-27 21:52:43 +02:00
John MacFarlane
2a4dbc3dce README: Added space after backslash in image example.
See #2329.
2015-07-26 14:44:31 -07:00
John MacFarlane
defcb5b6b1 Merge pull request #1689 from kuribas/master
Use '=' instead of '#' for atx-style headers in markdown+lhs.
2015-07-25 10:21:02 -07:00
John MacFarlane
2b68f7af15 Updated README and cabal description for ODT reader. 2015-07-23 15:54:18 -07:00
Chris Black
1c4481daa8 List all styles in manual for --reference-docx 2015-07-21 17:54:16 -05:00
John MacFarlane
225f7f1658 Fixed some internal links in README.
Closes #2309.
2015-07-21 10:24:30 -07:00
John MacFarlane
1cfe9354ca Updated date on README. 2015-07-15 09:04:48 -07:00
John MacFarlane
ed3e540955 Improved documentation of options to print system default files.
`--print-default-data-file` and `--print-default-template`.
Closes #2298.
2015-07-13 21:51:46 -07:00
John MacFarlane
fb58015b9a Added to Contributors list. 2015-07-09 22:37:05 -07:00
John MacFarlane
12d573db66 Clarified that templates go in templates subdirectory of user data dir.
Closes #2272.
2015-07-04 09:29:57 -07:00
John MacFarlane
fbc5384ef8 Bump date on README 2015-07-02 21:37:22 -07:00
John MacFarlane
a04c15a422 New method for building man pages.
+ Removed `--man1`, `--man5` options (breaking change).
+ Removed `Text.Pandoc.ManPages` module (breaking API change).
+ Version bump to 1.15 because of the breaking changes, even
  though they involve features that have only been in pandoc
  for a day.
+ Makefile target for `man/man1/pandoc.1`.  This uses pandoc to
  create the man page from README using a custom template and filters.
+ Added `man/` directory with template and filters needed to build
  man page.
+ We no longer have two man pages: pandoc.1 and pandoc_markdown.5.
  Now there is just pandoc.1, which has all the content from README.
  This change was needed because of the extensive cross-references
  between parts of the README.
+ Removed old `data/pandoc.1.template` and
  `data/pandoc_markdown.5.template`.
2015-07-01 11:27:15 -07:00
John MacFarlane
32a1c78d64 README: Added Lars-Dominik Braun as contributor 2015-06-29 22:52:22 -07:00
John MacFarlane
fe625e053d New method for producing man pages.
This change adds `--man1` and `--man5` options to pandoc, so
pandoc can generate its own man pages.

It removes the old overly complex method of building a separate
executable (but not installing it) just to create the man pages.

The man pages are no longer automatically created in the build
process.

The man/ directory has been removed.  The man page templates
have been moved to data/.

New unexported module:  Text.Pandoc.ManPages.

Text.Pandoc.Data now exports readmeFile, and `readDataFile`
knows how to find README.

Closes #2190.
2015-06-28 14:39:17 -07:00
John MacFarlane
320228777d Document CJKmainfont. 2015-06-13 09:37:03 -07:00
John MacFarlane
05d238cd39 Adjust date on README. 2015-05-27 18:14:12 -07:00
John MacFarlane
9b86eec612 Documented toccolor variable. 2015-05-27 10:42:15 -07:00
John MacFarlane
8c99bc8357 README: Better documentation of syntax highlighting.
See #1318.
2015-05-26 12:00:35 -07:00
John MacFarlane
2fb5709915 Updated contributors and copyright dates in README.
Closes #2153.
2015-05-14 14:57:58 -07:00
John MacFarlane
28d2cd033e README: document which formats have shortcut_reference_links. 2015-05-13 23:18:38 -07:00
John MacFarlane
24ee1ab4f7 Markdown reader: Made implicit header references case-insensitive.
Added `stateHeaderKeys` to `ParserState`; this is a `KeyTable`
like `stateKeys`, but it only gets consulted if we don't find
a match in `stateKeys`, and if `Ext_implicit_header_references`
is enabled.

Closes #1606.
2015-05-13 23:12:58 -07:00
John MacFarlane
75cfa7b462 Beamer: mark slide as [fragile] if header has fragile class.
Closes #2119.
2015-05-13 20:10:54 -07:00
Nikolay Yakimov
cab3c04dd2 README: bibliography updates 2015-05-12 08:09:10 +03:00
John MacFarlane
c6debff1f8 Removed references to biblio-files in pandoc.hs and README. 2015-05-11 21:19:15 -07:00
John MacFarlane
c90764196a Fixed misleading example in README. 2015-05-11 20:23:29 -07:00
John MacFarlane
7920a1a469 Revert "EPUB writer: stylesheet changes. Closes #2040."
This reverts commit 1c2951dfd9.

See #2040.

The semantics was too squishy.  `--css` takes a URL, but
for EPUB we need files that we can read.  I prefer keeping
the old system for now, with `--epub-stylesheet`.
2015-05-09 00:07:27 -07:00
John MacFarlane
1c2951dfd9 EPUB writer: stylesheet changes. Closes #2040.
* Allow `--css` to be used to specify stylesheets.
* Deprecated `--epub-stylesheet` and made it a synoynym of
  `--css`.
* If a code block with class "css" is given as contents of the
  `stylesheet` metadata field, use its literal code as contents of
  the epub stylesheet.  Otherwise, treat it as a filename and
  read the file.
* Note: `--css` and `stylesheet` in metadata are not compatible.
  `stylesheet` takes precedence.
2015-05-08 23:47:50 -07:00
Nikolay Yakimov
c5724eaffb README: Add documentation on backtick_code_blocks
Closes #2135
2015-05-07 17:22:02 +03:00
John MacFarlane
db4d69a8cb Merge pull request #2131 from nickbart1980/patch-2
Update README on in-field markup in biblio databases
2015-05-05 11:00:05 -07:00
J. Lewis Muir
6ebd01c493 Fix typos in User's Guide 2015-05-05 11:51:00 -05:00
nickbart1980
4297677ec6 Update README on in-field markup in biblio databases
Motivated by https://github.com/jgm/pandoc-citeproc/issues/124.
2015-05-05 10:01:57 +00:00
John MacFarlane
28ca8566ab Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanum
Allow digit as first character of a citation key.
2015-04-17 19:10:37 -07:00
Andreas Lööw
6a076ae36e Various minor formatting and consistency fixes for the program options. 2015-04-16 18:41:17 +00:00
Andreas Lööw
2fd5f4c37d Minor, fixed a Markdown error that caused formatting problems. 2015-04-16 17:26:34 +00:00
John MacFarlane
2cd08b47e0 Document toc-title variable in README.
See #2081.
2015-04-14 09:41:26 -07:00
John MacFarlane
09083637ab Merge pull request #2078 from nickbart1980/patch-2
Adds YAML biblio format
2015-04-13 09:23:03 -07:00
John MacFarlane
c5acaec3b5 LaTeX template: include grffile together with graphicx.
This properly handles filenames containing spaces and dots.
Closes #2074.
2015-04-13 09:00:55 -07:00
nickbart1980
a43ceb5549 Adds YAML biblio format
Also, adds note on pandoc-citeproc --bib2json and pandoc-citeproc --bib2yaml, and sorts table
2015-04-13 10:21:41 +00:00
nickbart1980
d54a97113e Fix obsolete reference to mods2yaml 2015-04-10 08:34:26 +00:00
John MacFarlane
2b2f7fe15e Merge pull request #2035 from lierdakil/issue2031
Docx Writer/Reference: Add keepNext to objects w/ captions
2015-03-30 20:30:15 -07:00
John MacFarlane
ccb828894b Added CommonMark writer.
Added `Text.Pandoc.Writers.CommonMark`, exporting
`writeCommonMark`.
2015-03-29 23:42:42 -07:00
Nikolay Yakimov
0d4d262944 Updated README with new Docx Writer style names 2015-03-29 11:48:58 +03:00
John MacFarlane
aa49deceaa README: Add links to filter libs in perl, php, javascript.
Closes #1829.
2015-03-28 22:05:27 -07:00
John MacFarlane
49e1b83ac6 README: make defn lists for options all "loose" for consistency. 2015-03-27 10:58:43 -07:00
John MacFarlane
e0d234e54d Added CommonMark reader using cmark (libcmark bindings).
- Added commonmark as an input format.
- Added `Text.Pandoc.Readers.CommonMark.readCommonMark`.
- For now, we use the markdown writer to generate benchmark
  text for the CommonMark reader.  We can change this when we
  get a writer.
2015-03-17 16:15:57 -07:00
Tom Leese
3dba66bf5d Replace occurrences of 'Github' with 'GitHub'
The website is called 'GitHub' afterall.
2015-03-16 09:28:45 +00:00
John MacFarlane
f6e46b7146 Moved and rewrote documentation for shortcut_reference_links ext. 2015-03-15 12:01:14 -07:00
John MacFarlane
0deb7c507d Merge pull request #1989 from zudov/shortcut_ref_link_pr
Support shortcut reference links in markdown writer
2015-03-15 11:58:30 -07:00
Konstantin Zudov
b9f77ed03d Support shortcut reference links in markdown writer
Issue #1977

Most markdown processors support the [shortcut format] for reference links.
Pandoc's markdown reader parsed this shortcuts unoptionally.
Pandoc's markdown writer (with --reference-links option) never shortcutted links.

This commit adds an extension `shortcut_reference_links`. The extension is
enabled by default for those markdown flavors that support reading shortcut
reference links, namely:

    - pandoc
    - strict pandoc
    - github flavoured
    - PHPmarkdown

If extension is enabled, reader parses the shortcuts in the same way as
it preveously did. Otherwise it would parse them as normal text.

If extension is enabled, writer outputs shortcut reference links unless
doing so would cause problems (see test cases in `tests/Tests/Writers/Markdown.hs`).
2015-03-10 20:32:24 +02:00
John MacFarlane
48eaadc57f Fixed pipe tables -- headerless tables are not allowed.
GFM and PHP Markdown Extra pipe tables require headers.
Previously pandoc allowed pipe tables not to include headers,
and produced headerless pipe tables in Markdown output, but this
was based on a misconception about pipe table syntax. This
commit fixes this.

Note:  If you have been using headerless pipe tables, this may
cause existing tables to break.

Closes #1996.
2015-03-07 10:40:13 -08:00
Sumit Sahrawat
ad9e4cde9d Fix issue #969, #1779 by providing --latex-engine-opt 2015-03-04 15:25:56 +05:30
Matthias C. M. Troffaes
dccd408a9c Allow digit as first character of a citation key.
* Update parser to recognize citation keys starting with a digit.
* Update documentation accordingly.
* Test case added.

See https://github.com/jgm/pandoc-citeproc/issues/97
2015-02-18 15:30:17 +00:00
John MacFarlane
e32227f744 Allow wildcards in --epub-embed-font arguments.
Closes #1939.
2015-02-13 23:34:20 -08:00
John MacFarlane
e3422dc438 Added --verbose flag for debugging output in PDF production.
Closes #1840.
Closes #1653.
2014-12-26 11:19:55 -07:00
John MacFarlane
bbb8bfab29 Fixed link in README 2014-12-16 17:54:10 -08:00
John MacFarlane
9ea7164d81 Reworded paragraph on citation data in README.
Closes #1814.
2014-12-15 21:20:27 -08:00
John MacFarlane
a5cac0a0c4 Don't treat a citation as a reference link label.
Closes #1763.
2014-12-15 10:54:12 -08:00
John MacFarlane
d009646de7 Added a note about the need for -s to include YAML in Markdown output.
Closes #1715. Thanks to @nichtich for the suggestion.
2014-12-15 09:20:03 -08:00
Matthew Pickering
4458fed972 Merge pull request #1646 from neongreen/issue1631
Add an -email address link- example to README.
2014-12-08 22:58:55 +00:00
John MacFarlane
0169e10344 Fixed README and pandoc.cabal for TWiki reader. 2014-10-31 12:07:19 -07:00
John MacFarlane
1d268876f8 Merge pull request #1726 from AlexanderS/twiki-parser
TWiki Reader: add new new twiki reader
2014-10-31 12:02:14 -07:00
Alexander Sulfrian
2cf09aad55 TWiki Reader: update documentation 2014-10-30 20:02:17 +01:00
John MacFarlane
93b82e8ea6 Clarified need for -s to get character encoding info.
Closes #1724, #1725.
2014-10-28 10:21:44 -07:00
Kristof Bastiaensen
0198e95071 Use '=' instead of '#' for atx-style headers in markdown+lhs. 2014-10-14 13:28:28 +02:00
John MacFarlane
067f2e640f Updated description of heuristic for math $. 2014-09-29 14:55:03 -07:00
Artyom
9d3504dd4d README: Add an -email address link- example.
Fixes #1631.
2014-09-26 13:49:08 +04:00
mpickering
85cff719f6 Updated README to include information about KaTeX switches 2014-09-25 18:32:50 +01:00
John MacFarlane
5459b22d50 Use real copyright symbol in README epub metadata example. 2014-08-31 14:46:51 -07:00
John MacFarlane
6cf9ab7855 README: escape (c) in epub metadata example 2014-08-31 12:31:36 -07:00
John MacFarlane
78da4d7bd8 Updated README date 2014-08-30 14:15:22 -07:00
John MacFarlane
ee28dfb502 Updated README on --self-contained.
Removed outdated claim that pandoc will look in the user data
directory if a relative path is specified and the file is not
found locally.  Closes #1572.
2014-08-30 11:09:15 -07:00
John MacFarlane
0ef1f787c7 Docx writer: Bibliography entries get Bibliography style.
Closes #1559.
2014-08-23 20:52:09 -07:00
John MacFarlane
16f8a59f8c Small documentation tweak 2014-08-14 09:56:24 -07:00
John MacFarlane
a67e5e877d README: Added needed blanklines in definition list.
Thanks @mpickering for noticing this.
2014-08-11 08:18:37 -07:00
Matthew Pickering
ed7315449f Updated README with information about EPUB meta element 2014-08-11 11:29:30 +01:00
John MacFarlane
19daf6cf0a Added native_divs and native_spans extensions.
This allows users to turn off the default pandoc behavior of
parsing contents of div and span tags in markdown and HTML
as native pandoc Div blocks and Span inlines.

Setting of default epub extensions has been moved from the EPUB
reader to Text.Pandoc.
2014-08-08 21:05:34 -07:00
John MacFarlane
2fabdf9d93 README: Removed duplicate ref of [EPUB]. 2014-08-04 12:43:13 -07:00
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