Skip to content

Commit 214b160

Browse files
authored
Merge pull request #343 from moble/escape_backslashes
Escape backslashes so that they make it to MathJax
2 parents a87974d + 24a1851 commit 214b160

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/plotly_js/fundamentals/latex/2015-04-09-latex.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@
1010
var trace1 = {
1111
x: [1, 2, 3, 4],
1212
y: [1, 4, 9, 16],
13-
name: '$\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}$',
13+
name: '$\\alpha_{1c} = 352 \\pm 11 \\text{ km s}^{-1}$',
1414
type: 'scatter'
1515
};
1616
var trace2 = {
1717
x: [1, 2, 3, 4],
1818
y: [0.5, 2, 4.5, 8],
19-
name: '$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$',
19+
name: '$\\beta_{1c} = 25 \\pm 11 \\text{ km s}^{-1}$',
2020
type: 'scatter'
2121
};
2222
var data = [trace1, trace2];
2323
var layout = {
2424
xaxis: {
2525
title: {
26-
text: '$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$'
26+
text: '$\\sqrt{(n_\\text{c}(t|{T_\\text{early}}))}$'
2727
}
2828
},
2929
yaxis: {
3030
title: {
31-
text: '$d, r \text{ (solar radius)}$'
31+
text: '$d, r \\text{ (solar radius)}$'
3232
}
3333
}
3434
};

0 commit comments

Comments
 (0)