Skip to content

Commit 390f7e7

Browse files
committed
Update clean_latex script to properly handle new solution chapter title
Awful interdependencies all around
1 parent 56b7461 commit 390f7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/clean_latex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ process.stdin.on("data", function(chunk) {
4444
input += chunk;
4545
});
4646
process.stdin.on("end", function() {
47-
input = input.replace(/(\n\n\\end{Code})|(\n{3,})|(_why,)|\\chapter\{(Introduction|Solutions to the Exercises)\}|\\hyperref\[((?:[^\]]|\\_\{\})+)\]|\\index\{([^|}]+?)\\textbar\{\}see\{([^}]+)}}|\\textasciicircum\{\}\{([^\}]+?)\}|()/g,
47+
input = input.replace(/(\n\n\\end{Code})|(\n{3,})|(_why,)|\\chapter\{(Introduction|Exercise Hints)\}|\\hyperref\[((?:[^\]]|\\_\{\})+)\]|\\index\{([^|}]+?)\\textbar\{\}see\{([^}]+)}}|\\textasciicircum\{\}\{([^\}]+?)\}|()/g,
4848
function(all, codeSpace, manyBlanks, why, simplechapter, link, seeFrom, seeTo, superscript, bogusChars) {
4949
if (codeSpace)
5050
return codeSpace.slice(1);

0 commit comments

Comments
 (0)