pandoc/test/command/1710.md
John MacFarlane 642d603666 Improved support for columns in HTML.
* Move as much as possible to the CSS in the template.
* Ensure that all the HTML-based templates (including epub)
  contain the CSS for columns.
* Columns default to 50% width unless they are given a width
  attribute.

Closes #4028.
2017-11-02 20:57:05 -07:00

1.1 KiB

% pandoc -t revealjs
# Slide one

<div class="columns">
<div class="column" width="40%">
- a
- b
</div>
<div class="column" width="40%">
- c
- d
</div>
<div class="column" width="10%">
ok
</div>
</div>
^D
<section id="slide-one" class="slide level1">
<h1>Slide one</h1>
<div class="columns">
<div class="column" style="width:40%;">
<ul>
<li>a</li>
<li>b</li>
</ul>
</div><div class="column" style="width:40%;">
<ul>
<li>c</li>
<li>d</li>
</ul>
</div><div class="column" style="width:10%;">
<p>ok</p>
</div>
</div>
</section>
% pandoc -t beamer
# Slide one

<div class="columns">
<div class="column" width="40%">
- a
- b
</div>
<div class="column" width="40%">
- c
- d
</div>
<div class="column" width="10%">
ok
</div>
</div>
^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}