Skip to content

Commit

Permalink
special characters count as LaTeX commands
Browse files Browse the repository at this point in the history
  • Loading branch information
laughinghan committed Apr 12, 2011
1 parent 8e5cfba commit 7a3c78f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ _.redraw = function() {
});
};

LatexCmds.sqrt = SquareRoot;
LatexCmds.sqrt = LatexCmds['√'] = SquareRoot;

function NthRoot(replacedFragment) {
SquareRoot.call(this, replacedFragment);
Expand Down
4 changes: 2 additions & 2 deletions src/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ LatexCmds.vartheta = //AMS and LaTeX
bind(Variable,'\\vartheta ','ϑ');

//Greek constants, look best in un-italicised Times New Roman
LatexCmds.pi = bind(NonSymbolaSymbol,'\\pi ','π');
LatexCmds.pi = LatexCmds['π'] = bind(NonSymbolaSymbol,'\\pi ','π');
LatexCmds.lambda = bind(NonSymbolaSymbol,'\\lambda ','λ');

//uppercase greek letters
Expand Down Expand Up @@ -273,7 +273,7 @@ BigSymbol.prototype = new Symbol; //so instanceof will work
LatexCmds.sum = LatexCmds.summation = bind(BigSymbol,'\\sum ','∑');
LatexCmds.prod = LatexCmds.product = bind(BigSymbol,'\\prod ','∏');
LatexCmds.coprod = LatexCmds.coproduct = bind(BigSymbol,'\\coprod ','∐');
LatexCmds.int = LatexCmds.integral = bind(BigSymbol,'\\int ','∫');
LatexCmds.int = LatexCmds.integral = LatexCmds['∫'] = bind(BigSymbol,'\\int ','∫');



Expand Down

0 comments on commit 7a3c78f

Please sign in to comment.