From f62f8b7ef2f1c2357fbd41f5226fe433e632e042 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 13 Jan 2022 19:11:50 +0200 Subject: LaTeX: parse thebibliography --- test/command/latex-thebibliography.md | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 test/command/latex-thebibliography.md (limited to 'test') 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." ] ] + ] + ] + ) + ] + ] +] +``` + -- cgit v1.2.3