John MacFarlane
db90667a79
EPUB writer: Don't include nav node in spine unless --toc was requested.
...
Previously we included it in the spine with `linear="no"`, leading
to odd results in some readers.
Closes #1593 .
2014-09-01 16:31:32 -07:00
John MacFarlane
cb1a8da01c
LaTeX writer: Avoid using reserved characters as \lstinline delimiters.
...
Closes #1595 .
2014-09-01 10:11:09 -07:00
John MacFarlane
43ebb0229f
EPUB writer: Fixed typo.
2014-09-01 08:04:21 -07:00
John MacFarlane
3533218d6d
Merge pull request #1594 from jkr/itemFix
...
Item fix
2014-08-31 19:31:38 -07:00
John MacFarlane
01b7957812
EPUB writer: Extract title even from structured title.
...
Added docTitle'.
2014-08-31 14:47:07 -07:00
Jesse Rosenthal
d3053807a8
LaTeX writer: Put ~
before header in item text.
...
Because of the built-in line skip, LaTeX can't handle a section header
as the first element in a list item. (To be precise, it can't handle it
if the list immediately follows a section header, but the instance is
rare enough that we can afford to be a bit more general). This puts a
non-breaking space before the header to solve this problem. We won't see
this space, since the header skips a line before printing anyway.
The output is ugly in LaTeX and this structure seems like it should
probably be avoided. But it is valid HTML and native pandoc, so we
should have some sort of typesettable representation in LaTeX.
2014-08-31 16:05:09 -04:00
John MacFarlane
54df49335a
EPUB writer: Don't use opf:title-type for epub2.
...
It is not supported and epubcheck complains.
2014-08-31 12:08:17 -07:00
John MacFarlane
374bb3c147
DokuWiki writer: Make tables prettier by aligning columns.
...
Also cleaned up crufty code and added tests.
2014-08-30 21:24:33 -07:00
John MacFarlane
d97aed3903
DokuWiki writer: Handle table cell alignments.
...
Closes #1566 .
2014-08-30 20:54:33 -07:00
John MacFarlane
a8273009ba
Textile reader: Improved table support.
...
We can now handle all different alignment types, for simple
tables only (no captions, no relative widths, cell contents just
plain inlines). Other tables are still handled using raw HTML.
Addresses #1585 as far as it can be addresssed, I believe.
2014-08-30 20:34:42 -07:00
John MacFarlane
f70e3c3297
Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mime
...
Conflicts:
src/Text/Pandoc/Writers/Docx.hs
2014-08-30 11:49:50 -07:00
John MacFarlane
8b09d954f9
Merge pull request #1580 from jkr/stringCellDokuWiki
...
DokuWiki writer: Backslash newlines in table cells
2014-08-30 09:22:38 -07:00
Jesse Rosenthal
ccda2a902c
DokuWiki writer: Use backslash newlines in table cells.
...
Write out strings in table cells with backslash linebreaks in place of
newlines. We also want to remove the first two spaces of an indent in lists.
2014-08-30 07:17:55 -04:00
John MacFarlane
218633548f
Merge pull request #1574 from jlduran/latex-horizontal-rule
...
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29 21:40:55 -07:00
John MacFarlane
017d44af1d
Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into jlduran-ugly-tables
2014-08-29 21:24:36 -07:00
Jose Luis Duran
4c684561ee
LaTeX writer: Add \strut
to fix multiline tables
...
See: http://tex.stackexchange.com/questions/34971
2014-08-29 13:54:08 +00:00
Jose Luis Duran
1fc665c07d
LaTeX writer: Make Horizontal Rules more flexible
...
Currently, pandoc has hard-coded the following in order to make horizontal
rules in LaTeX:
```hs
"\\begin{center}\\rule{3in}{0.4pt}\\end{center}"
```
Which is fine, but does not allow customizations. It also does not take into
consideration the current line width.
I'm proposing this change:
```diff
@@ In Writers/LaTeX.hs:
-"\\begin{center}\\rule{3in}{0.4pt}\\end{center}"
+"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}"
```
2014-08-28 03:12:37 +00:00
Jose Luis Duran
f1d330b7b5
LaTeX writer: Fix tables
...
- [x] Fix a bug introduced in 66378062b6
, which
causes the table caption to repeat across all pages
- [x] Address the issues discussed
[here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J )
regarding the extra vertical space.
- [ ] NOTE: This will cause multiline table cells to appear unpadded. See
http://tex.stackexchange.com/questions/34971
- [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796 )
instead of `\\`.
2014-08-28 02:02:20 +00:00
Matthew Pickering
404a58f456
DokuWiki Writer: Refactor to use Reader monad
2014-08-27 14:29:09 +01:00
Matthew Pickering
495f55b03e
DokuWiki Writer: Hlint cleanup
2014-08-27 13:48:19 +01:00
Matthew Pickering
3412018287
DokuWiki Writer: Qualified all imports
2014-08-27 13:29:09 +01:00
Jesse Rosenthal
b613d85af9
Docx writer: Accomodate GHC 7.4 (no lookupEnv)
2014-08-26 06:43:14 -04:00
Jesse Rosenthal
21253b59e8
Docx writer: Default to user login and time of change if not given.
2014-08-25 14:03:35 -04:00
Jesse Rosenthal
e1bb28a388
Docx writer: Implement track changes.
...
These have default authors and dates of "unknown" and timestamp-zero,
respectively.
2014-08-25 12:37:56 -04:00
John MacFarlane
9f8051d95d
Hlint changes to Docx writer.
2014-08-24 11:37:23 -07:00
John MacFarlane
0ef1f787c7
Docx writer: Bibliography entries get Bibliography style.
...
Closes #1559 .
2014-08-23 20:52:09 -07:00
John MacFarlane
60f3e777f3
EPUB writer: don't use page-progression-direction in EPUB2.
...
Also, if page-progression-direction not specified in metadata,
don't include the attribute even in EPUB3; not including it is
the same as including it with the value "default", as we did before.
Closes #1550 .
2014-08-19 09:21:26 -07:00
John MacFarlane
8e60d35d58
Merge pull request #1536 from considerate/master
...
Add row width to tables in Docx XML
2014-08-17 12:54:38 -07:00
John MacFarlane
c14088ea93
Docx writer: Fixed regression, bungled list numbering.
...
In pandoc 1.13, all lists come out as basic ordered lists.
This fixes that bad regression.
Closes #1544 .
2014-08-17 12:48:41 -07:00
Artyom Kazak
cca9e8feb4
MIME cleanup.
...
* Create a type synonym for MIME type (instead of `String`).
* Add `getMimeTypeDef` function.
* Avoid recreating MIME type `Map`s every time.
* Move “Formula-...” case handling into `getMimeType`.
2014-08-17 21:00:50 +04:00
Viktor Kronvall
753e47194c
Simplify row width calculation.
2014-08-17 03:24:44 +02:00
Christoffer Ackelman
9f3c34841b
Include row width in table rows.
...
Added a property to all table rows where the sum of column widths
is specified in pct (fraction of 5000).
2014-08-17 03:24:44 +02:00
John MacFarlane
cb4ae6112e
Markdown writer: don't escape $, ^, ~ when extensions are deactivated.
...
`tex_math_dollars`, `superscript`, and `subscript` extensions,
respectively.
Closes #1127 .
2014-08-16 17:14:51 -07:00
John MacFarlane
e917bcc124
Make raw_tex
extension non-default for textile reader, writer.
...
Enable `raw_tex` extension in textile writer.
Closes #1532 .
2014-08-14 09:49:31 -07:00
John MacFarlane
e883ef4eb9
Merge pull request #1527 from mpickering/juicypixels
...
Attempts to convert gif, tiff and bmp to png in pdf writer
2014-08-12 16:57:22 -07:00
Matthew Pickering
2b31df32de
LaTeX Writer: Added missing closing braces to hyperdef commands
2014-08-13 00:37:18 +01:00
John MacFarlane
81157c7cc6
HTML writer: use 'uri' or 'email' class for autolinks.
...
This allows them to be styled specially.
Closes #1501 .
2014-08-12 15:49:43 -07:00
John MacFarlane
da507dcb84
ConTeXt writer: improved autolink detection.
...
It previously failed in some cases with escaped special characters.
2014-08-12 15:49:20 -07:00
John MacFarlane
ab75e1d3bd
Beamer: Use \footnote<.->{..} for notes.
...
This ensures that the footnotes will not appear before the
overlays in which their corresponding note markers appear.
Closes #1525 .
2014-08-12 10:56:57 -07:00
John MacFarlane
211fe266e0
LaTeX writer: Don't produce \label{}
for Div or Span.
...
Just `\hyperdef`.
A slight amendment to #1519 .
2014-08-11 12:20:44 -07:00
John MacFarlane
95d9b43b42
Merge pull request #1519 from mpickering/more
...
EPUB Normalisation and anchors for div blocks in tex
2014-08-11 11:28:11 -07:00
John MacFarlane
4a535211d8
Merge pull request #1365 from gbataille/docx-margin
...
Scale images to fit the page for DOCX
2014-08-11 10:44:52 -07:00
Matthew Pickering
1952dd0592
TeX Writer: Write hyperdef and label for identifiers on Div blocks
2014-08-11 16:23:05 +01:00
Matthew Pickering
285d56dea7
EPUB Writer: Added page-progression-direction meta field
2014-08-11 11:21:38 +01:00
Matthew Pickering
1f02ff60ba
EPUB Writer: Added explicit imports
2014-08-11 10:21:52 +01:00
John MacFarlane
4983083079
HTML writer: Don't include empty TOC items for slide shows.
...
Previously creating a slide with a horizontal rule would result
in an empty list item in the TOC. This patch fixes that.
2014-08-09 10:29:39 -07:00
John MacFarlane
a4a6b6f28c
Plain writer: Use ALL CAPS for level 1 headers.
2014-08-08 15:20:29 -07:00
John MacFarlane
f723a0575d
Markdown writer: Respect -raw_html.
...
pandoc -t markdown-raw_html should not emit any raw HTML, even
span and div tags that go with pandoc Span and Div elements.
Cleaned up a bit of the logic with extensions and plain.
2014-08-08 13:34:57 -07:00
Matthew Pickering
07bb41d6da
Org Writer: Write anchor elements
...
The Org Writer now writes empty span elements which have an id as an anchor.
For example `Span ("uid", [], []) []` becomes `<<uid>>`
2014-08-08 00:20:18 +01:00
John MacFarlane
2de2842bdd
Merge pull request #1486 from Aelve/minor
...
Very minor cleanup and readability changes
2014-08-04 22:07:02 -07:00