forked from machinekit/machinekit-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocbook-image.conf
24 lines (22 loc) · 1.24 KB
/
docbook-image.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Allow wildcards in image names
[image-inlinemacro]
<inlinemediaobject>
<imageobject>
<imagedata fileref="{imagesdir=}{imagesdir?/}{sys:{scriptdir=./}image-wildcard "{indir}/{target}" {masterdir={indir}} {imageextensions=}}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}/>
</imageobject>
<textobject><phrase>{alt={target}}</phrase></textobject>
</inlinemediaobject>
[image-blockmacro]
<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
# DocBook XSL Stylesheets custom processing instructions.
<?dbfo keep-together="{breakable-option#auto}"?>
<?dbfo keep-together="{unbreakable-option#always}"?>
<mediaobject>
<imageobject>
<imagedata fileref="{imagesdir=}{imagesdir?/}{sys:{scriptdir=./}image-wildcard "{indir}/{target}" {masterdir={indir}} {imageextensions=}}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
</imageobject>
<textobject><phrase>{alt={target}}</phrase></textobject>
</mediaobject>
{title#}</figure>
{title%}</informalfigure>