LaTeX reader: handle figure* environment as a figure.

Closes #10472.
This commit is contained in:
John MacFarlane
2024-12-18 12:11:04 -08:00
parent d5c9fe73b8
commit 669c2b8f64
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -1016,6 +1016,7 @@ environments = M.union (tableEnvironments block inline) $
, ("minipage", divWith ("",["minipage"],[]) <$>
env "minipage" (skipopts *> spaces *> optional braced *> spaces *> blocks))
, ("figure", env "figure" $ skipopts *> figure')
, ("figure*", env "figure*" $ skipopts *> figure')
, ("subfigure", env "subfigure" $ skipopts *> tok *> figure')
, ("center", divWith ("", ["center"], []) <$> env "center" blocks)
, ("quote", blockQuote <$> env "quote" blocks)
+8 -3
View File
@@ -7,8 +7,13 @@
\end{overpic}
\end{figure*}
^D
[ RawBlock
(Format "latex")
"\\begin{figure*}\n \\centering\n \\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}\n\\end{figure*}"
[ Figure
( "" , [] , [] )
(Caption Nothing [])
[ RawBlock (Format "latex") "\\centering"
, RawBlock
(Format "latex")
"\\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}"
]
]
```