aboutsummaryrefslogtreecommitdiff
path: root/test/writer.ms
AgeCommit message (Collapse)AuthorFilesLines
2019-11-16Ms template: Use Palatino for default font.John MacFarlane1-1/+1
This is less ugly than Times.
2019-11-16Updaet ms writer test.John MacFarlane1-1/+1
2019-11-16Ms writer: boldface definition terms in DefinitionLists.John MacFarlane1-17/+17
Like LaTeX, ConTeXt.
2019-11-16ms template: default to page numbers on bottom, no paragaraph indent.John MacFarlane1-1/+4
To be more like the default LaTeX output.
2018-12-13Man/Ms writers: don't escape `-` as `\-`.John MacFarlane1-9/+9
For discussion see https://groups.google.com/forum/#!msg/pandoc-discuss/B-oiCXcQOVo/WO-BXVpICAAJ The `\-` gets rendered in HTML and PDF as a unicode minus sign.
2018-10-24GroffChar: added @ to list of standard escapes.John MacFarlane1-1/+1
Because we use it as a delimiter for tables (in man) and for math (in ms).
2018-10-23Groff writer character escaping changes.John MacFarlane1-23/+23
T.P.GroffChar: replaced `essentialEscapes` with `manEscapes`, which includes all the escapes mentioned in the groff_man manual. T.P.Writers.Groff: removed escapeCode; changed parameter on escapeString from Bool to new type `EscapeMode`. Rewrote `escapeString`.
2018-10-22Groff writers escaping changes.John MacFarlane1-16/+16
- Improve escaping of accented characters with `--ascii`. Combining accents are now handled properly. - Don't escape spaces and tabs in code blocks. This doesn't seem to be necessary.
2018-10-18GroffChar: fixed interpretation of `\-`.John MacFarlane1-9/+9
It is the ascii - sign, not the unicode hyphen.
2018-10-18Groff escaping changes.John MacFarlane1-23/+23
- `--ascii` is now turned on automatically for man output, for portability. All man output will be escaped to ASCII. - In T.P.Writers.Groff, `escapeChar`, `escapeString`, and `escapeCode` now take a boolean parameter that selects ascii-only output. This is used by the Ms writer for `--ascii`, instead of doing an extra pass after writing the document. - In ms output without `--ascii`, unicode is used whenever possible (e.g. for double quotes). - A few escapes are changed: e.g. `\[rs]` instead of `\\` for backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-17man/ms writers: use `\[at]` for escaped `@`.John MacFarlane1-1/+1
2018-10-17Move common groff functions to Text.Pandoc.Writers.GroffJohn MacFarlane1-17/+17
(unexported module). These are used in both the man and ms writers. Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier API change from adding it, which was after last release]. This fixes strong/code combination on man (should be `\f[CB]` not `\f[BC]`), mentioned in #4973. Updated tests. Closes #4975.
2018-04-25Ms template: Fix date.John MacFarlane1-1/+4
Previously .ND was used, but this only works if you have a title page, which we don't. Thanks to @teoric.
2018-04-15Ms writer: font improvements.John MacFarlane1-25/+25
* Use `\f[R]` rather than `\f[]` to reset. The latter returns to the previous font, which gives unintended results in some cases. * Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`, since the header font is automatically bold. * Use `\f[CB]` rather than `\f[BC]` for monospace bold. Closes #4552.
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane1-17/+17
Closes #4550.
2018-03-18Ms writer: don't escape hyphens.John MacFarlane1-9/+9
Previously we escaped hyphens as `\-`, but that's a minus sign. Closes #4467. Updated changelog.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-10/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-04-06Ms writer: wider indents for lists.John MacFarlane1-96/+96
Previously some indents weren't wide enough, leading the list item to start on a line after the marker.
2017-04-05Ms writer: respect text wrapping options.John MacFarlane1-43/+26
2017-04-04Ms writer improvements:John MacFarlane1-14/+8
- added some variables to the default template. - cleaner output for images (stringify alt text).
2017-04-04Ms writer: ensure that @ is escaped in URIs.John MacFarlane1-2/+2
Otherwise we may get unescaped @s that give eqn fits, with @ as the delimiter character.
2017-04-01Ms writer: added syntax highlighting.John MacFarlane1-2/+2
Closes #3547. Macro definitions are inserted in the template when there is highlighted code. Limitations: background colors and underline currently not supported.
2017-03-26Ms writer: Hyperlink table of contents and other improvements.John MacFarlane1-3/+14
2017-03-26Ms writer: Add PDF outline bookmarks.John MacFarlane1-0/+31
2017-03-26Fixed a test not updated on last commit.John MacFarlane1-1/+1
2017-03-26Ms writer: Use @ instead of | for inline math delimiter.John MacFarlane1-11/+11
The `|` delimiter had a bad interaction with tbl. See discussion in #1839.
2017-03-26Ms writer: Support external links.John MacFarlane1-63/+154
Also add config options for link color.
2017-03-26Ms writer: better placement of header anchors.John MacFarlane1-31/+31
2017-03-25Ms writer: Implement header identifiers and internal links.John MacFarlane1-2/+32
2017-03-25Ms writer: use light gray for strikeout.John MacFarlane1-1/+3
Pending groff definitions for striking out an arbitrary section of text (not just a few words).
2017-03-25Ms writer: improved pdf metadata.John MacFarlane1-1/+2
2017-03-25Updated test suite for ms template change.John MacFarlane1-0/+4
2017-03-25Ms. writer: links: use footnote only for absolute URIs.John MacFarlane1-97/+24
2017-03-25Updated tests.John MacFarlane1-2/+1
2017-03-24Ms writer: Use indented paragraphs after first in section.John MacFarlane1-73/+73
Note that the current indentation setting is 0; see the settings in the template.
2017-03-24default.ms: Add settings for document variables like width.John MacFarlane1-2/+30
2017-03-24Ms writer: support --toc, date, abstract.John MacFarlane1-0/+1
2017-03-24Ms writer: Use custom .HRULE macro for horizontal rule.John MacFarlane1-36/+27
2017-03-23Ms writer: improved definition lists.John MacFarlane1-53/+36
Use standard .IP macro. Also properly escape ".
2017-03-23Ms writer: fixed hard line breaks.John MacFarlane1-3/+1
2017-03-23Updated ms tests.John MacFarlane1-6/+16
2017-03-23Ms. writer: don't render links in footnotes as footnotes.John MacFarlane1-6/+2
2017-03-23Ms writer: Improved footnotes.John MacFarlane1-5/+0
2017-03-23Ms writer: fixed strong/emph combination.John MacFarlane1-4/+4
Perhaps something similar is needed in the man writer.
2017-03-23Initial addition of groff ms writer.John MacFarlane1-0/+940
* 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.