Skip to content

Commit

Permalink
Merge pull request #1249 from brian-team/latex_units
Browse files Browse the repository at this point in the history
Remove incorrect space in LaTeX representation of units
  • Loading branch information
mstimberg committed Oct 30, 2020
2 parents 2e76d8d + a34704c commit 1660f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/units/fundamentalunits.py
Expand Up @@ -1938,7 +1938,7 @@ def create_scaled_unit(baseunit, scalefactor):
scale = _siprefixes[scalefactor] + baseunit.scale
if scalefactor == 'u':
scalefactor = r'\mu'
latexname = r'\mathrm{' + scalefactor + '}' + r'\,' + baseunit.latexname
latexname = r'\mathrm{' + scalefactor + '}' + baseunit.latexname

u = Unit(10.0**scale, dim=baseunit.dim, name=name, dispname=dispname,
latexname=latexname, scale=scale)
Expand Down

0 comments on commit 1660f35

Please sign in to comment.