This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] Admonitions with graphics on the margins.
- From: "Lic. Rodolfo Gonzalez Gonzalez" <rodolfo at equinoxe dot g-networks dot net>
- To: Docbook ML <docbook at lists dot oasis-open dot org>
- Date: Tue, 22 Apr 2003 13:39:54 -0500 (CDT)
- Subject: [docbook] Admonitions with graphics on the margins.
Hello,
I have a custom DSSSL stylesheet for "printing" in PDF with this:
(define %admon-graphics%
#t)
(define admon-graphic-default-extension
".pdf")
(define %admon-graphics-path%
"/usr/share/sgml/docbook/dsssl-stylesheets/images/")
(define ($admon-graphic$ #!optional (nd (current-node)))
(cond ((equal? (gi nd) (normalize "tip"))
(string-append %admon-graphics-path%
(string-append "tip"
admon-graphic-default-extension)))
((equal? (gi nd) (normalize "note"))
(string-append %admon-graphics-path%
(string-append "note"
admon-graphic-default-extension)))
((equal? (gi nd) (normalize "important"))
(string-append %admon-graphics-path%
(string-append "important"
admon-graphic-default-extension)))
((equal? (gi nd) (normalize "caution"))
(string-append %admon-graphics-path%
(string-append "caution"
admon-graphic-default-extension)))
((equal? (gi nd) (normalize "warning"))
(string-append %admon-graphics-path%
(string-append "warning"
admon-graphic-default-extension)))
(else (error (string-append (gi nd) " is not an admonition.")))))
(define ($admon-graphic-width$ #!optional (nd (current-node)))
;; Admonition graphic file width
0.9mm)
This includes the graphics for the the admonitions which can be found in
/usr/share/sgml/docbook/dsssl-stylesheets/images/ and have .pdf extension.
But they are placed next to the text for the admonition, without a space.
I would rather like the graphics to appear on the margin and the
admonitions either inside a shaded frame, or without the frame. The
dbadmon.dsl sheet has this:
...
(make display-group
space-before: %block-sep%
space-after: %block-sep%
start-indent: (+ (inherited-start-indent) ($admon-graphic-width$))
...
where I guess start-ident means the ident from the left base line of the
text. But how can be the graphic placed on the margin of the page (like a
marginal anotation), and the text in the body of the page?. Any hint,
example or pointer is really appreciated.
Thanks,
Rodolfo.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-help at lists dot oasis-open dot org