3 %% Copyright (C) 2003 Mirko Maischberger.
4 %% This program is free software; you can redistribute it and/or modify
5 %% it under the terms of the GNU General Public License as published by
6 %% the Free Software Foundation; either version 2 of the License, or
7 %% (at your option) any later version.
9 %% This program is distributed in the hope that it will be useful,
10 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
11 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 %% GNU General Public License for more details.
14 %% You should have received a copy of the GNU General Public License
15 %% along with this program; if not, write to the Free Software
16 %% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 %% Configurazione tex4ht per la compilazione del
20 %% GaPiL (Guida alla Programmazione in Linux)
25 \Preamble{html,4,info,next,mouseover}
30 %\usepackage[tex4ht]{hyperref}
32 \renewcommand{\includecodesnip}[1]
33 {\HCode{<div class='lstlisting-plain'>}\input #1.html\HCode{</div>}}
35 \renewcommand{\includestruct}[1]
36 {\HCode{<div class='lstlisting-lines'>}\input #1.html\HCode{</div>}}
38 \renewcommand{\includecodesample}[1]
39 {\HCode{<div class='lstlisting-lines'>}\input #1.html\HCode{</div>}}
45 % Voce del css per impostare il logo e dei margini decenti
48 padding: 2em 10em 2em 70px;
50 font-family: sans-serif;
53 background-position: top left;
54 background-attachment: fixed;
55 background-repeat: no-repeat;
56 background-image: url(gapil-logo.png);
61 pre { text-align: left;}
65 .figure img.graphics {
76 % Gli <hr> si tramutano in una linea grigia
83 background-color: \#999;
87 % Qualche stile per i link
92 text-decoration: none;
100 text-decoration: underline;
111 % Non lo chiappa: lo aggioungo come perl -e a htmlize.sh
118 % Configura gli stili per le liste
120 span.boxedminipage ul.descriptionstar {
121 list-style-type: none;
128 list-style-type: none;
135 list-style-type: none;
141 list-style-type: none;
145 % Configura i vari riquadri del GaPiL
147 div.lstlisting-plain {
150 margin: 0px 20px 0px 20px;
151 padding: 0px 7px 0px 7px;
156 div.lstlisting-plain span.linenum {
162 div.lstlisting-lines {
165 margin: 3px 20px 3px 20px;
166 padding: 3px 7px 3px 7px;
167 border-top: 3px double black;
168 border-bottom: 3px double black;
175 margin: 7px 20px 7px 20px;
176 padding: 7px 7px 7px 7px;
183 margin: 15px 40px 15px 40px;
185 padding: 7px 12px 0px 12px;
186 border: 1px solid \#ccc;
193 margin: 15px 40px 15px 40px;
195 padding: 7px 12px 12px 12px;
196 border: 1px solid \#ccc;
205 margin: 15px 40px 15px 40px;
206 padding: 7px 7px 7px 7px;
207 border: 1px solid \#ccc;
211 % E ora qualcosa di completamente diverso :)
213 % Usa le immagini PNG (che le gif ci stanno sulle balle)
214 \Configure{Picture}{.png}
216 % Pochi tasti per non confondere l'utente
217 \Configure{crosslinks}
219 {]\HCode{ }}
227 % Una nota di copyright in fondo
228 % Mi ci ero aggiunto anche "me" come webmaster, ma
229 % non vorrei esagerare :).
230 \Configure{crosslinks+}
235 <div style='float: left'>© 2000-2003
236 <a href='http://www.firenze.linux.it/\%7epiccardi/'>Simone Piccardi</a>
238 % <div style='float: right'>Pubblicazione web curata da
239 % <a href='http://www.lilik.it/\%7emirko/'>Mirko Maischberger</a>
243 % basedescript con le \item[voci] in grassetto
244 \ConfigureList{basedescript}
245 {\HCode{<ul class='basedescript'>}}
250 % idem per description e description*
251 \ConfigureList{description}
252 {\HCode{<ul class='description'>}}
257 \ConfigureList{description*}
258 {\HCode{<ul class='descriptionstar'>}}
263 % Altri ambienti lista che non so per quale motivo
264 % senza queste righe non funzionano
265 \ConfigureList{itemize}
266 {\HCode{<ul class='itemize'>}}
271 \ConfigureList{itemize*}
272 {\HCode{<ul class='itemizestar'>}}
277 % Converti tutti i listati in immagini PNG
278 %\ConfigureEnv{lstlisting}
279 % {\HCode{<div class='lstlisting'>}\Picture*{}}
280 % {\EndPicture\HCode{</div>}}
284 % Converti tutte le tabelle in immagini PNG
285 \ConfigureEnv{tabular}
286 {\HCode{<div class='tabular'>}\Picture*{}}
287 {\EndPicture\HCode{</div>}}
291 % Tre "div" diversi per tre riquardi
292 \ConfigureEnv{prototype}
293 {\HCode{<div class='prototype'>}}
298 \ConfigureEnv{functions}
299 {\HCode{<div class='functions'>}}
304 \Configure{verbatim}{}{ }
306 \ConfigureEnv{verbatim}
307 {\HCode{<div class='verbatim'><pre>}}
308 {\HCode{</pre></div>}}