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 % Non era esagerato, quindi l'ho messo ... (SP)
231 \Configure{crosslinks+}
236 <div style='float: left'>© 2000-2003
237 <a href='http://www.firenze.linux.it/\%7epiccardi/'>Simone Piccardi</a>
239 <div style='float: right'>Pubblicazione web curata da
240 <a href='http://www.lilik.it/\%7emirko/'>Mirko Maischberger</a>
244 % basedescript con le \item[voci] in grassetto
245 \ConfigureList{basedescript}
246 {\HCode{<ul class='basedescript'>}}
251 % idem per description e description*
252 \ConfigureList{description}
253 {\HCode{<ul class='description'>}}
258 \ConfigureList{description*}
259 {\HCode{<ul class='descriptionstar'>}}
264 % Altri ambienti lista che non so per quale motivo
265 % senza queste righe non funzionano
266 \ConfigureList{itemize}
267 {\HCode{<ul class='itemize'>}}
272 \ConfigureList{itemize*}
273 {\HCode{<ul class='itemizestar'>}}
278 % Converti tutti i listati in immagini PNG
279 %\ConfigureEnv{lstlisting}
280 % {\HCode{<div class='lstlisting'>}\Picture*{}}
281 % {\EndPicture\HCode{</div>}}
285 % Converti tutte le tabelle in immagini PNG
286 \ConfigureEnv{tabular}
287 {\HCode{<div class='tabular'>}\Picture*{}}
288 {\EndPicture\HCode{</div>}}
292 % Tre "div" diversi per tre riquardi
293 \ConfigureEnv{prototype}
294 {\HCode{<div class='prototype'>}}
299 \ConfigureEnv{functions}
300 {\HCode{<div class='functions'>}}
305 \Configure{verbatim}{}{ }
307 \ConfigureEnv{verbatim}
308 {\HCode{<div class='verbatim'><pre>}}
309 {\HCode{</pre></div>}}