(Sorry but what follows is a bit complicated. Note that end-users, that
is, technical writers, are not supposed to do this. More information
about the separation of roles here:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/introduction.html )

[1] Please remove everything you did.

[2] Please use "Options|Install Add-ons" and select the add-on called
"A sample customize.xxe".

[3] At the end of the documentation pane of this add-on, you'll find
instructions explaining how to enable the 3 purely declarative (an XML
spec --
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/imageToolkit.html
) image toolkits included in this add-on:

---
Add support for even more image formats

If you have Ghostscript 8+ and/or TeX and/or netpbm installed on your
machine, uncomment this line (found at the end of customize.xxe):

<!--
  <include location="imagetoolkits.incl" />
-->

and you'll add to XXE support for:

EPS, PDF graphics,
PBM, PGM, PPM images,
``TeX Math''.

Open XXE_install_dir/demo/docbook-image.xml to test these newly added
image toolkit plug-ins.
---

[3] Click OK to install the add-on.

[4] Follow the above instructions, that is, uncomment in
~/.xxe4/sample_customize_xxe/customize.xxe:

<!--
  <include location="imagetoolkits.incl" />
-->

[5] Restart XXE and open docbook-image.xml.

[6] If the TeX equation is not properly rendered, please take a look at
imagetoolkits.incl and adapt it to your working environment.

---
<!-- =================================================================
  The following software is required: latex, dvips, Ghostscript 8+
  (for -dEPSCrop).

  The texmathtoimg.bat batch file (the texmathtoimg shell
  script on Unix)
  must be copied to the directory containing this XXE
  configuration file.

  If the latex, dvips, gs and ps2pdf12 programs are
   not in your PATH, you'll
  need to slightly edit the texmathtoimg.bat batch file
  (the texmathtoimg shell script on Unix).

  Tested on Windows using:
  * MiKTeX 2.4, an up-to-date TeX implementation for the Windows
    operating system. See http://www.miktex.org/.
  * Ghostscript 8.14, an interpreter for the PostScript language
    and for PDF.
    See http://www.cs.wisc.edu/~ghost/.
=================================================================== -->

<imageToolkit name="TeX Math">
  <description>Converts TeX mathematics to PNG, EPS, PDF.
Important: requires Ghostscript 8+.</description>

  <converter>
    <!-- First line of the TeX file must be "%tex"
         if you want to be able
         to embed base64-encoded ``TeX images'' in your documents. -->

    <input extensions="tex" magicStrings="%tex"/>
    <output extensions="png eps ps pdf"/>

    <shell command='"%C%Stexmathtoimg" "%I" "%O"' platform="Unix"/>

    <shell command='call "%C%Stexmathtoimg.bat" "%I" "%O"'
           platform="Windows"/>
  </converter>
</imageToolkit>
---



Erik Leunissen wrote:
> Hello all,
> 
> I've been trying to view the TeX formula in in section 4.2 [*] of the
> distribution-supplied document "<installDir>/demo/docbook-image.xml". This
> failed[**], as it did for the other image formats in that section, because
> I was unable to follow through the instructions regarding installation of
> plugins as given by the footnote element that very same section:
> 
> 1. include XXE_install_dir/docs/configure/samples2/imagetoolkits.incl in
> your ~/.xxe4/addon/customize.xxe
> 
> 2. copy the XXE_install_dir/docs/configure/samples2/texmathtoimg shell
> script to ~/.xxe4/addon/
> 
> Both these files could not be found in the 4.6.0 distribution (the tar.gz)
> for Linux.
> 
> Did I misunderstand something?
> 
> Thanks in advance for any clarification,
> 
> Erik Leunissen.
> 
> 
> [*] All the images in section 4.1 (SVG, TIFF and BMP) were displayed as
> expected. Therefore, the plugins required for those image formats have
> been installed correctly.
> [**] Only the standard placeholder for an image is visible.
> 
> 
> 




 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to