From 20b058fbc6cf393e4282b1b0e7cbabdaa40ecb3d Mon Sep 17 00:00:00 2001 From: Cedric Date: Sun, 26 Nov 2023 10:58:43 +0000 Subject: [PATCH] DRAFT: try png --- book/book.tex | 6 +++--- book/figures/export_figures.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/book/book.tex b/book/book.tex index dcc6297..985fb10 100644 --- a/book/book.tex +++ b/book/book.tex @@ -53,7 +53,7 @@ produce a lot of \ch{CO2}. % Generate first with: cd figures && pdflatex fig-ethanol-oxidation-external.tex \begin{figure}[!htb] \begin{center} - \includegraphics{figures/fig-ethanol-oxidation-external.pdf} + \includegraphics{figures/fig-ethanol-oxidation-external.png} \caption[Acetic acid creation]{Oxygen is required to create acetic acid~\cite{acetic+acid+production}.}% \end{center} @@ -70,8 +70,8 @@ produce a lot of \ch{CO2}. % Works % Generate first with: cd figures && pdflatex fig-life-planet-sourdough-timeline-external.pdf \begin{figure}[!htb] - \includegraphics{figures/fig-life-planet-sourdough-timeline-external.pdf} - \caption[Sourdough microbiology timeline]{Timeline works embedded as pdf}% + \includegraphics{figures/fig-life-planet-sourdough-timeline-external.png} + \caption[Sourdough microbiology timeline]{Timeline works embedded as png}% \end{figure} \begin{figure}[!htb] diff --git a/book/figures/export_figures.sh b/book/figures/export_figures.sh index a4eef16..4d0532e 100755 --- a/book/figures/export_figures.sh +++ b/book/figures/export_figures.sh @@ -10,6 +10,7 @@ if [ "$#" -ne 1 ]; then done else target=figures/`basename $1 .png.pdf`.png + echo ${target} echo "Converting: " $1 " to: " ${target} convert -density 900 -trim $1 -quality 100 ${target} fi