-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigEPUB.cfg
43 lines (33 loc) · 1.24 KB
/
configEPUB.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\Preamble{xhtml}
\Configure{AddCss}{./files/blitz-lite.css}
\DeclareGraphicsExtensions{.svg,.png,.jpg,.pdf}
\ConfigureEnv{figure}
{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="figure">}%
\bgroup \Configure{float}{\ShowPar}{}{}%
}
{\egroup
\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\ShowPar
\par}
{}{}
% esto habilita que las imagenes siempre vayan al 100% del ancho
\Configure{Gin-dim}{}
\Css{img {
max-width: 100\%;
height: auto;
}}
\Css{div.caption {text-align:center;font-size:90\%;text-indent:0em; margin-left:1em; margin-right:1em; }}
\Css{div.figure{text-align:center;clear:both;overflow:auto;width:100\%;margin-bottom:1em;}}
\def\nolinkurl#1{#1}
\Css{dd.thebibliography { text-indent: -2em; margin-left: 2em;}}
\Css{dt.thebibliography + dd.thebibliography{margin-top: 1em;}}
\Css{dd.thebibliography p:first-child{ text-indent: -2em; }}
\Css{dt.thebibliography{float:left; clear:left; margin-right:1em;}}
\renewcommand\tableofcontents{%
\ifvmode\IgnorePar\fi\EndP\HCode{<h2>\contentsname</h2>}%
\TableOfContents[ part,chapter,likechapter,section,likesection,subsection ]
}
\Configure{halignTB<>}{tabular}{%
\HCode{id="TBL-\TableNo" class="tabular"\Hnewline
\GROUPS\Hnewline
}<>\HAlign}
% no escribir a partir de esta línea