From ea268fd8a72fe59e6cb0086b0c7471b8aa316af1 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 15 Nov 2021 18:40:50 +0100 Subject: LaTeX reader: add rudimentary support for `\autoref` (#7693) --- test/command/refs.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') diff --git a/test/command/refs.md b/test/command/refs.md index fb362febe..34e51d219 100644 --- a/test/command/refs.md +++ b/test/command/refs.md @@ -58,6 +58,24 @@ Figure \vref{fig:1} ] ``` +``` +% pandoc -f latex -t native +\autoref{fig:flowchart} +^D +[ Para + [ Link + ( "" + , [] + , [ ( "reference-type" , "autoref" ) + , ( "reference" , "fig:flowchart" ) + ] + ) + [ Str "[fig:flowchart]" ] + ( "#fig:flowchart" , "" ) + ] +] +``` + ``` % pandoc -f latex -t native Accuracy~\eqref{eq:Accuracy} is the proportion, measuring true results among all results. -- cgit v1.2.3