mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +00:00
108 lines
2.5 KiB
Markdown
108 lines
2.5 KiB
Markdown
```
|
|
% pandoc -t latex
|
|

|
|
|
|
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,alt={This is a figure.}]{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
|
|

|
|
|
|
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,alt={This is a figure.}]{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
|
|

|
|
|
|
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,alt={This is a figure.}]{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}
|
|
|
|
```
|