diff --git a/lib/util/latex.js b/lib/util/latex.js index e1e0916c7..5372d98c6 100644 --- a/lib/util/latex.js +++ b/lib/util/latex.js @@ -69,6 +69,12 @@ function expandTemplate(template, name, args) { args.forEach(function (arg, index) { template = template.replace(RegExp('%' + index + '%', 'g'), '{' + arg + '}'); }); + + //replace %*% with a comma separated list of all arguments + template = template.replace('%*%', args.map(function (arg) { + return '{' + arg + '}'; + }).join(',')); + return template; }