-
Notifications
You must be signed in to change notification settings - Fork 78
Fix more backslash escapes #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -88,7 +88,7 @@ def format_units_latex(udict,font='mathrm',mult=r'\\cdot',paren=False): | |||
| ''' | ||||
| Replace the units string provided with an equivalent latex string. | ||||
|
|
||||
| Division (a/b) will be replaced by \frac{a}{b}. | ||||
| Division (a/b) will be replaced by \\frac{a}{b}. | ||||
|
|
||||
| Exponentiation (m**2) will be replaced with superscripts (m^{2}) | ||||
|
|
||||
|
|
@@ -100,7 +100,7 @@ def format_units_latex(udict,font='mathrm',mult=r'\\cdot',paren=False): | |||
| By default this is the latex \\cdot symbol. Other useful | ||||
| options may be '' or '*'. | ||||
|
|
||||
| If paren=True, encapsulate the string in '\\left(' and '\right)' | ||||
| If paren=True, encapsulate the string in '\\left(' and '\\right)' | ||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only one of the two errors on this line had been fixed python-quantities/quantities/markup.py Line 103 in 269d81e
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... but it does look like this one is actually fixed by #196 |
||||
|
|
||||
| The result of format_units_latex is encapsulated in $. This allows the result | ||||
| to be used directly in Latex in normal text mode, or in Matplotlib text via the | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has not been fixed yet
python-quantities/quantities/markup.py
Line 91 in 269d81e