Add LaTeX compile support with templates (memoir, academic)

This commit is contained in:
Solaria
2026-03-14 13:16:09 +00:00
parent c42556d147
commit 8693d2ffa9
5 changed files with 748 additions and 0 deletions
+15
View File
@@ -159,3 +159,18 @@ __all__ = [
"ExportOptions",
"ExportOptions",
]
def __getattr__(name):
if name == "LaTeXExporter":
from opus_orchestrator.latex_compile import LaTeXExporter
return LaTeXExporter
if name == "CompileOptions":
from opus_orchestrator.latex_compile import CompileOptions
return CompileOptions
if name == "export_to_latex":
from opus_orchestrator.latex_compile import export_to_latex
return export_to_latex
if name == "compile_pdf":
from opus_orchestrator.latex_compile import compile_pdf
return compile_pdf
raise AttributeError(f"module has no attribute {name!r}")