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 --- 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 + 8 files changed, 98 insertions(+) create mode 100644 test/command/1710.md (limited to 'test') diff --git a/test/command/1710.md b/test/command/1710.md new file mode 100644 index 000000000..be96678bd --- /dev/null +++ b/test/command/1710.md @@ -0,0 +1,91 @@ +``` +% pandoc -t revealjs +# Slide one + +
+
+- a +- b +
+
+- c +- d +
+
+ok +
+
+^D +
+

Slide one

+
+
+
    +
  • a
  • +
  • b
  • +
+
+
+
    +
  • c
  • +
  • d
  • +
+
+
+

ok

+
+
+
+``` + +``` +% pandoc -t beamer +# Slide one + +
+
+- a +- b +
+
+- c +- d +
+
+ok +
+
+^D +\begin{frame}{% +\protect\hypertarget{slide-one}{% +Slide one}} + +\begin{columns}[T] +\begin{column}{0.40\textwidth} +\begin{itemize} +\tightlist +\item + a +\item + b +\end{itemize} +\end{column} + +\begin{column}{0.40\textwidth} +\begin{itemize} +\tightlist +\item + c +\item + d +\end{itemize} +\end{column} + +\begin{column}{0.10\textwidth} +ok +\end{column} +\end{columns} + +\end{frame} +``` + diff --git a/test/lhs-test.html b/test/lhs-test.html index ff14e3699..6cf6285d1 100644 --- a/test/lhs-test.html +++ b/test/lhs-test.html @@ -9,6 +9,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-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;}