Albert Krewinkel
5cb18e5dc2
Custom writer: remove old preprocesesor conditionals
...
The minimum required hslua version is 0.4.0, the conditionals inserted
to support hslua-0.3.* can hence be removed.
2017-03-28 19:49:49 +02:00
John MacFarlane
64fe39c255
Added default.jats template.
...
This is copied from Martin Fenner's pandoc-jats project:
https://github.com/mfenner/pandoc-jats
2017-03-28 09:38:00 +02:00
John MacFarlane
b2f3d8e759
Add auxiliary files for command test for #3530 to pandoc.cabal.
...
Otherwise builds fail.
2017-03-27 22:03:38 +02:00
schrieveslaach
49d72444d7
LaTeX reader: add support for LaTeX subfiles package.
...
Closes #3530 .
2017-03-27 21:20:27 +02:00
John MacFarlane
e3472f0df5
MANUAL: document that html4 is technically XHTML 1.0 transitional.
2017-03-27 21:14:18 +02:00
John MacFarlane
306dadc901
default.ms template: move header-includes and .1C up.
2017-03-26 23:47:38 +02:00
John MacFarlane
fddd6ffdd0
Add blank lines to #3531 command test.
2017-03-26 20:48:54 +02:00
John MacFarlane
1fa15c225b
Revert "Use file-embed instead of hsb2hs to embed data files."
...
This reverts commit 10d91c1479
.
2017-03-26 20:48:17 +02:00
John MacFarlane
d0447151cf
Revert "Setup.hs - removed unneeded imports."
...
This reverts commit 5354b44170
.
2017-03-26 20:41:49 +02:00
John MacFarlane
b7782cf8d3
Revert "Text.Pandoc.Data: ensure it compiles even without embed_data_files."
...
This reverts commit 453970c6b3
.
2017-03-26 20:41:35 +02:00
John MacFarlane
358dfba8f4
MediaWiki writer: don't softbreak lines inside list items.
...
Closes #3531 .
2017-03-26 20:41:09 +02:00
John MacFarlane
51ab1bf270
Ms writer: update TODO comments.
2017-03-26 20:04:46 +02:00
John MacFarlane
0eb62f03fe
Ms writer: Hyperlink table of contents and other improvements.
2017-03-26 20:03:37 +02:00
John MacFarlane
0ae448e638
PDF: when running pdfroff, don't do second pass to relocate toc.
2017-03-26 20:00:40 +02:00
John MacFarlane
453970c6b3
Text.Pandoc.Data: ensure it compiles even without embed_data_files.
...
In this case we don't depend on file-embed or use TH.
2017-03-26 19:19:54 +02:00
John MacFarlane
bd99d9f6af
Ms writer: Add PDF outline bookmarks.
2017-03-26 18:06:15 +02:00
John MacFarlane
5354b44170
Setup.hs - removed unneeded imports.
2017-03-26 17:27:14 +02:00
John MacFarlane
10d91c1479
Use file-embed instead of hsb2hs to embed data files.
...
I think template haskell is robust enough now across platforms
that this will work.
Motivation: file-embed gives us better dependency tracking: if a data
file changes, ghc/stack/cabal know to recompile the Data module.
This also removes hsb2hs as a build dependency.
2017-03-26 17:22:00 +02:00
John MacFarlane
604c824d38
Update date on MANUAL
2017-03-26 17:19:56 +02:00
John MacFarlane
0cb0aa7308
Fixed a test not updated on last commit.
2017-03-26 17:15:53 +02:00
John MacFarlane
e30d2c700a
Ms writer: Use @ instead of | for inline math delimiter.
...
The `|` delimiter had a bad interaction with tbl.
See discussion in #1839 .
2017-03-26 16:59:38 +02:00
John MacFarlane
1b967d9036
Ms writre: Added some escapes.
2017-03-26 16:59:29 +02:00
John MacFarlane
b085b9f4a7
Removed unused imports.
2017-03-26 12:05:27 +02:00
John MacFarlane
267e1a13ea
Ms writer: Support external links.
...
Also add config options for link color.
2017-03-26 11:05:23 +02:00
John MacFarlane
d9e8e84be0
Ms writer: better placement of header anchors.
2017-03-26 10:44:34 +02:00
John MacFarlane
e8d8d8721a
Ms writer: more spacing fixes for internal links.
2017-03-26 10:39:20 +02:00
John MacFarlane
a5ec298989
Ms writer: improved internal links.
2017-03-26 10:09:41 +02:00
John MacFarlane
c44ad0710a
Ms writer: added TODO comment.
2017-03-25 22:23:15 +01:00
John MacFarlane
1d659bec01
Ms writer: Implement header identifiers and internal links.
2017-03-25 22:16:44 +01:00
John MacFarlane
ce4bb68967
Ms writer: revise TODO comments.
2017-03-25 20:57:45 +01:00
John MacFarlane
ed6249bd0b
Ms writer: use light gray for strikeout.
...
Pending groff definitions for striking out an arbitrary
section of text (not just a few words).
2017-03-25 20:53:32 +01:00
John MacFarlane
c941a00cac
Ms writer: improved pdf metadata.
2017-03-25 19:30:24 +01:00
John MacFarlane
7d3d5387ac
Updated test suite for ms template change.
2017-03-25 11:45:05 +01:00
John MacFarlane
7c8eb2ba6e
ms template: beginnings of support for PDF metadata.
...
This will have to be refined along the lines of what is
now done in the latex writer/template.
For help, see
http://pipeline.lbl.gov/code/3rd_party/licenses.win/groff/1.19.2/pdf/pdfmark.pdf
2017-03-25 11:43:44 +01:00
John MacFarlane
2e20129903
Ms. writer: links: use footnote only for absolute URIs.
2017-03-25 10:35:05 +01:00
John MacFarlane
980cc50aff
Ms writer: Got figures with ps and eps images working.
2017-03-25 10:12:10 +01:00
John MacFarlane
14ebd289ea
Updated tests.
2017-03-25 09:27:04 +01:00
John MacFarlane
a932c71a28
Ms template: don't include www macros.
2017-03-25 09:26:51 +01:00
John MacFarlane
c13cfe8f5d
Ms writer: Use indented paragraphs after first in section.
...
Note that the current indentation setting is 0; see the
settings in the template.
2017-03-24 23:32:28 +01:00
John MacFarlane
af57de0b27
default.ms: Add settings for document variables like width.
2017-03-24 22:15:46 +01:00
Albert Krewinkel
1e13e98ecf
Ensure compatibility with hslua 0.5.*
...
The 0.5.0 release of hslua fixes problems with lua C modules on linux.
The signature of the `loadstring` function changed, so a compatibility
wrapper is introduced to allow both 0.4.* and 0.5.* versions to be used.
2017-03-24 21:31:35 +01:00
John MacFarlane
14e7d3dbff
Use www.tmac in default.ms.
...
This will allow us to use link macros, etc.
2017-03-24 17:35:38 +01:00
John MacFarlane
a7ae4b1ee2
Ms writer: support --toc, date, abstract.
2017-03-24 17:25:09 +01:00
John MacFarlane
6dd7be7250
Revert "LaTeX reader: be more picky about beamer angle arguments."
...
This reverts commit b98a05d604
.
2017-03-24 16:31:34 +01:00
John MacFarlane
b98a05d604
LaTeX reader: be more picky about beamer angle arguments.
...
We now only allow them if they contain only numbers,
spaces, `-`, and `,`.
2017-03-24 16:25:31 +01:00
John MacFarlane
438e8686cf
Markdown writer: don't emit a simple table if simple_tables
disabled.
...
Closes #3529 .
2017-03-24 16:11:56 +01:00
John MacFarlane
9945f9129f
Ms writer: changed some names and comments, man -> ms.
2017-03-24 10:13:33 +01:00
John MacFarlane
4248231a7e
Ms writer: fixed rawblock/inline to accept "ms" format.
2017-03-24 09:56:40 +01:00
John MacFarlane
718254340f
Recognize .roff extension as ms format.
2017-03-24 09:40:13 +01:00
John MacFarlane
7de9a6ef5f
PDF via groff ms: use -t and -KUTF-8 options to pdfroff.
2017-03-24 09:35:30 +01:00