1
0
Fork 0
forked from len0rd/rockbox

Manual (HTML): fix image aspect ratio and size

Change-Id: If7c680badcb1a493e2a2059d84ea5b154382bad2
This commit is contained in:
Christian Soffke 2021-12-08 14:01:39 +01:00 committed by Solomon Peachy
parent 694f929a99
commit f78a0e5230
5 changed files with 35 additions and 28 deletions

View file

@ -15,8 +15,9 @@
% specify the extension.
\begin{center}
\IfFileExists{rockbox_interface/images/\specimg-front.png}
{\includegraphics[height=8cm,width=10cm,keepaspectratio=true]%
{rockbox_interface/images/\specimg-front}
{\Ifpdfoutput{\includegraphics[height=8cm,width=10cm,keepaspectratio=true]%
{rockbox_interface/images/\specimg-front}}
{\includegraphics{rockbox_interface/images/\specimg-front}}
}
{\color{red}{\textbf{WARNING!} Image not found}%
\typeout{Warning: missing front image}
@ -26,7 +27,8 @@
% spacing between the two pictures, could possibly be improved
\begin{center}
\IfFileExists{rockbox_interface/images/\specimg-remote.png}
{\includegraphics[height=5.6cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-remote}
{\Ifpdfoutput{\includegraphics[height=5.6cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-remote}}
{\includegraphics{rockbox_interface/images/\specimg-remote}}
}
{\color{red}{\textbf{WARNING!} Image not found}%
\typeout{Warning: missing remote image}