TLDR or simply stated: how do I export equation/section numbers to HTML? The built-in function doesn't seem to do it.
Longer form of the question:
So I've been tinkering around with the built in stylesheets and the Export
command and I've noticed that in principle equation numbering should work.
When you look at PublicationDefault.nb
or Notebook.nb
stylesheets you'll notice the use of the IncludeCount
function, which looks like it should print a number into 'EquationNumberedLabel'
class of HTML code.
Here's what I'm talking about:
Cell[StyleData["EquationNumbered", StyleDefinitions -> StyleData["Equation"]],
ConversionRules:>{
"HTML" -> {{"", ""}, {"<table class='EquationNumbered'><tr><td>", Automatic,
IncludeCount[
"</td><td class='EquationNumberedLabel'>(`1`)</td></tr></table>",
"EquationNumbered"]}}}, ...]
I've tried exporting it with commands:
Export["test.html", SelectedNotebook[], "HTML"]
and
Export["test.html", SelectedNotebook[], "HTML", "MathOutput" -> "TeX"]
both don't seem to give me the equation numbers. Is this functionality really not intended to work?
Edit: You can also use the built in menu command from File->Save
. It still doesn't render numbers. It doesn't even render se