mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-19 04:33:26 +02:00
19 lines
461 B
Python
19 lines
461 B
Python
from docutils.writers.latex2e import Writer, Table, LaTeXTranslator
|
|
|
|
|
|
class LatexWriter(Writer):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.translator_class = DNDTranslator
|
|
|
|
|
|
class DNDTable(Table):
|
|
pass
|
|
|
|
|
|
class DNDTranslator(LaTeXTranslator):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
self.settings.table_style = ["borderless"]
|
|
self.active_table = DNDTable(self, "supertabular")
|