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