Commit graph

8691 commits

Author SHA1 Message Date
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
John MacFarlane
2251d9cb73 Ms writer: Use custom .HRULE macro for horizontal rule. 2017-03-24 09:23:19 +01:00
John MacFarlane
c964898899 Ms writer: warning for non-rendered raw content. 2017-03-24 08:52:35 +01:00
John MacFarlane
f0abbe7533 Allow creation of pdf via groff ms and pdfroff.
pandoc -t ms -o output.pdf input.txt
2017-03-23 21:24:01 +01:00
John MacFarlane
ffd699385a Ms writer: improved definition lists.
Use standard .IP macro.
Also properly escape ".
2017-03-23 17:29:26 +01:00
John MacFarlane
6c07e43112 Ms writer: use .IP for more standard definition lists. 2017-03-23 17:20:06 +01:00
John MacFarlane
a939cfe769 Pipe tables: impose minimum cell size.
This might help with #3526.
At any rate, it fixes another bug (see test/command/3526.md).
2017-03-23 16:54:47 +01:00
John MacFarlane
e92941a9ca Grid tables: remove unnecessary extra space in cells. 2017-03-23 14:59:51 +01:00
John MacFarlane
e180a2efa6 Ms writer: fixed hard line breaks. 2017-03-23 14:48:09 +01:00
John MacFarlane
dd1ac8f48f Writers.Shared.gridTable: defensive coding around 'maximum'. 2017-03-23 14:33:49 +01:00
John MacFarlane
86142ab7c0 Updated ms tests. 2017-03-23 14:33:29 +01:00
John MacFarlane
1ae38fde4d MS writer: updated TODO comment. 2017-03-23 13:00:14 +01:00
John MacFarlane
d20d3a5dbb Ms writer: Super/subscript support.
Also added some macro definitions to default template
to support subscripts + better superscripts.
2017-03-23 12:59:19 +01:00
John MacFarlane
1af6faf2d4 Ms writer: support for fake smallcaps. 2017-03-23 12:45:23 +01:00
John MacFarlane
8cf5c55e5e Ms. writer: don't render links in footnotes as footnotes. 2017-03-23 12:05:41 +01:00
John MacFarlane
1809f64a4c Ms writer: Improved footnotes. 2017-03-23 11:56:13 +01:00
John MacFarlane
da0aae9c8f Ms writer: fixed strong/emph combination.
Perhaps something similar is needed in the man writer.
2017-03-23 11:48:01 +01:00
John MacFarlane
6c204ea2bd Initial addition of groff ms writer.
* New module: Text.Pandoc.Writers.Ms.
* New template: default.ms.
* The writer uses texmath's new eqn writer to convert math
  to eqn format, so a ms file produced with this writer
  should be processed with `groff -ms -e` if it contains
  math.
2017-03-23 10:14:16 +01:00
John MacFarlane
f4ac0edf2a Markdown reader: allow latex macro definitions indented 1-3 spaces.
Previously they only worked if nonindented.
2017-03-22 21:19:50 +01:00
John MacFarlane
9437ab449c Revert "Experimental change to charWidth in Pretty."
This reverts commit c59e317224.
2017-03-22 16:08:09 +01:00
John MacFarlane
c59e317224 Experimental change to charWidth in Pretty.
Hunch that this might help with #3526.
2017-03-22 15:37:08 +01:00
John MacFarlane
0e68c55955 stack.yaml: Use texmath-0.9.4. 2017-03-22 15:36:41 +01:00