-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docbookrep_tex.dsl
72 lines (62 loc) · 2.38 KB
/
docbookrep_tex.dsl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!-- Extends DocBook DSSSL 1.72 to process extensions for repasa -->
<!-- Extensions released to the public domain. No warranties. -->
<!-- http://structio.sourceforge.net/repasa -->
<!-- To use this, create a stylesheet extending DocBook DSSSL, define an
ENTITY in the internal DTD like:
<!ENTITY docbookrep-tex.dsl SYSTEM "path/docbookrep_tex.dsl">
and in the body of your stylesheet include it:
&docbookrep-tex.dsl;
-->
;;We don't process para with resp or sig in role attribute
(element para
(if (attribute-string "role")
(empty-sosofo)
($paragraph$)
)
)
(element answer
(empty-sosofo)
)
(element highlights
(case (attribute-string "role")
(("indicadores") (make sequence
(literal "Indicadores de Logro")
(process-children)))
(("logros") (make sequence
(literal "Logros")
(process-children)))
(else ($block-container$)))
)
<!-- The next one is copied from print/dbblock.dsl in original
DocBook DSSSL 1.72 -->
(element (footnote para)
;; Note: this can only get called if the backend is 'tex
;; If the backend is anything else, footnote never calls process
;; children except in endnote-mode, so this doesn't get called.
(let ((fnnum (footnote-number (parent (current-node)))))
(if (= (child-number) 1)
(make paragraph
font-size: (* %footnote-size-factor% %bf-size%)
font-posture: 'upright
quadding: %default-quadding%
line-spacing: (* (* %footnote-size-factor% %bf-size%)
%line-spacing-factor%)
space-before: %para-sep%
space-after: %para-sep%
start-indent: %footnote-field-width%
first-line-start-indent: (- %footnote-field-width%)
(make line-field
field-width: %footnote-field-width%
(literal fnnum
(gentext-label-title-sep (normalize "footnote"))))
(process-children-trim))
(make paragraph
font-size: (* %footnote-size-factor% %bf-size%)
font-posture: 'upright
quadding: %default-quadding%
line-spacing: (* (* %footnote-size-factor% %bf-size%)
%line-spacing-factor%)
space-before: %para-sep%
space-after: %para-sep%
start-indent: %footnote-field-width%
(process-children-trim)))))