Skip to content

Commit

Permalink
Set aastex.Abstract.escape to False by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Oct 28, 2023
1 parent 97dd56b commit 0bab416
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 16 additions & 1 deletion aastex/_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,22 @@ def dumps(self):


class Abstract(pylatex.base_classes.Environment):
pass

def __init__(
self,
*,
options: None | str | list[str] = None,
arguments: None | str | list[str] = None,
start_arguments: None | str | list[str] = None,
**kwargs,
):
super().__init__(
options=options,
arguments=arguments,
start_arguments=start_arguments,
**kwargs,
)
self.escape = False


class Document(pylatex.Document):
Expand Down
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Here is a simple example showing some of the basic features of :mod:`aastex`.
author = aastex.Author('Roy T. Smart', msu)

abstract = aastex.Abstract()
abstract.escape = False
abstract.append("Some text summarizing the article. ")
abstract.append(r"\lipsum[1-1]")

Expand Down

0 comments on commit 0bab416

Please sign in to comment.