asciidoctor / asciidoctor-latex

:triangular_ruler: Add LaTeX features to AsciiDoc & convert AsciiDoc to LaTeX
http://asciidoctor.org
Other
114 stars 26 forks source link

Equation number in LaTeX example does not produce expected result #70

Closed maverickwoo closed 7 years ago

maverickwoo commented 7 years ago

I am testing the examples in the examples directory, and I notice that the equation number in latex example (eqno-latex.adoc) does not seem to produce the expected result after running asciidoctor-latex -b html5 eqno-latex.adoc. I notice two differences.

  1. The equation number in the rendered equations are absent. It renders to an equation followed by a pair of paren () with no number inside. In HTML source:

    <table class="equation_table_style"><tr class="equation_row_style">
    <td class="equation_content_style";>
    \[
    a^2  + b^2 = c^2
    \]
    </td>
    <td class="equation_number_style">() </td> 
    </tr></table>
  2. The reference at the bottom of the file is rendered Note: In equation equation we defined a matrix. In HTML source:

    <p>Note:  In <span class='xref'><a href=#eq-matrix>equation equation</a></span> we defined a matrix.</p>

P.S. This is with respect to 1.5.0.17.dev installed from gem install asciidoctor-latex --pre, as instructed in https://github.com/asciidoctor/asciidoctor-latex#31-from-rubygems. I see the same behavior in both Chrome and Safari. Since I am very new to Ruby, I have not been able to test against the latest development version in GitHub yet. (Am I expected to not use the version on RubyGems.org?) Thanks!

maverickwoo commented 7 years ago

I resolved this issue by installing from GitHub (https://github.com/asciidoctor/asciidoctor-latex#from-github). So I am closing this issue now. Thanks!