Uploaded image for project: 'MathJax Macro'
  1. MathJax Macro
  2. MATHJAX-28

Support for formula rendering in HTML export

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 1.1.4
    • None
    • Unknown

    Description

      After installing MathJax extensions (on the creation date of this ticket latest v1.1.4), to learn about the functionality of this macro, the user visits the page MathJaxMacro that provides examples of usage.

      The user may need to export XWiki pages with text and formulas written using MathJax macro to HTML format.

      At the output of this, the user will receive a page with static files, however, if the HTML file is opened in a web browser, the formulas will not be displayed  as they are displayed in XWiki. The structure of it is

      <div class="row">
          <div
              id="xwikicontent"
              class="col-xs-12"
          >
              <p>
                  Example usage of the
                  &#123;&#123;mathjax}}
                  macro:
              </p>
              <p>
                  Normal Wiki text
                  followed by a formula
              </p>
              <div class="xwiki-mathjax">
                  \begin&#123;eqnarray} 1
                  &amp; = &amp; a x + b
                  y\label&#123;eq:first}
                  \\ 0 &amp; = &amp; c x +
                  d
                  y\label&#123;eq:second}
                  \end&#123;eqnarray}
              </div>
              <p>
                  Solving equation
                  <span
                      class="xwiki-mathjax"
                  >
                      \ref&#123;eq:second}
                  </span>
                  for
                  <span
                      class="xwiki-mathjax"
                  >
                      x
                  </span>
                  and substituting back
                  into equation
                  <span
                      class="xwiki-mathjax"
                  >
                      \ref&#123;eq:first}
                  </span>
                  yields
              </p>
              <div class="xwiki-mathjax">
                  \begin&#123;equation} y
                  =
                  \frac&#123;c}&#123;cb-ad}
                  \end&#123;equation}
              </div>
          </div>
      </div>
      

      It is clear from documentation that the current working method is to export to PDF where the formulas will be displayed, but if the XWiki page can be exported to HTML format, then the result should be the same as in PDF

      Attachments

        Activity

          People

            Unassigned Unassigned
            npetrenko Nikita Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: