From 9bca7faec34819c5afcc1c40957046dbf109924d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 7 Sep 2024 17:18:16 -0700 Subject: [PATCH] Add command test for #5116. --- test/command/5116.md | 107 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 test/command/5116.md diff --git a/test/command/5116.md b/test/command/5116.md new file mode 100644 index 000000000000..ac49286591f1 --- /dev/null +++ b/test/command/5116.md @@ -0,0 +1,107 @@ +``` +% pandoc -t latex +![This is a figure.](img.jpg) + + Right Left Center Default +------- ------ ---------- ------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + + : Demonstration of simple table syntax. +^D +\begin{figure} +\centering +\pandocbounded{\includegraphics[keepaspectratio]{img.jpg}} +\caption{This is a figure.} +\end{figure} + +\begin{longtable}[]{@{}rlcl@{}} +\caption{Demonstration of simple table syntax.}\tabularnewline +\toprule\noalign{} +Right & Left & Center & Default \\ +\midrule\noalign{} +\endfirsthead +\toprule\noalign{} +Right & Left & Center & Default \\ +\midrule\noalign{} +\endhead +\bottomrule\noalign{} +\endlastfoot +12 & 12 & 12 & 12 \\ +123 & 123 & 123 & 123 \\ +1 & 1 & 1 & 1 \\ +\end{longtable} + +``` + +``` +% pandoc -t latex --figure-caption-position=above --table-caption-position=above +![This is a figure.](img.jpg) + + Right Left Center Default +------- ------ ---------- ------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + + : Demonstration of simple table syntax. +^D +\begin{figure} +\centering +\caption{This is a figure.} +\pandocbounded{\includegraphics[keepaspectratio]{img.jpg}} +\end{figure} + +\begin{longtable}[]{@{}rlcl@{}} +\caption{Demonstration of simple table syntax.}\tabularnewline +\toprule\noalign{} +Right & Left & Center & Default \\ +\midrule\noalign{} +\endfirsthead +\toprule\noalign{} +Right & Left & Center & Default \\ +\midrule\noalign{} +\endhead +\bottomrule\noalign{} +\endlastfoot +12 & 12 & 12 & 12 \\ +123 & 123 & 123 & 123 \\ +1 & 1 & 1 & 1 \\ +\end{longtable} + +``` + +``` +% pandoc -t latex --figure-caption-position=below --table-caption-position=below +![This is a figure.](img.jpg) + + Right Left Center Default +------- ------ ---------- ------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 + + : Demonstration of simple table syntax. +^D +\begin{figure} +\centering +\pandocbounded{\includegraphics[keepaspectratio]{img.jpg}} +\caption{This is a figure.} +\end{figure} + +\begin{longtable}[]{@{}rlcl@{}} +\toprule\noalign{} +Right & Left & Center & Default \\ +\midrule\noalign{} +\endhead +\bottomrule\noalign{} +\tabularnewline +\caption{Demonstration of simple table syntax.} +\endlastfoot +12 & 12 & 12 & 12 \\ +123 & 123 & 123 & 123 \\ +1 & 1 & 1 & 1 \\ +\end{longtable} + +```