aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-01-13 19:11:50 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-01-16 19:49:37 +0200
commitf62f8b7ef2f1c2357fbd41f5226fe433e632e042 (patch)
tree5b94da2cac9e6a451b21cf183da8311e3b5eb2a1 /test
parentb80b03c0b3d03c9504854fe97e7e6def6fe7c609 (diff)
downloadpandoc-master.tar.gz
LaTeX: parse thebibliographyHEADmaster
Diffstat (limited to 'test')
-rw-r--r--test/command/latex-thebibliography.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/command/latex-thebibliography.md b/test/command/latex-thebibliography.md
new file mode 100644
index 000000000..54b257c61
--- /dev/null
+++ b/test/command/latex-thebibliography.md
@@ -0,0 +1,49 @@
+# The bibliography
+
+```
+% pandoc -f latex -t native
+\begin{thebibliography}{10}
+ \bibitem{two} The Second.
+ \bibitem{four} The Fourth.
+\end{thebibliography}
+\begin{thebibliography}{100}
+ \bibitem[One1990]{one} The First.
+ \bibitem{two} The Second.
+\end{thebibliography}
+^D
+[ Div
+ ( "" , [ "thebibliography" ] , [] )
+ [ OrderedList
+ ( 1 , Decimal , Period )
+ [ [ Div
+ ( "two" , [] , [] )
+ [ Para [ Str "The" , Space , Str "Second." ] ]
+ ]
+ , [ Div
+ ( "four" , [] , [] )
+ [ Para [ Str "The" , Space , Str "Fourth." ] ]
+ ]
+ ]
+ ]
+, Div
+ ( "" , [ "thebibliography" ] , [] )
+ [ DefinitionList
+ [ ( [ Str "One1990" ]
+ , [ [ Div
+ ( "one" , [] , [] )
+ [ Para [ Str "The" , Space , Str "First." ] ]
+ ]
+ ]
+ )
+ , ( [ Str "1" ]
+ , [ [ Div
+ ( "two" , [] , [] )
+ [ Para [ Str "The" , Space , Str "Second." ] ]
+ ]
+ ]
+ )
+ ]
+ ]
+]
+```
+