John MacFarlane
ee4e863225
Merge pull request #2890 from bcdevices/docbook5-writer
...
Docbook5 write support
2016-05-01 22:43:38 -07:00
John MacFarlane
1fbe79db05
LaTeX writer: use {} around options containing special chars.
...
Closes #2892 .
2016-05-01 11:20:26 -07:00
Ivo Clarysse
fd36e6b64a
Docbook5 writer: Properly handle ulink/link
2016-04-29 16:06:55 -07:00
Ivo Clarysse
987ec3a752
Write out Docbook 5 namespace
2016-04-29 15:43:15 -07:00
John MacFarlane
aa4a1d527a
HTML writer: ensure mathjax link is added when math appears in footnote.
...
Previously if a document only had math in a footnote,
the MathJax link would not be added.
Closes #2881 .
2016-04-29 14:54:54 -07:00
Ivo Clarysse
271cb4d845
Add docbook5 writer support
2016-04-29 14:00:46 -07:00
John MacFarlane
32f1b0a5f1
Revert "LaTeX writer: Add \strut
to fix multiline tables"
...
This reverts commit 4c684561ee
.
See
https://groups.google.com/d/msg/pandoc-discuss/u6J-_aCProU/UufN3IYRAgAJ
This should fix uneven spacing issues in multiline tables.
2016-04-27 17:25:45 -07:00
John MacFarlane
ece215ed7d
Merge pull request #2735 from mb21/patch-1
...
LaTeX Writer: fix polyglossia to babel env mapping
2016-04-26 23:09:02 -07:00
John MacFarlane
cc0527bf31
Merge pull request #2829 from adunning/patch-1
...
LaTeX writer: Add missing languages.
2016-04-26 23:08:15 -07:00
John MacFarlane
1985164816
LaTeX writer: ignore --incremental unless -t beamer.
...
Closes #2843 .
2016-04-26 21:50:37 -07:00
Andrew Dunning
9765ef2ce6
LaTeX writer: Add missing languages.
...
Updates the list from the hyphenation files at <http://mirror.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/loadhyph/ >.
2016-04-01 16:47:33 +01:00
Andrew Dunning
0c37a7c488
Recognize la-x-classic
as Classical Latin.
...
This allows one to access the hyphenation patterns at <http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex >, using its private language tag.
2016-03-30 14:15:47 +01:00
John MacFarlane
f74498cb47
EPUB writer: set 'navpage' variable on nav page.
...
This allows templates to treat it differently.
2016-03-26 13:14:50 -07:00
John MacFarlane
9742c48647
Removed two superfluous lines.
2016-03-25 09:05:38 -07:00
John MacFarlane
f47b369f37
LaTeX writer: better positioning for hypertarget in figures.
...
Closes #2813 .
2016-03-24 16:44:33 -07:00
John MacFarlane
bb6897a13e
LaTeX writer: Fixed position of label in figures.
...
Partially addresses #2813 .
This isn't perfect, because now the hypertarget is in the
wrong place -- when you link to the figure, the screen
is positioned with the caption at the top, and most of
the figure off screen.
So this needs a bit more tweaking.
2016-03-24 09:41:45 -07:00
Mauro Bieg
44f95484a4
LaTeX Writer: fix polyglossia to babel env mapping
...
allow for optional argument in square brackets, closes #2728
2016-03-20 19:17:30 +01:00
John MacFarlane
3af753de47
Merge pull request #2637 from mb21/latex-figure-label
...
LaTeX writer: figure label
2016-03-19 13:56:14 -07:00
John MacFarlane
976e7e2054
ConTeXt writer: fix whitespace at line beginning in line blocks.
...
Add a `\strut` after `\crlf` before space.
Closes #2744 , #2745 . Thanks to @c-foster.
This uses the fix suggested by @c-foster.
Mid-line spaces are still not supported, because of limitations
of the Markdown parser.
2016-03-18 16:36:56 -07:00
John MacFarlane
e821b05125
LaTeX writer: Avoid double toprule in headerless table with caption.
...
Closes #2742 .
2016-03-18 16:16:18 -07:00
mb21
139fa54d48
Docx Writer: handle image alt text
...
closes #2754
2016-03-10 08:56:08 +01:00
John MacFarlane
6bfaa5ad15
DokuWiki writer: use $$ for display math.
2016-03-08 10:08:14 -08:00
John MacFarlane
649cfb61b8
Merge pull request #2668 from monofon/fix/yaml-metadata-block-bottom-line
...
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-02-20 21:43:15 -08:00
Jesse Rosenthal
4438ff17fb
LaTeX writer: clean up options parser.
...
Make sure that we require the closing bracket.
2016-02-18 23:35:38 -05:00
Jesse Rosenthal
4112b321cd
LaTeX writer: treat memoir template with article
opt as article
...
We currently treat all memoir templates as books. This means that pandoc
will infer the `--chapters` argument, even if the `article` iption is
set for memoir.
This commit makes pandoc treats the document as an article if there is
an article option (i.e., `\documentclass[12pt,article]{memoir}`).
Note that this refactors out the parsec parsers for document class and
options, to make it a little clearer what's going on.
2016-02-18 22:32:38 -05:00
John MacFarlane
a692bd2872
Custom writer: Pass attributes parameter to CaptionedImage.
...
Closes #2697 .
2016-02-05 16:49:27 -08:00
John MacFarlane
93a05dffd3
HTML writer: don't include alignment attribute for default table columns.
...
Previously these were given "left" alignment. Better to leave off
alignment attributes altogether.
Closes #2694 .
2016-02-03 13:31:21 -08:00
John MacFarlane
20170c328f
Changed type of Shared.uniqueIdent argument from [String] to Set String.
...
This avoids performance problems in documents with many identically
named headers.
Closes #2671 .
2016-01-22 10:16:47 -08:00
John MacFarlane
3b39b16a4b
Merge pull request #2638 from c-forster/teiwriter
...
Add TEI Writer.
2016-01-21 15:23:50 -08:00
Henrik Tramberend
556d0c1810
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-01-21 12:44:16 +01:00
Henrik Tramberend
7a18879a36
LaTeX writer: Allow more flexible table alignment
2016-01-20 13:21:26 +01:00
John MacFarlane
4d74a966c4
Added some entity tests in Markdown reader tests.
...
Change types of divs.
From Docbook "sect#" and "simplesect" to "level#" and
"section."
Add tests.
Add mention of TEI to README.
Small changes to TEI writer.
2016-01-19 14:03:57 -05:00
csforste
25a9ca697a
Add TEI Writer.
2016-01-19 14:03:57 -05:00
John MacFarlane
f2c0974a26
HTML writer: harmless code simplification.
...
Since the 'math' is only put into the template if stMath is
set anyway, there's no need for this conditional.
2016-01-14 10:55:04 -08:00
John MacFarlane
f45a8e1d3b
Org writer - pass through RawInline with format "org".
2016-01-13 23:01:51 -08:00
mb21
1fde92053f
LaTeX writer: figure label
2016-01-10 13:30:32 +01:00
John MacFarlane
1506e62f48
LaTeX writer: restore old treatment of Span.
...
A Span is rendered with surrounding {braces}.
This was a regression in 1.16. Closes #2624 .
2016-01-09 12:16:24 -08:00
John MacFarlane
a796538d84
RST, Markdown writers: Fixed rendering of grid tables with blank rows.
...
Closes #2615 .
2016-01-05 14:04:10 -08:00
John MacFarlane
a68e072bac
MediaWiki writer: fix spacing issues.
...
+ Start cell on new line unless it's a single Para or Plain.
+ For single Para or Plain, insert a space after the `|` to
avoid problems when the text begins with a character like
`-`.
Closes #2604 , closes #2606 .
2016-01-02 12:14:12 -08:00
John MacFarlane
b27783e2ec
Use cmark 0.5.
...
Closes #2605 .
2015-12-29 19:52:06 -08:00
John MacFarlane
297345098d
ConTeXt writer: set default layout based on margin-left, etc.
...
This sets up `\setuplayout` based on the variables `margin-left`,
`margin-right`, `margin-bottom`, and `margin-top`, if no layout
is given.
2015-12-22 13:28:11 -08:00
John MacFarlane
f9202f5d39
LaTeX writer: create defaults for geometry using margin-left etc.
...
If `geometry` has no value, but `margin-left`, `margin-right`,
`margin-top`, and/or `-margin-bottom` are given, a default value
for `geometry` is created from these.
Note that these variables already affect PDF production via HTML5
with wkhtmltopdf.
2015-12-22 13:10:46 -08:00
John MacFarlane
28b2d86b21
LaTeX/Beamer template changes (Thomas Hodgson):
...
* Added `thanks` variable
* Use `parskip.sty` when `indent` isn't set (fall
back to using `setlength` as before if `parskip.sty`
isn't available).
* Use `biblio-style` with biblatex.
* Added `biblatexoptions` variable.
* Added `section-titles` variable (defaults to true)
to enable/suppress section title pages in beamer
slide shows.
* Moved beamer themes after fonts, so that themes can
change fonts. (Previously the fonts set were being
clobbered by lmodern.sty.)
2015-12-19 18:50:45 -08:00
John MacFarlane
9333814254
Added needed import of FromJSON.
...
Fixes build failure.
2015-12-19 17:54:20 -08:00
John MacFarlane
770641f741
Fix language code for Czech (cs not cz)
...
Closes #2597 .
2015-12-19 17:54:02 -08:00
John MacFarlane
4c103f67f9
Merge branch 'master' of https://github.com/AndreasLoow/pandoc into AndreasLoow-master
2015-12-19 00:07:28 -08:00
mb21
1ead1f39ad
ICML writer: intersperse line breaks
...
instead of appending them to every ParagraphStyleRange
closes #2501
2015-12-17 10:26:59 +01:00
mb21
f3a9bdafef
ICML writer: added figure handling, closes #2590
2015-12-16 11:07:23 +01:00
John MacFarlane
9f43acb5d2
ICML writer: removed redundant import.
2015-12-13 22:18:23 -08:00
John MacFarlane
f3133a8e9e
Merge pull request #2570 from mb21/rst-reader-imgattrs
...
Image attributes
2015-12-13 20:29:13 -08:00