Mercurial > octave
changeset 22307:3732bee69510
publish.m: math formatting prevention for more than nine formulas.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 16 Aug 2016 16:57:42 +0200 |
parents | 2cd1afd0f12f |
children | b756cea4fdea |
files | scripts/general/publish.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/publish.m Tue Aug 16 16:23:00 2016 +0200 +++ b/scripts/general/publish.m Tue Aug 16 16:57:42 2016 +0200 @@ -829,7 +829,7 @@ str = regexprep (str, '\|([^|$_*]*)\|', formatter ("monospaced", "$1")); until (strcmp (str, oldstr)) ## Restore inline "$" and block "$$" LaTeX math - for i = 1:length(math_cstr) + for i = length(math_cstr):-1:1 str = strrep (str, ["PUBLISHMATH", num2str(i)], math_cstr{i}); endfor ## Replace special symbols