mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 05:35:38 +00:00
This improves on commit e13aa5c015,
which worked only for recent versions of longtable.
For older versions, we need to define a dummy counter `none`.
Closes #11201. Thanks to @priiduonu for the solution.
23 lines
399 B
Markdown
23 lines
399 B
Markdown
# Beamer tables must not use longtable footer
|
|
```
|
|
% pandoc -t beamer
|
|
| fruit | price |
|
|
|---------|------:|
|
|
| apple | 2.05 |
|
|
| oranges | 4.25 |
|
|
^D
|
|
\begin{frame}
|
|
{\def\LTcaptype{none} % do not increment counter
|
|
\begin{longtable}[]{@{}lr@{}}
|
|
\toprule\noalign{}
|
|
fruit & price \\
|
|
\midrule\noalign{}
|
|
\endhead
|
|
apple & 2.05 \\
|
|
oranges & 4.25 \\
|
|
\bottomrule\noalign{}
|
|
\end{longtable}
|
|
}
|
|
\end{frame}
|
|
```
|