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
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
John MacFarlane
536b6bf538
Implemented SoftBreak and new --wrap
option.
...
Added threefold wrapping option.
* Command line option: deprecated `--no-wrap`, added
`--wrap=[auto|none|preserve]`
* Added WrapOption, exported from Text.Pandoc.Options
* Changed type of writerWrapText in WriterOptions from
Bool to WrapOption.
* Modified Text.Pandoc.Shared functions for SoftBreak.
* Supported SoftBreak in writers.
* Updated tests.
* Updated README.
Closes #1701 .
2015-12-11 23:55:08 -08:00
John MacFarlane
2633dc2f5e
Beamer writer: mark frame as fragile when it contains verbatim.
...
Closes #1613 .
2015-11-23 23:07:56 -08:00
John MacFarlane
244cd5644b
Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into mb21-new-image-attributes
...
* Bumped version to 1.16.
* Added Attr field to Link and Image.
* Added `common_link_attributes` extension.
* Updated readers for link attributes.
* Updated writers for link attributes.
* Updated tests
* Updated stack.yaml to build against unreleased versions of
pandoc-types and texmath.
* Fixed various compiler warnings.
Closes #261 .
TODO:
* Relative (percentage) image widths in docx writer.
* ODT/OpenDocument writer (untested, same issue about percentage widths).
* Update pandoc-citeproc.
2015-11-19 23:14:23 -08:00
John MacFarlane
83b1aa042d
LaTeX writer: set colorlinks
...
...
if `linkcolor`, `urlcolor`, `citecolor`, or `toccolor` is set.
Closes #2508 .
2015-11-12 12:37:20 -08:00
John MacFarlane
23b693c029
Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."
...
This reverts commit c423dbb5a3
.
2015-11-09 10:08:22 -08:00
John MacFarlane
c423dbb5a3
Use -XNoImplicitPrelude and 'import Prelude' explicitly.
...
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.
Closes #2503 .
2015-11-08 16:56:59 -08:00
John MacFarlane
411a25306c
LaTeX writer: properly handle footnotes in captions.
...
Closes #1506 .
2015-11-01 15:30:05 -08:00
John MacFarlane
c4ea64203a
LaTeX writer: avoid footnotes in list of figures.
...
Footnotes aren't allowed in the list of figures. This
patch causes footnotes to be stripped from captions when
entered into the list of figures.
Footnotes still don't actually WORK in captions in latex/pdf,
but at least an error is no longer raised.
See #1506 .
2015-11-01 13:42:36 -08:00
John MacFarlane
1d53d452c3
LaTeX writer: add \protect
to \hyperlink
.
...
Thanks to Hadrien Mary for the problem and solution.
Closes #2490 .
2015-10-28 09:37:05 -07:00
John MacFarlane
d5efa9b35c
LaTeX writer: Use \hypertarget
and \hyperlink
for links.
...
This works correctly to link to Div or Span elements.
We now don't bother defining `\label` for Div or Span
elements.
Closes jgm/pandoc-citeproc#174 .
2015-10-27 14:08:35 -07:00
nickbart1980
143093eabd
Added de-CH-1901, fixed el-polyton
...
el-polyton, not el-poly, see http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
2015-10-26 10:34:32 +00:00
mb21
f3f6483510
LaTeX writer: \textarabic fix
2015-10-25 18:31:35 +01:00
mb21
9328f4cd3d
LaTeX and ConTeXt writers: support lang attribute on divs and spans
...
For LaTeX, also collect lang and dir attributes on spans and divs to set the lang,
otherlangs and dir variables if they aren’t set already. See #895 .
2015-10-18 17:01:37 +02:00
Andreas Lööw
f0c47907ca
Consider header files when determining whether to use csquotes.
2015-10-17 23:04:15 +02:00
John MacFarlane
504bf3f8e7
Support all frame attributes in Beamer.
2015-10-15 15:11:07 -07:00
John MacFarlane
198862ee40
LaTeX writer: add \protect
to \hyperdef
in inline context.
...
This way we don't get an error when this is used as a moveable
argument.
Closes #2136 .
2015-10-13 21:48:14 -07:00
John MacFarlane
1e8a25ad69
Percent-encode more special characters in URLs.
...
HTML, LaTeX writers adjusted.
The special characters are '<','>','|','"','{','}','[',']','^', '`'.
Closes #1640 , #2377 .
2015-10-11 17:12:50 -07:00
mb21
80b851a4cf
Change variable to polyglossia-lang.name and .options
...
closes #2437
2015-10-07 22:53:09 +02: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
mb21
7b0c1e0d37
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
...
closes #2191
2015-09-26 22:22:24 +02:00
John MacFarlane
29668552c8
Removed unneeded import.
2015-09-26 10:27:55 -07:00
John MacFarlane
da1b599c96
Correctly recognize book documentclass in metadata.
...
Closes #2395 .
2015-09-25 23:28:38 -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
mb21
a010b83a75
Updated readers, writers and README for link attribute
2015-08-07 12:38:37 +02:00
John MacFarlane
92d48fa65b
Updated readers and writers for new image attribute parameter.
...
(mb21)
2015-08-07 12:37:12 +02:00
John MacFarlane
6166cd7559
Removed unneeded import.
2015-07-16 17:06:57 -07:00
John MacFarlane
075ad9a406
LaTeX writer: Fixed detection of 'chapters' from template.
...
If a documentclass isn't specified in metadata, but the
template has a hardwired bookish documentclass, act as if
`--chapters` was used. This was the default in earlier
versions, but it has been broken for a little while.
2015-07-16 15:52:38 -07:00
John MacFarlane
4a9aaf6fd6
LaTeX/beamer: added setotherlanguages
in polyglossia.
...
This uses an `otherlang` variable that takes a list of languages.
As requseted in #2174 .
2015-05-27 12:15:50 -07:00
John MacFarlane
c841b15d25
LaTeX writer: Make mainlang
work when lang
is in metadata.
...
Closes #2174 .
2015-05-27 12:01:49 -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
John MacFarlane
8a77eb4c9c
LaTeX writer: Add a \label
in \hyperdef
for Div, Span.
...
Otherwise links don't work.
2015-05-02 17:58:16 -07:00
John MacFarlane
1868cb5e42
Updated copyright notices to -2015. Closes #2111 .
2015-04-26 10:18:29 -07:00
John MacFarlane
764f677530
Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into jlduran-latex-tightlist
...
Conflicts:
data/templates
2015-04-17 19:23:13 -07:00
John MacFarlane
8e404aaca0
LaTeX writer: recognize book documentclass if set in metadata.
...
This sets `--chapters` implicitly if the documentclass in metadata
is a book documentclass. Previously this was done only if a book
documentclass was set in a variable.
Closes #1971 .
2015-02-25 08:57:30 -08:00
Matthew Pickering
274efc4a71
LaTeX Writer: Don't use listings in headers
...
Fixes #1963
2015-02-20 09:35:36 +00:00
Tim Lin
0c18f3a854
Append newline to the LineBreak of various writers
...
This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected:
* Dokuwiki
* HTML
* EPUB (via HTML)
* LaTeX
* MediaWiki
* OpenDocument
* Texinfo
This commit resolves #1924
2015-02-04 22:42:22 -08:00
John MacFarlane
7050c26abc
LaTeX writer: Don't escape $ in URL. Closes #1913 .
2015-02-01 11:19:55 -08:00
Mark Wright
8b9bded796
ghc 7.10.1 RC1 requires specifying the type of String literals https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof ...
2015-01-05 14:46:15 +11:00
John MacFarlane
08abbc4604
LaTeX writer: Handle consecutive linebreaks.
...
Closes #1733 .
2014-12-15 22:04:18 -08:00
John MacFarlane
61d2c2e8cb
LaTeX writer: better handling of display math in simple tables.
...
We convert display math to inline math in simple tables,
since LaTeX can't deal with display math in simple tables.
Closes #1754 .
2014-12-15 21:14:07 -08:00
John MacFarlane
47c360e079
Improved texorpdfstring patch #1148 .
...
* Make LaTeX reader recognize texorpdfstring.
* Don't use texorpdfstring unless it's actually needed.
* Fix tests.
2014-12-15 10:06:03 -08:00
John MacFarlane
544f3e5b45
Merge branch 'use-texorpdfstring' of https://github.com/wilx/pandoc into wilx-use-texorpdfstring
...
Conflicts:
src/Text/Pandoc/Writers/LaTeX.hs
tests/Tests/Writers/LaTeX.hs
2014-12-15 10:01:50 -08:00
Bjorn Buckwalter
7960013cd4
Escape spaces. Fixes jgm/pandoc#1694 .
2014-10-15 21:06:41 +02:00