Skip to content

Commit 9f544df

Browse files
authored
Merge pull request python-quantities#189 from drammock/fix-backslash-escape
Fix backslash escapes
2 parents 6ee561e + 91277c8 commit 9f544df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quantities/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
>>> mass = 50 * pq.kg
221221
>>> weight = mass*g
222222
>>> print weight.dimensionality.latex
223-
$\mathrm{\\frac{kg{\\cdot}m}{s^{2}}}$
223+
$\\mathrm{\\frac{kg{\\cdot}m}{s^{2}}}$
224224
>>> weight.units = pq.N
225225
>>> print weight.dimensionality.latex
226226
$\\mathrm{N}$

quantities/markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def format_units_latex(udict,font='mathrm',mult=r'\\cdot',paren=False):
9999
'mathit', 'mathsf', and 'mathtt'.
100100
101101
Multiplication (*) are replaced with the symbol specified by the mult argument.
102-
By default this is the latex \cdot symbol. Other useful
102+
By default this is the latex \\cdot symbol. Other useful
103103
options may be '' or '*'.
104104
105105
If paren=True, encapsulate the string in '\left(' and '\right)'

0 commit comments

Comments
 (0)