Skip to content

Commit e09e104

Browse files
FSMaxBjosdejong
authored andcommitted
bitNot: Fix incorrect tilde in LaTeX output (#1302)
1 parent c81f0ea commit e09e104

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/latex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ exports.operators = {
8181
'dotPow': '.^\\wedge', // TODO find ideal solution
8282
'unaryPlus': '+',
8383
'unaryMinus': '-',
84-
'bitNot': '~', // TODO find ideal solution
84+
'bitNot': '\\~', // TODO find ideal solution
8585
'not': '\\neg',
8686
'multiply': '\\cdot',
8787
'divide': '\\frac', // TODO how to handle that properly?

test/function/bitwise/bitNot.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ describe('bitNot', function () {
6060

6161
it('should LaTeX bitNot', function () {
6262
const expression = math.parse('bitNot(4)')
63-
assert.strictEqual(expression.toTex(), '~\\left(4\\right)')
63+
assert.strictEqual(expression.toTex(), '\\~\\left(4\\right)')
6464
})
6565
})

0 commit comments

Comments
 (0)