You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't overwrite existing entries in the references map. This will allow extensions to add entries to the references map that aren't clobbered by the default registration.
if ::Array === value@references[:ids][value[0]] ||= (value[1] || '[' + value[0] + ']')else@references[:ids][value] ||= '[' + value + ']'end
For maximum control, it might be best to add an additional parameter to the register method to force an overwrite. The default value of this parameter should be false.
The text was updated successfully, but these errors were encountered:
automatic numbering of theorems, equations, etc. per
the suggestion of @mojavelinux. (Works like a charm, 25+
lines of bad code eliminated).
HOWEVEr, I am stuck on lines 121-125 of converter.rb. In line 123 I edit
the document.references map. The changes made are confirmed
in the logging statement of line 124. However, when the next
equation, theorem, etc is encountered, the new information
added is overwritten with default information. I must be
executing the code of line #123 at the wrong moment. However,
I don't see where else I can excecute #123.
Run
$ asciidoctor -r asciidoctor-latex -a stem=latexmath -b html try-out/eqno-latex.adoc
in the root of this repo to see the problem.
mojavelinux
added a commit
to mojavelinux/asciidoctor
that referenced
this issue
Oct 6, 2015
Don't overwrite existing entries in the references map. This will allow extensions to add entries to the references map that aren't clobbered by the default registration.
For maximum control, it might be best to add an additional parameter to the register method to force an overwrite. The default value of this parameter should be false.
The text was updated successfully, but these errors were encountered: