While polishing the Norwegian locales for dblatex, I discovered the
<note> and <tip> block did not get an image by default unlike the
<important>, <warning> and <caution> blocks and started to investigate.
I discovered that dblatex in Debian include a set of named images for
each of these in
/usr/share/texmf/tex/latex/dblatex/contrib/db2latex/graphics, but only
the warning image is used, for some reason for both<important>,
<warning> and <caution>.</caution></warning></important></caution></warning></important></tip></note>
Would it be an idea to use the images already available for each block?
The important and caution images seem to be identical to the warning
image, which I guess is a bit unfortunate, but did not try to fix that.
At least the warning symbol should probably be the /!\ triangle used on
the road, but given my inability to draw I'll leave that task to someone
else.
This is the patch I propose:
diff -r 3ddf5d6cedcb xsl/admon.xsl
--- a/xsl/admon.xsl Tue Sep 10 00:40:26 2019 +0200
+++ b/xsl/admon.xsl Sat Oct 03 16:12:07 2020 +0200
@@ -5,11 +5,11 @@
XSLT Stylesheet DocBook -> LaTeX
############################################################################ -->
-<xsl:param name="figure.note">
-<xsl:param name="figure.tip">
-<xsl:param name="figure.important">warning</xsl:param>
+<xsl:param name="figure.note">note</xsl:param>
+<xsl:param name="figure.tip">tip</xsl:param>
+<xsl:param name="figure.important">important</xsl:param>
<xsl:param name="figure.warning">warning</xsl:param>
-<xsl:param name="figure.caution">warning</xsl:param>
+<xsl:param name="figure.caution">caution</xsl:param></xsl:param></xsl:param>
<xsl:template match="note|important|warning|caution|tip">
<xsl:text>\begin{DBKadmonition}{</xsl:text></xsl:template>
--
Happy hacking
Petter Reinholdtsen