Hi Lex,

I'm still pretty new to this. I think I'm doing this wrong, but here's what I 
have in my document…

[graphviz, vacation.svg]
format=svg
----
include::vacation.dot[]
----

Is that the correct way to specify the format for the graphviz plugin? It 
doesn't seem to work and just passes the contents of 'vacation.dot' straight 
through...

_ michael


On Apr 16, 2013, at 9:03 PM, Lex Trotman <[email protected]> wrote:

> 
> 
> 
> On 17 April 2013 04:58, Michael Bishop <[email protected]> wrote:
> Hi All,
> 
> I'm posting another feature request (I'm happy to adhere to another process 
> if this is not it).
> 
> I'd like to include GraphViz-generated graphs in my book and am very happy 
> that they can be embedded, but for print, I wish I could specify svg or PDF 
> as an output format.
> 
> Hi Michael,
> 
> The graphviz filter recognises the format=... option.  But you have to tell 
> it what output to generate for non-html output.  In your custom asciidoc.conf 
> add a section for each format:
> 
> [graphviz-FORMAT-block]
> <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?/}{target}"{width? 
> contentwidth="{width}"}{height? contentdepth="{height}"}{scale? 
> scale="{scale}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? 
> align="{align}"}/>
>   </imageobject>
>   <textobject><phrase>{alt={target}}</phrase></textobject>
> </mediaobject>
> {title#}</figure>
> {title%}</informalfigure>
> 
> where of course FORMAT in the header is whichever format you will be using, 
> eg svg
> 
> I have copied the content of this from docbook45.conf [image-blockmacro] 
> section in case the mailer crunches it too badly, and you might have to 
> twiddle paths but I think its ok.
> 
> I understand FOP at least can handle images in svg.
> 
> Cheers
> Lex
>  
> 
> Would that be hard to do?
> 
> Thank you,
> 
> _ michael
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to