The scribble-math package is great for rendering LaTeX style formatted expressions. When used in multiple documents (e.g. quizzes, exams, class notes, et c.) it is very convenient to save time and space requiring only one copy of the katex folder, and not a katex folder for each generated scribble document. One easy way to accomplish that (with the current scribble-math version) is changing the html file generated by the "Scribble HTML" button, in the following way:
[Relevant part of the] originally generated HTML content:
(function() {
document.write('<link rel="stylesheet" href="katex/katex.min.css" />');
})();(function() {document.write('<scr' + 'ipt type="text/javascript" src="katex/katex.min.js"></scr' + 'ipt>');})();
Modified HTML content: Just adding the prefix "../" in the paths for the files katex.min.css and katex.min.js, resulting as:
(function() {
document.write('<link rel="stylesheet" href="../katex/katex.min.css" />');
})();(function() {document.write('<scr' + 'ipt type="text/javascript" src="../katex/katex.min.js"></scr' + 'ipt>');})();
Observation: I do the above modification for each revision of the different documents (mainly quizzes, class notes) used in an academic semester.
Question: Would it be possible to add some optional parameter in the scribble-math package, in order to just add that prefix to the two file paths mentioned above? (I understand that other alternative solutions may be possible).
Thank you very much for your comments and support on this issue.
E. Comer
P. S. Formerly I asked for this functionality, but was unable to express it in the right terms. I apologize for that. Thank you to the scribble-math package developer for this very useful and important package for creating mathematically oriented documents.