Skip to content

Commit 669c2b8

Browse files
committed
LaTeX reader: handle figure* environment as a figure.
Closes #10472.
1 parent d5c9fe7 commit 669c2b8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/Text/Pandoc/Readers/LaTeX.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ environments = M.union (tableEnvironments block inline) $
10161016
, ("minipage", divWith ("",["minipage"],[]) <$>
10171017
env "minipage" (skipopts *> spaces *> optional braced *> spaces *> blocks))
10181018
, ("figure", env "figure" $ skipopts *> figure')
1019+
, ("figure*", env "figure*" $ skipopts *> figure')
10191020
, ("subfigure", env "subfigure" $ skipopts *> tok *> figure')
10201021
, ("center", divWith ("", ["center"], []) <$> env "center" blocks)
10211022
, ("quote", blockQuote <$> env "quote" blocks)

test/command/6034.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
\end{overpic}
88
\end{figure*}
99
^D
10-
[ RawBlock
11-
(Format "latex")
12-
"\\begin{figure*}\n \\centering\n \\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}\n\\end{figure*}"
10+
[ Figure
11+
( "" , [] , [] )
12+
(Caption Nothing [])
13+
[ RawBlock (Format "latex") "\\centering"
14+
, RawBlock
15+
(Format "latex")
16+
"\\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}"
17+
]
1318
]
1419
```

0 commit comments

Comments
 (0)