from typing import Optional
from pyexlatex.models.section.base import TextAreaMixin
from pyexlatex.models.item import SimpleItem
# TODO [#11]: better implementation of LaTeX boxes
#
# Update all of this after getting a better understanding of how boxes work and the syntax.
# See: https://en.wikibooks.org/wiki/LaTeX/Boxes
[docs]class BoxBase(TextAreaMixin, SimpleItem):
name = '<unimplemented, do not use BoxBase directly, use a subclass>'
[docs] def __init__(self, contents, size_str: Optional[str]):
super().__init__(self.name, contents, pre_modifiers=size_str, format_content=False)