Luke Skelly wrote:
> I'm trying to use tex files with docbook. I'm using the
> texmathtoimg.bat script that was suggested in an earlier post. The
> result has been generally very good. The editor automatically converts
> the tex to a png and displays it. Converting to html also works just
> fine. The problem I have is with converting to pdf. The tex files are
> converted to pdfs, but then the following error comes up for every file:
>
> FOP: INFO: [4]
> FOP: ERROR: Could not load external SVG: character not allowed
> FOP: ERROR: Error while creating area : No ImageReader for this type of
> image
> (file:/C:/DOCUME~1/skelly/LOCALS~1/Temp/xxe18366/resources/matrix_form.pdf)
>
This seems to be a bug in FOP.
> The resulting pdf simply fails to include the images. I tried changing
> the customize.xxe file so that it would create png files, but the
> converter still looks for pdfs.
>
> I'm currently using v2.11 Professional with most of the plugins.
>
> Any suggestions are appreciated.
[1] Edit <XXE_install_dir>/addon/config/docbook/xslMenu.incl using a
text editor.
[2] In command "docb.toPS" (also used for PDF), delete these lines:
---
<resources match="(?:.+/)?(.+)\.tex"
copyTo="raw" referenceAs="%w/resources/$1.%0" />
---
[3] Replace this line:
---
<convertImage from="raw" to="resources" format="%0 png" />
---
by this line:
---
<convertImage from="raw" to="resources" format="png" />
---
[4] Restart XXE.
It works, but the result is ugly because instead of converting TeX math
to PDF vector format, you convert it to PNG raster format.
---
PS: As always, using RenderX XEP rather than Apache FOP is highly
recommended.
---
PS2: I've attached the modified xslMenu.incl file I've used to test all
this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslMenu.incl
Type: text/xml
Size: 14285 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050802/d56818dd/attachment.xml