Skip to content

Commit

Permalink
html: make htlatex honor image sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Nov 23, 2015
1 parent b6273b1 commit d951b41
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
13 changes: 13 additions & 0 deletions manuals/en/main/bareos-manual-main-reference.htlatex.cfg
Expand Up @@ -2,6 +2,17 @@
% ,imgdir:images/
%\Preamble{html,index=2,mouseover,obj-toc,sections+}
\Configure{@HEAD}{\HCode{<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' />}}

% make includegraphics cover width parameter. Scale by 2.0, to make the sizes match better.
\Configure{graphics*}
{png}
{%
\Picture[pict]{\csname Gin@base\endcsname .png
\space width="\the\dimexpr \expandafter\csname Gin@req@width\endcsname * 2.0"
}%
\special{t4ht+@File: \csname Gin@base\endcsname.png}
}

\begin{document}

\Css{
Expand Down Expand Up @@ -48,4 +59,6 @@
%\href{\#\thestring}{\#}%
}



\EndPreamble
4 changes: 3 additions & 1 deletion manuals/en/main/configure.tex
Expand Up @@ -685,7 +685,9 @@ \section{Names, Passwords and Authorization}
Here is sort of a picture of what names/passwords in which files/Resources
must match up:
\includegraphics{\idir Conf-Diagram}
\begin{center}
\includegraphics[width=0.8\textwidth]{\idir Conf-Diagram}
\end{center}
In the left column, you will find the Director, Storage, and Client resources,
with their names and passwords -- these are all in {\bf bareos-dir.conf}. In
Expand Down
5 changes: 3 additions & 2 deletions manuals/en/main/general.tex
Expand Up @@ -530,5 +530,6 @@ \section{Interactions Between the Bareos Services}
(normally a daemon). In general, the Director oversees the flow of
information. It also maintains the Catalog.

\addcontentsline{lof}{figure}{Interactions between Bareos Services}
\includegraphics{\idir flow}
\begin{center}
\includegraphics[width=0.8\textwidth]{\idir flow}
\end{center}
4 changes: 3 additions & 1 deletion manuals/en/main/troubleshooting.tex
Expand Up @@ -68,7 +68,9 @@ \subsection{Authorization Errors}
Here is a picture that indicates what names/passwords in which
files/Resources must match up:

\includegraphics{\idir Conf-Diagram}
\begin{center}
\includegraphics[width=0.8\textwidth]{\idir Conf-Diagram}
\end{center}

In the left column, you will find the Director, Storage, and Client
resources, with their names and passwords -- these are all in {\bf
Expand Down

0 comments on commit d951b41

Please sign in to comment.