from pyexlatex.models.item import MultiOptionSimpleItem, SimpleItem
from pyexlatex.models.sizes.textsizes import TextSize
[docs]class DeclareFloatFont(MultiOptionSimpleItem):
name = 'DeclareFloatFont'
[docs] def __init__(self, relative_size_int: int):
self.size_def = TextSize(relative_size_int)
super().__init__(self.name, self.size_def.name, self.size_def)
[docs]class FloatSetup(SimpleItem):
name = 'floatsetup'
[docs] def __init__(self, targeted_float: str, options: str):
super().__init__(self.name, options, pre_modifiers=f'[{targeted_float}]')