summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* LaTeX reader: Advance source position at end of stream.John MacFarlane2018-01-14
|
* Shorten unbalanced brackets test.John MacFarlane2018-01-14
| | | | It was taking a lot of time.
* Powerpoint writer: Refactor into separate modules.Jesse Rosenthal2018-01-14
| | | | | | | | | | | | There are two steps in the conversion: a conversion from pandoc to a Presentation datatype modeling pptx, and a conversion from Presentation to a pptx archive. The two steps were sharing the same state and environment, and the code was getting a bit spaghetti-ish. This separates the conversion into separate modules (T.P.W.Powerpoint.Presentation, which defineds the Presentation datatype and goes Pandoc->Presentation) and (T.P.W.Pandoc.Output, which goes Presentation->Archive). Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
* Powerpoint writer: Avoid overlapping blocks in column output.Jesse Rosenthal2018-01-14
| | | | | | Just as a slide can't have an image and text on the same slide because of overlapping, we can't have both in a single column. We run splitBlocks on the text in the column and discard the rest.
* Powerpoint writer: Position images correctly in two-column layout.Jesse Rosenthal2018-01-14
| | | | | You can have two images side-by-side, or text alongside an image. The image will be fit correctly within the column.
* Powerpoint writer: Make content shape retrieval environment-awareJesse Rosenthal2018-01-14
| | | | | | | | We put `getContentShape` and `getContentShapeSize` inside the P monad, so that we can (in the future) make use of knowledge of what slide environment we're in to get the correct shape. This will allow us, for example, to get individual columns for a two-column layout, and place images in them appropriately.
* LaTeX reader: pass through macro defs in rawLaTeXBlock...John MacFarlane2018-01-13
| | | | | | | | | | even if the `latex_macros` extension is set. This reverts to earlier behavior and is probably safer on the whole, since some macros only modify things in included packages, which pandoc's macro expansion can't modify. Closes #4246.
* LaTeX reader: fixed pos calculation in tokenizing escaped space.John MacFarlane2018-01-13
|
* Powerpoint writer: Improve image handling.Jesse Rosenthal2018-01-13
| | | | | | | | | | | We now determine image and caption placement by getting the dimensions of the content box in a given layout. This allows for images to be correctly sized and positioned in a different template. Note that iamges without captions and headers are no longer full-screened. We can't do this dependably in different layouts, because we don't know where the header is (it could be to the side of the content, for example).
* data/pandoc.lua: add attr, listAttributes accessorsAlbert Krewinkel2018-01-13
| | | | | | | Elements with attributes got an additional `attr` accessor. Attributes were accessible only via the `identifier`, `classes`, and `attributes`, which was in conflict with the documentation, which indirectly states that such elements have the an `attr` property.
* data/pandoc.lua: accept single block as singleton listAlbert Krewinkel2018-01-13
| | | | | | Every constructor which accepts a list of blocks now also accepts a single block element for convenience. Furthermore, strings are accepted as shorthand for `{pandoc.Str "text"}` in constructors.
* MANUAL: recommend use of `raw_attribute` extension in header includes.John MacFarlane2018-01-13
| | | | See #4253.
* LaTeX reader: allow macro definitions inside macros.John MacFarlane2018-01-13
| | | | | | | | | | | | Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
* LaTeX reader: allow macro definitions inside macros.John MacFarlane2018-01-13
| | | | | | | | | | | | Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
* Powerpoint writer: read presentation size from reference file.Jesse Rosenthal2018-01-13
| | | | | | | | | Our presentation size is now dependent on the reference/template file we use. This will make it easier to set different output sizes by supplying different reference files. The alternative (allowing a user to explicitly set output size regardless of the template) will lead to too many thorny issues, as explicitly set sizes at the various level of powerpoint layout would have to be reset.
* data/pandoc.lua: accept singleton inline as a listAlbert Krewinkel2018-01-13
| | | | | Every constructor which accepts a list of inlines now also accepts a single inline element for convenience.
* data/pandoc.lua: drop _VERSIONAlbert Krewinkel2018-01-13
| | | | | Having a _VERSION became superfluous, as this module is closely tied to the pandoc version, which is available via PANDOC_VERSION.
* Powerpoint writer: code cleanupJesse Rosenthal2018-01-13
| | | | Last commit accidentally left commented-out code in.
* Powerpoint writer: Handle (sub)headers above slidelevel correctly.Jesse Rosenthal2018-01-13
| | | | | | | | | | | | Above the slidelevel, subheaders will be printed in bold and given a bit of extra space before them. Note that at the moment, no distinction is made between levels of headers above the slide header, though that can be changed. (It has to be changed in pandoc, since PowerPoint has no concept of paragraph or character classes.) This allows us to clean up the code as well: the code in `blockToParagraphs` since it will only touch content blocks, and therefore will not deal with headers at or below the slidelevel.
* Powerpoint writer: Check for required filesJesse Rosenthal2018-01-13
| | | | | | | | | Since we now import from reference/dist file by glob, we need to make sure that we're getting the files we need to make a non-corrupt Powerpoint. This performs that check. (In the process, this change also cleaned up a lot of commented-out code left from the switch to the new reference-doc method.)
* Powerpoint writer: Improve templating using `--reference-doc`Jesse Rosenthal2018-01-12
| | | | | | Templating should work much more reliably now. There is still some problem with image placement when we change sizes. A further commit will address this.
* Lua filters: improve error messagesAlbert Krewinkel2018-01-12
| | | | Provide more context about the task which caused an error.
* Powerpoint writer: Include Notes slide in TOCJesse Rosenthal2018-01-12
|
* Lua filters: make PANDOC_READER_OPTIONS availableAlbert Krewinkel2018-01-12
| | | | | The options which were used to read the document are made available to Lua filters via the `PANDOC_READER_OPTIONS` global.
* Powerpoint writer: allow setting toc-title in metadata.Jesse Rosenthal2018-01-12
| | | | Accompanying change in MANUAL.txt
* Move `metaValueToInlines` to T.P.W.SharedJesse Rosenthal2018-01-12
| | | | This will allow the Powerpoint writer to use it as well.
* Powerpoint writer: Set notes slide header with slide-levelJesse Rosenthal2018-01-12
| | | | | It used to be hardcoded to 2. This will set it to the appropriate slide-level.
* Powerpoint writer: Add table of contentsJesse Rosenthal2018-01-12
| | | | | | This is triggered by the `--toc` flag. Note that in a long slide deck this risks overrunning the text box. The user can address this by setting `--toc-depth=1`.
* Powerpoint writer: Set notes slide number correctlyJesse Rosenthal2018-01-12
| | | | | | Previously, this hadn't been aware of a metadata slide. We also clarify the logic for setting the startnumber of different slide sections correctly.
* Powerpoint writer: Ignore internal links without targets.Jesse Rosenthal2018-01-12
| | | | | | If the user entered an internal link without a corresponding anchor, it would produce a corrupted file. Now we check the anchor map, and make sure the target is in the file. If it isn't, we ignore it.
* Powerpoint writer: Clean up adding metadata slideJesse Rosenthal2018-01-12
| | | | We want to count the slide numbers correctly if it's in there.
* Powerpoint writer: Add anchor linksJesse Rosenthal2018-01-12
| | | | | | For anchor-type links (`[foo](#bar)`) we produce an anchor link. In powerpoint these are links to slides, so we keep track of a map relating anchors to the slides they occur on.
* Powerpoint writer: Make the slide number available to the blocks.Jesse Rosenthal2018-01-12
| | | | | For anchors, block-processing functions need to know what slide number they're in. We make the envCurSlideId available to blocks.
* Powerpoint writer: move curSlideId to environment.Jesse Rosenthal2018-01-12
| | | | It really isn't a moving state, and that can be misleading.
* MANUAL.txt: clarify otherlangs in LaTeX.John MacFarlane2018-01-11
| | | | Closes #4072.
* LaTeX reader: fix inconsistent column widths.John MacFarlane2018-01-10
| | | | | | | This fixes a bug whereby column widths for the body were different from widths for the header in some tables. Closes #4238.
* RST reader: better handling for headers with an anchor.John MacFarlane2018-01-10
| | | | | | Instead of creating a div containing the header, we put the id directly on the header. This way header promotion will work properly. Closes #4240.
* Fixed a test case so it works on windows too.John MacFarlane2018-01-09
|
* HTML writer: Fixed footnote backlinks with --id-prefix.John MacFarlane2018-01-09
| | | | Closes #4235.
* Bump criterion upper bound.John MacFarlane2018-01-09
|
* data/pandoc.lua: fix access to Attr componentsAlbert Krewinkel2018-01-09
| | | | | | Accessing an Attr value (e.g., ` Attr().classes`) was broken; the more common case of accessing it via an Inline or Block element was unaffected by this.
* data/pandoc.lua: slightly de-complicate accessor codeAlbert Krewinkel2018-01-09
| | | | Change: minor
* Allow tasty 1.0.John MacFarlane2018-01-08
|
* data/pandoc.lua: cleanup code, remove cruftAlbert Krewinkel2018-01-08
|
* MANUAL.txt update ICML linkmb212018-01-08
|
* Fixed an item that went missing in changelog for 2.1.John MacFarlane2018-01-07
|
* Added oltolm to AUTHORSJohn MacFarlane2018-01-07
|
* More RELEASE_CHECKLIST tweaks.John MacFarlane2018-01-07
|
* Update RELEASE_CHECKLIST.John MacFarlane2018-01-07
|
* Update changelog and man page.John MacFarlane2018-01-07
|