Latex¶
-
class
astropy.units.format.
Latex
[source]¶ Bases:
astropy.units.format.Base
Output LaTeX to display the unit based on IAU style guidelines.
Attempts to follow the IAU Style Manual.
Attributes Summary
Methods Summary
format_exponential_notation
(val[, format_spec])Formats a value in exponential notation for LaTeX.
to_string
(unit)Convert a unit object to a string.
Attributes Documentation
-
name
= 'latex'¶
Methods Documentation
-
classmethod
format_exponential_notation
(val, format_spec='.8g')[source]¶ Formats a value in exponential notation for LaTeX.
- Parameters
- valnumber
The value to be formatted
- format_specstr, optional
Format used to split up mantissa and exponent
- Returns
- latex_stringstr
The value in exponential notation in a format suitable for LaTeX.
-