summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Require aeson-pretty 0.8.5. Closes #4394.John MacFarlane2018-02-22
| | | | `confTrailingNewline` is introduced in this version.
* MANUAL.txt: Document incremental and nonincremental divs.Jesse Rosenthal2018-02-22
| | | | | Blockquoted lists are still described, but fenced divs are presented in preference.
* Presentations: Use divs to set incremental/non-incrementalJesse Rosenthal2018-02-22
| | | | | | | | | | | | | | | | | | | | | | | Currently, html and beamer presentations use a list-inside-blockquote convention for setting incremental and all-at-once presentation of lists (or reversing the command-line default). This allows the user to set this on a per-case basis with divs, named `incremental` and `nonincremental` respectively, as in: ::: incremental - snap - crackle - pop ::: Note that the former list-inside-blockquote convention still works so as not to break any existing presentations. Closes: #4381
* Docx reader: Move pandoc inline styling inside custom-style spanJesse Rosenthal2018-02-22
| | | | | | | | Previously Emph, Strong, etc were outside the custom-style span. This moves them inside in order to make it easier to write filters that act on the formatting in these contents. Tests and MANUAL example are changed to match.
* Docx reader: Avoid repeated spans in custom styles.Jesse Rosenthal2018-02-22
| | | | | | The previous commit had a bug where custom-style spans would be read with every recurrsion. This fixes that, and changes the example given in the manual.
* MANUAL: add documentation on custom styles.Jesse Rosenthal2018-02-22
| | | | | | Discuss workflow of using input document as reference.docx. We also split the "Custom styles" section into two parts: input and output.
* Docx reader tests: test custom style extension.Jesse Rosenthal2018-02-22
|
* Docx reader: read custom stylesJesse Rosenthal2018-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will read all paragraph and character classes as divs and spans, respectively. Dependent styles will still be resolved, but will be wrapped with appropriate style tags. It is controlled by the `+styles` extension (`-f docx+styles`). This can be used in conjunction with the `custom-style` feature in the docx writer for a pandoc-docx editing workflow. Users can convert from an input docx, reading the custom-styles, and then use that same input docx file as a reference-doc for producing an output docx file. Styles will be maintained across the conversion, even if pandoc doesn't understand them. Without the extension: $ pandoc test/docx/custom-style-reference.docx -f docx -t markdown This is some text. This is text with an *emphasized* text style. And this is text with a **strengthened** text style. > Here is a styled paragraph that inherits from Block Text. With the extension: $ pandoc test/docx/custom-style-reference.docx -f docx+styles -t markdown ::: {custom-style="FirstParagraph"} This is some text. ::: ::: {custom-style="BodyText"} This is text with an *[[emphasized]{custom-style="Emphatic"}]{custom-style="Emphatic"}* text style. And this is text with a **[[strengthened]{custom-style="Strengthened"}]{custom-style="Strengthened"}** text style. ::: ::: {custom-style="MyBlockStyle"} Closes: #1843
* Extensions: Add Ext_stylesJesse Rosenthal2018-02-22
| | | | | | This will be used in the docx reader (defaulting to off) to read pargraph and character styles not understood by pandoc (as divs and spans, respectively).
* LaTeX writer: Put hypertarget inside figure environment.John MacFarlane2018-02-21
| | | | | | | | | Previously it surrounded the figure. This works around a problem with the endfloat package and makes pandoc's output compatible with it. Closes #4388.
* LaTeX writer: Fix image height with percentage.John MacFarlane2018-02-21
| | | | | | | This previously caused the image to be resized to a percentage of textwidth, rather than textheight. Closes #4389.
* Org reader: allow changing emphasis syntaxAlbert Krewinkel2018-02-21
| | | | | | | | | | | | | | | | The characters allowed before and after emphasis can be configured via `#+pandoc-emphasis-pre` and `#+pandoc-emphasis-post`, respectively. This allows to change which strings are recognized as emphasized text on a per-document or even per-paragraph basis. The allowed characters must be given as (Haskell) string. #+pandoc-emphasis-pre: "-\t ('\"{" #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}[" If the argument cannot be read as a string, the default value is restored. Closes: #4378
* Muse reader: replace setState with updateState where possibleAlexander Krotov2018-02-21
|
* MANUAL.txt: fix typo.Jesse Rosenthal2018-02-20
|
* MANUAL.txt: A bit of clarification on speaker notes.Jesse Rosenthal2018-02-20
| | | | Make it clear that pressing `s` is just for reveal.js.
* MANUAL.txt: Add instructions for using pptx reference-docsJesse Rosenthal2018-02-20
|
* Muse reader: fix compiler warningJesse Rosenthal2018-02-20
| | | | lambda variable `st` shadowed an existing variable.
* Powerpoint writer: Use ph name and idx for getting layout shapesJesse Rosenthal2018-02-20
| | | | | | | | | | Internal change: when we take shapes from the layout for title, content, etc, we should use the attributes of the "ph" (placeholder) tag -- idx and name. This is what powerpoint uses internally, and therefore seems more dependable across reference-docs than using the shape names, as we had previously done. There should be no output changes as a result of this commit.
* Muse reader: use updateState instead of setState to restore museInLinkAlexander Krotov2018-02-20
|
* Powerpoint writer tests: Test everything with template as wellJesse Rosenthal2018-02-19
| | | | | | | | | | | | | | Modify the PowerPoint tests to run all the tests with template (--reference-doc) as well. Because there are so many interlocking pieces, bugs can pop up in weird places when using templates, since it changes how the writer builds its output file. For example, I recently discovered a bug in which speaker notes worked fine and templating worked fine elsewhere, but templating with speaker notes produced a file that would crash MS PowerPoint. That particular bug was fixed, but this will forces us to check for that with each new change.
* Powerpoint writer: Update.golden tests.Jesse Rosenthal2018-02-19
| | | | Checked with Office 2013. No corruption and output as expected.
* Powerpoint writer: Add notesMaster to presentation.xml if necessaryJesse Rosenthal2018-02-19
| | | | | | | | | | In previous version, we only modified the notesMaster entry in the presentation.xml file, and removed it if necessary. But if using a template, it might not be available. So we always delete it, and then add it back in if necessary. We also have to make sure that we add it appropriately the .rels file associated with presentation.xml.
* Move manyUntil to Text.Pandoc.Parsing and use it in Txt2Tags readerAlexander Krotov2018-02-19
|
* Powerpoint writer: Another attempt at avoiding compiler warnings.Jesse Rosenthal2018-02-18
|
* Powerpoint writer: fix compiler complaints.Jesse Rosenthal2018-02-18
|
* MANUAL: add reference to pptx support for speaker notes.Jesse Rosenthal2018-02-18
|
* Powerpoint writer: Add tests for speaker notes.Jesse Rosenthal2018-02-18
|
* Powerpoint writer: separate SpeakerNotes paragraphs with empy parJesse Rosenthal2018-02-18
| | | | | This will add a space between notes paragraphs, which seems more like what most users would do by hand (press "enter" twice).
* Powerpoint writer: Ignore links and (end)notes in speaker notes.Jesse Rosenthal2018-02-18
| | | | | | | | | | | | MS PowerPoint does not offer a way to insert links into speaker notes text, so we match that behavior, and make our lives easier. As for (end)notes, there is no clear solution to the question of wat that would *mean*. The default behavior would be to add it to the endnote slide, but that would put speaker note content into the public presentation. The best solution would be to put the content at the bottom of the notes page, but that would take some doing, and can be added to the speaker notes feature later.
* Powerpoint writer: update golden test filesJesse Rosenthal2018-02-18
| | | | | | | | Since the template changed, some small elements of these test files changed as well. All of these were checked with Powerpoint 2013 on Windows 10 (VirtualBox). All had expected outcomes and no corruption.
* Powerpoint writer: Output speaker notes.Jesse Rosenthal2018-02-18
| | | | | | | | There are a number of interlocking parts here. The main thing to note is that, to match the MSPowerPoint-generated pptx files, we only include the notesMaster and notesSlide files if there are notes. This means we have to be careful with the rIds, and build a number of files conditionally.
* Powerpoint writer: modify speaker notes in presentation.xmlJesse Rosenthal2018-02-18
| | | | | We remove the `notesMasterIdLst` entry in `presentation.xml` if there no speaker notes in the presentation.
* Powerpoint writer: Read speaker note templates conditionallyJesse Rosenthal2018-02-18
| | | | | If there are speaker notes in the presentation, we read in the notesMasters templates from the reference pptx file.
* Powerpoint writer: Move notes slides into data tree.Jesse Rosenthal2018-02-18
|
* Powerpoint writer: Read notes into powerpoint Presentatation type.Jesse Rosenthal2018-02-18
| | | | We record notes in a map in state while processing.
* Powerpoint writer: Change references to Notes to SpeakerNotesJesse Rosenthal2018-02-18
| | | | This is to avoid confusion with {foot,end}notes.
* EMF Image size support (#4375)Andrew Pritchard2018-02-18
|
* LaTeX reader: Fixed comments inside citations. Closes #4374.John MacFarlane2018-02-17
|
* Markdown writer: properly escape @ to avoid capture as citation.John MacFarlane2018-02-16
| | | | Closes #4366.
* Make image size detection for PDFs more robust.John MacFarlane2018-02-16
| | | | See #4322.
* Travis: ensure nightly builds can fail.John MacFarlane2018-02-16
|
* TEI writer: more attribute fixes.John MacFarlane2018-02-16
| | | | | | - Ensure that id prefix is always used. - Don't emit `role` attribute; that was a leftover from the Docbook writer.
* TEI writer: Use 'xml:id', not 'id' attribute.John MacFarlane2018-02-16
| | | | Closes #4371.
* Muse reader: prioritize lists with roman numerals over alphabetical listsAlexander Krotov2018-02-16
| | | | | This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
* Docx reader: Pick table width from the longest row or headerdanse2018-02-15
| | | | | | | This change is intended to preserve as much of the table content as possible Closes #4360
* Muse reader: fix directive parsingAlexander Krotov2018-02-15
| | | | This fixes bugs introduced in commit 4bfab8f04c105f111d8d4e1c3ed7f7b5c75dbd19.
* Muse writer: use unicode quotes for quoted textAlexander Krotov2018-02-15
|
* AsciiDoc writer: do not output implicit heading IDsAlexander Krotov2018-02-13
| | | | | | Convert to asciidoc-auto_identifiers for old behaviour. Fixes #4363
* Typo fix changelog.John MacFarlane2018-02-13
|
* Muse reader: remove listItemContents functionAlexander Krotov2018-02-13
|