On 02/09/10 09:28, Grant Edwards wrote:
I'm using asciidoc 8.6.1, and I can't seem to get the latex filter to
work.

Here is my test document (the latex stuff copied directly from
http://www.methods.co.nz/asciidoc/latex-filter.html:

---------------------------test1.txt------------------------------------
Here is an equation:

[latex]
$y = \int_0^\infty \gamma^2 \cos(x) dx$

This is the end of the document.
------------------------------------------------------------------------

Here is the command I'm using:

   $ asciidoc -a data-uri -a max-width=40em test1.txt
   asciidoc: WARNING: test1.txt: line 3: missing style: [paradef-default]: latex

And here is the HTML output:

---------------------------test1.html-----------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">

[...]

<body class="article" style="max-width:40em">
<div id="header">
</div>
<div id="content">
<div class="paragraph"><p>Here is an equation:</p></div>
<div class="paragraph"><p>$y = \int_0<sup>\infty \gamma</sup>2 \cos(x) 
dx$</p></div>
<div class="paragraph"><p>This is the end of the document.</p></div>
</div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
Last updated 2010-09-01 16:21:13 CDT
</div>
</div>
</body>
</html>
------------------------------------------------------------------------

There's no png file, and it doesn't look at all like what the docs say
it should look:

I ran the same command on the same file and it worked, the warning you got mean that asciidoc can't find the latex paragraph style in the filters/latex/latex-filter.conf configuration file. Run asciidoc with the --verbose option and check it's picking up the latex configuration file, should look like:

$ asciidoc -a data-uri -a max-width=40em -v t.txt
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/asciidoc.conf
asciidoc: reading: /home/srackham/.asciidoc/asciidoc.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/xhtml11.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/latex/latex-filter.conf asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/source/source-highlight-filter.conf asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/graphviz/graphviz-filter.conf asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/code/code-filter.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/mpl/mpl.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/filters/music/music-filter.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/t.conf
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/t.txt
asciidoc: writing: /home/srackham/projects/asciidoc/trunk/t.html
asciidoc: reading: /home/srackham/projects/asciidoc/trunk/lang-en.conf
asciidoc: t.txt: line 4: evaluating: {counter2:target-number}
asciidoc: t.txt: line 4: evaluating: {set2:target:t__1.png}
asciidoc: t.txt: line 4: filtering: "/home/srackham/projects/asciidoc/trunk/filters/latex/latex2png.py" -m -v -o "/home/srackham/projects/asciidoc/trunk/t__1.png" -
skipped: no change: /home/srackham/projects/asciidoc/trunk/t__1.png
asciidoc: t.txt: line 4: evaluating: {eval:os.path.splitext('t__1.png')[1][1:]}
asciidoc: t.txt: line 4: evaluating: {eval:os.path.join("/home/srackham/projects/asciidoc/trunk","","t__1.png")} asciidoc: t.txt: line 4: evaluating: {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "/home/srackham/projects/asciidoc/trunk/t__1.png"}


Cheers, Stuart


http://www.methods.co.nz/asciidoc/latex-filter__1.png


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

Reply via email to