tomduck/pandoc-eqnos

Feature Request: Forced numbering of all display equations in a document.

stroobandt opened this issue · 1 comments

This is a request to add a eqnos-forced configuration setting which would force the numbering of all display equations in a document, even when these equations have no ID for cross-referencing.

For (X)HTML, I circumvented this limitation by suppressing the pandoc-eqnos numbering using CSS and creating my own numbering for all display equations with MathJax in the pandoc XHTML template. The respective numbers created by pandoc-eqnos and MathJax are exactly the same. This might help other people out, whilst waiting for this feature to be implemented.

span.eqnos-number {display: none;}
$if(math)$
    $math$
    <script type="text/x-mathjax-config">
        // https://docs.mathjax.org/en/v2.7-latest/options/hub.html
        // https://docs.mathjax.org/en/v2.7-latest/options/input-processors/TeX.html
        // https://docs.mathjax.org/en/v2.7-latest/options/HTML-CSS.html
        MathJax.Hub.Config({
            TeX: {
                equationNumbers: {autoNumber: "all"}
                 }
            });
    </script>
$endif$