mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 04:31:11 -06:00
DRAFT: try png
This commit is contained in:
@@ -53,7 +53,7 @@ produce a lot of \ch{CO2}.
|
|||||||
% Generate first with: cd figures && pdflatex fig-ethanol-oxidation-external.tex
|
% Generate first with: cd figures && pdflatex fig-ethanol-oxidation-external.tex
|
||||||
\begin{figure}[!htb]
|
\begin{figure}[!htb]
|
||||||
\begin{center}
|
\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
|
\caption[Acetic acid creation]{Oxygen is required to create acetic
|
||||||
acid~\cite{acetic+acid+production}.}%
|
acid~\cite{acetic+acid+production}.}%
|
||||||
\end{center}
|
\end{center}
|
||||||
@@ -70,8 +70,8 @@ produce a lot of \ch{CO2}.
|
|||||||
% Works
|
% Works
|
||||||
% Generate first with: cd figures && pdflatex fig-life-planet-sourdough-timeline-external.pdf
|
% Generate first with: cd figures && pdflatex fig-life-planet-sourdough-timeline-external.pdf
|
||||||
\begin{figure}[!htb]
|
\begin{figure}[!htb]
|
||||||
\includegraphics{figures/fig-life-planet-sourdough-timeline-external.pdf}
|
\includegraphics{figures/fig-life-planet-sourdough-timeline-external.png}
|
||||||
\caption[Sourdough microbiology timeline]{Timeline works embedded as pdf}%
|
\caption[Sourdough microbiology timeline]{Timeline works embedded as png}%
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
\begin{figure}[!htb]
|
\begin{figure}[!htb]
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ if [ "$#" -ne 1 ]; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
target=figures/`basename $1 .png.pdf`.png
|
target=figures/`basename $1 .png.pdf`.png
|
||||||
|
echo ${target}
|
||||||
echo "Converting: " $1 " to: " ${target}
|
echo "Converting: " $1 " to: " ${target}
|
||||||
convert -density 900 -trim $1 -quality 100 ${target}
|
convert -density 900 -trim $1 -quality 100 ${target}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user