mirror of https://github.com/Nonannet/pyladoc.git
figure_scale argument to function .to_pdf(..) added
This commit is contained in:
parent
b3c2f5e384
commit
c4fdb5040a
|
@ -674,6 +674,7 @@ class DocumentWriter():
|
||||||
font_family: Literal[None, 'serif', 'sans-serif'] = None,
|
font_family: Literal[None, 'serif', 'sans-serif'] = None,
|
||||||
table_renderer: TRenderer = 'simple',
|
table_renderer: TRenderer = 'simple',
|
||||||
latex_template_path: str = '',
|
latex_template_path: str = '',
|
||||||
|
figure_scale: float = 1,
|
||||||
engine: latex.LatexEngine = 'pdflatex') -> bool:
|
engine: latex.LatexEngine = 'pdflatex') -> bool:
|
||||||
"""
|
"""
|
||||||
Export the document to a PDF file using LaTeX.
|
Export the document to a PDF file using LaTeX.
|
||||||
|
@ -689,7 +690,7 @@ class DocumentWriter():
|
||||||
Returns:
|
Returns:
|
||||||
True if the PDF file was successfully created
|
True if the PDF file was successfully created
|
||||||
"""
|
"""
|
||||||
latex_code = inject_to_template(self.to_latex(font_family, table_renderer),
|
latex_code = inject_to_template(self.to_latex(font_family, table_renderer, figure_scale),
|
||||||
latex_template_path,
|
latex_template_path,
|
||||||
'templates/default_template.tex')
|
'templates/default_template.tex')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue