LatexInline#
- class astropy.units.format.LatexInline(*args, **kwargs)[source]#
Bases:
Latex
Output LaTeX to display the unit based on IAU style guidelines with negative powers.
Attempts to follow the IAU Style Manual and the ApJ and AJ style guide.
Attributes Summary
Methods Summary
to_string
(unit[, fraction])Convert a unit to its string representation.
Attributes Documentation
- name = 'latex_inline'#
Methods Documentation
- classmethod to_string(unit, fraction=False)[source]#
Convert a unit to its string representation.
Implementation for
to_string
.- Parameters:
- unit
UnitBase
The unit to convert.
- fraction{False|True|’inline’|’multiline’}, optional
Options are as follows:
- unit
- Raises:
ValueError
If
fraction
is not recognized.