diff --git a/javascript/latexContent.js b/javascript/latexContent.js index 9ece71c5e..60646222f 100644 --- a/javascript/latexContent.js +++ b/javascript/latexContent.js @@ -887,7 +887,7 @@ export const ending = ` %\\shipoutAnswer \\newpage -\\markboth{References}{References} +\\renewcommand{\\chaptermark}[1]{\\markboth{References}{References}} \\input{./others/97references97.tex} \\newpage diff --git a/package.json b/package.json index 2524c82a0..f930b9d08 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ }, "homepage": "https://sourceacademy.org/sicpjs", "devDependencies": { - "@babel/node": "^7.24.6", - "@babel/core": "^7.24.6", - "@babel/preset-env": "^7.24.6", + "@babel/node": "^7.24.7", + "@babel/core": "^7.24.7", + "@babel/preset-env": "^7.24.7", "fs-extra": "^11.2.0", "http-server": "^14.1.1", "husky": "^8.0.3", diff --git a/static/img_javascript/ex-3-13-sol.png b/static/img_javascript/ex-3-13-sol.png new file mode 100644 index 000000000..f704a36e4 Binary files /dev/null and b/static/img_javascript/ex-3-13-sol.png differ diff --git a/static/img_javascript/ex-3-14-sol-1.png b/static/img_javascript/ex-3-14-sol-1.png new file mode 100644 index 000000000..2134056b0 Binary files /dev/null and b/static/img_javascript/ex-3-14-sol-1.png differ diff --git a/static/img_javascript/ex-3-14-sol-2.png b/static/img_javascript/ex-3-14-sol-2.png new file mode 100644 index 000000000..e1cc3c81f Binary files /dev/null and b/static/img_javascript/ex-3-14-sol-2.png differ diff --git a/static/img_javascript/ex5-1-solution-1.png b/static/img_javascript/ex5-1-solution-1.png new file mode 100644 index 000000000..8edb00e56 Binary files /dev/null and b/static/img_javascript/ex5-1-solution-1.png differ diff --git a/static/img_javascript/ex5-1-solution-2.png b/static/img_javascript/ex5-1-solution-2.png new file mode 100644 index 000000000..853c686fe Binary files /dev/null and b/static/img_javascript/ex5-1-solution-2.png differ diff --git a/xml/chapter1/section1/subsection6.xml b/xml/chapter1/section1/subsection6.xml index 25accfdf2..460b22dfd 100644 --- a/xml/chapter1/section1/subsection6.xml +++ b/xml/chapter1/section1/subsection6.xml @@ -231,7 +231,9 @@ abs(-5); alternative-expression and returns its value as the value of the conditional. conditional expressionnon-boolean value as predicate - Conditionals in full JavaScript accept any value, not just a boolean, as the result of evaluating + Conditionals +