attempt to disable Tex float image placement

dr-nofloat
drowe67 2022-01-02 17:27:39 +10:30 committed by David Rowe
parent d9473a742a
commit c073749923
3 changed files with 9 additions and 1 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Render User Manual to PDF and HTML
run: |
git_hash=$(git describe --always HEAD); date=$(date "+%b %d %Y"); pandoc USER_MANUAL.md -o USER_MANUAL.pdf -fmarkdown-implicit_figures --from=markdown -V geometry:margin=1in --toc --highlight-style=espresso --number-sections -V title:"FreeDV User Manual\linebreak ${date} ${git_hash}"
git_hash=$(git describe --always HEAD); date=$(date "+%b %d %Y"); pandoc USER_MANUAL.md -o USER_MANUAL.pdf -fmarkdown-implicit_figures --from=markdown -V geometry:margin=1in --toc --highlight-style=espresso --number-sections -V title:"FreeDV User Manual\linebreak ${date} ${git_hash}" -H disable_float.tex
pandoc -o USER_MANUAL.html -fmarkdown-implicit_figures --from=markdown --number-sections USER_MANUAL.md
ls -l USER_MANUAL.*

Binary file not shown.

View File

@ -0,0 +1,8 @@
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
\expandafter\origfigure\expandafter[H]
} {
\endorigfigure
}