Skip to content

Commit

Permalink
fix sqrt preprocessing lukas-blecher#135
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-blecher committed Apr 25, 2022
1 parent 8635724 commit 857e6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pix2tex/dataset/preprocessing/preprocess_latex.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ groupTypes.array = function(group, options) {
groupTypes.sqrt = function(group, options) {
var node;
if (group.value.index) {
norm_str = norm_str + "\\sqrt [ " + group.value.index + " ] ";
norm_str = norm_str + "\\sqrt [ ";
buildExpression(group.value.index.value, options);
norm_str = norm_str + "] ";
buildGroup(group.value.body, options);
} else {
norm_str = norm_str + "\\sqrt ";
Expand Down

0 comments on commit 857e6a6

Please sign in to comment.