Skip to content

Commit

Permalink
Added aastex.LeftFig and aastex.RightFig classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Oct 31, 2023
1 parent 38950bb commit b023f87
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aastex/_aastex.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"Subsubsection",
"FigureStar",
"Fig",
"LeftFig",
"RightFig",
"Document",
"NoEscape",
"Package",
Expand Down Expand Up @@ -304,6 +306,14 @@ def __init__(
)


class LeftFig(Fig):
pass


class RightFig(Fig):
pass


class Document(pylatex.Document):
def __init__(
self,
Expand Down
28 changes: 28 additions & 0 deletions aastex/_tests/test_aastex.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,34 @@ class TestFig:
pass


@pytest.mark.parametrize(
argnames="a",
argvalues=[
aastex.LeftFig(
file=pathlib.Path("foo.pdf"),
width=r"\textwidth",
caption="test caption",
),
],
)
class TestLeftFig:
pass


@pytest.mark.parametrize(
argnames="a",
argvalues=[
aastex.RigthFig(
file=pathlib.Path("foo.pdf"),
width=r"\textwidth",
caption="test caption",
),
],
)
class TestRightFig:
pass


@pytest.mark.parametrize(
argnames="a",
argvalues=[
Expand Down

0 comments on commit b023f87

Please sign in to comment.