Skip to content

Commit

Permalink
Added bugfix that allows AASTeX to work with siunitx.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Oct 30, 2023
1 parent 6321d5c commit 998dca4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aastex/_aastex.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ def __init__(
data=data,
)
self.escape = False
self.preamble.append(NoEscape(
"\\usepackage{savesym}\n"
"\\savesymbol{tablenum}\n"
"\\usepackage{siunitx}\n"
"\\restoresymbol{SIX}{tablenum}\n"
))
self.preamble.append(pylatex.Command("bibliographystyle", "aasjournal"))

def set_variable_quantity(
Expand Down

0 comments on commit 998dca4

Please sign in to comment.