From 892a4edeb1c9b9810c8386e639d8e457bbae7e86 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 14 Aug 2017 23:05:09 -0700 Subject: Implement multicolumn support for slide formats. The structure expected is:
contents...
contents...
Support has been added for beamer and all HTML slide formats. Closes #1710. Note: later we could add a more elegant way to create this structure in Markdown than to use raw HTML div elements. This would come for free with a "native div syntax" (#168). Or we could devise something specific to slides --- data/templates/default.dzslides | 1 + data/templates/default.html4 | 1 + data/templates/default.html5 | 1 + data/templates/default.revealjs | 1 + data/templates/default.s5 | 1 + data/templates/default.slideous | 1 + data/templates/default.slidy | 1 + src/Text/Pandoc/Writers/HTML.hs | 8 +++- src/Text/Pandoc/Writers/LaTeX.hs | 23 +++++++++- test/command/1710.md | 91 ++++++++++++++++++++++++++++++++++++++++ test/lhs-test.html | 1 + test/lhs-test.html+lhs | 1 + test/s5-basic.html | 1 + test/s5-fancy.html | 1 + test/s5-inserts.html | 1 + test/writer.html4 | 1 + test/writer.html5 | 1 + 17 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 test/command/1710.md diff --git a/data/templates/default.dzslides b/data/templates/default.dzslides index 479d2f06e..e17e23df8 100644 --- a/data/templates/default.dzslides +++ b/data/templates/default.dzslides @@ -15,6 +15,7 @@ $endif$ diff --git a/test/s5-fancy.html b/test/s5-fancy.html index a24baa556..3031cf071 100644 --- a/test/s5-fancy.html +++ b/test/s5-fancy.html @@ -14,6 +14,7 @@ code{white-space: pre-wrap;} .smallcaps{font-variant: small-caps;} .line-block{white-space: pre-line;} + .column{display: inline-block;} diff --git a/test/s5-inserts.html b/test/s5-inserts.html index 97c8de384..a3c3a7886 100644 --- a/test/s5-inserts.html +++ b/test/s5-inserts.html @@ -12,6 +12,7 @@ code{white-space: pre-wrap;} .smallcaps{font-variant: small-caps;} .line-block{white-space: pre-line;} + .column{display: inline-block;} STUFF INSERTED diff --git a/test/writer.html4 b/test/writer.html4 index 89cf07685..2040b4a1a 100644 --- a/test/writer.html4 +++ b/test/writer.html4 @@ -12,6 +12,7 @@ code{white-space: pre-wrap;} .smallcaps{font-variant: small-caps;} .line-block{white-space: pre-line;} + .column{display: inline-block;} diff --git a/test/writer.html5 b/test/writer.html5 index 6762f8198..e3b3a07ca 100644 --- a/test/writer.html5 +++ b/test/writer.html5 @@ -12,6 +12,7 @@ code{white-space: pre-wrap;} .smallcaps{font-variant: small-caps;} .line-block{white-space: pre-line;} + .column{display: inline-block;}