aboutsummaryrefslogtreecommitdiff
path: root/test/command/latex-tabular-column-specs.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-13 22:39:59 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-13 22:39:59 +0100
commitcfdbe85e7178e2a82f141192736dc2e0d6daed8a (patch)
treee2f764c5b61b33daa022832e401c4c81ba5cd785 /test/command/latex-tabular-column-specs.md
parentc4c9374526a8ae3706d1a4293dd024407d885606 (diff)
downloadpandoc-cfdbe85e7178e2a82f141192736dc2e0d6daed8a.tar.gz
LaTeX reader: properly handle column prefixes/suffixes.
For example, in \begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}} each cell will be interpreted as if it has a `$` before its content and a `$` after (math mode).
Diffstat (limited to 'test/command/latex-tabular-column-specs.md')
-rw-r--r--test/command/latex-tabular-column-specs.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/command/latex-tabular-column-specs.md b/test/command/latex-tabular-column-specs.md
new file mode 100644
index 000000000..ed44a9980
--- /dev/null
+++ b/test/command/latex-tabular-column-specs.md
@@ -0,0 +1,24 @@
+See https://groups.google.com/forum/#!topic/pandoc-discuss/_VXtqihCyDU.
+
+```
+% pandoc -f latex -t native
+\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}
+\toprule
+& f1 & f2 \\
+\midrule
+e & 0.5 & 4 \\
+f & 0.5 & 5,5 \\
+\bottomrule
+\end{tabular}
+^D
+[Table [] [AlignLeft,AlignLeft,AlignLeft] [0.0,0.0,0.0]
+ [[Plain [Math InlineMath ""]]
+ ,[Plain [Math InlineMath "f1"]]
+ ,[Plain [Math InlineMath "f2"]]]
+ [[[Plain [Math InlineMath "e"]]
+ ,[Plain [Math InlineMath "0.5"]]
+ ,[Plain [Math InlineMath "4"]]]
+ ,[[Plain [Math InlineMath "f"]]
+ ,[Plain [Math InlineMath "0.5"]]
+ ,[Plain [Math InlineMath "5,5"]]]]]
+```