Re: Possible to use MetaPost input directly?

James Devenish <[email protected]> Sun, 4 May 2003 10:25:43 +0800
Newsgroups gmane.text.docbook.db2latex.devel
Message-ID <[email protected]>
In message <[email protected]>
on Sun, May 04, 2003 at 12:39:56AM +0200, Steinar Bang wrote:
> Is it possible to use MetaPost input files directly in the LaTeX files
> resulting from using the db2latex XSLT style sheet?

Maybe...

> I guess that would require generating something different than
> \includegraphics? 

One option in the style of DocBook is to use a particular attribute
(e.g. 'role') to trigger specific template handling in your own driver
file. However, there may be an existing mechanism that you can use.
If you have <mediaobject> with no <imageobject>s but with a <textobject>
containing <phrase role="latex">, you can insert actual LaTeX commands
(untested):

<mediaobject>
    <textobject>
        <phrase role="latex">\your\latex\code</phrase>
    </textobject>
</mediaobject>





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf