Skip to content

Commit fc694b7

Browse files
committed
bypass the wrapfigure environment in latex
The wrapfigure environment is very fragile and causes layout problems (half width text, misplaced section titles). It is bypassed by a renewenvironment.
1 parent 3926226 commit fc694b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def __init__(self, **options):
337337
338338
\makeatother
339339
340+
\renewenvironment{wrapfigure}[2]{\begin{figure}[H]}{\end{figure}}
341+
340342
\def\shadowbox#1{\rule{\linewidth}{1pt}\nopagebreak
341343
342344
\nopagebreak\hspace*{.02\linewidth}#1\nopagebreak

0 commit comments

Comments
 (0)