mirror of https://github.com/eyhc1/rendercv.git
cli: allow users to use any local latex command
This commit is contained in:
parent
8c4635ce7a
commit
752bafa568
|
@ -425,11 +425,14 @@ def cli_command_render(
|
||||||
str,
|
str,
|
||||||
typer.Argument(help="Name of the YAML input file."),
|
typer.Argument(help="Name of the YAML input file."),
|
||||||
],
|
],
|
||||||
use_local_latex: Annotated[
|
local_latex_command: Annotated[
|
||||||
bool,
|
str,
|
||||||
typer.Option(
|
typer.Option(
|
||||||
"--use-local-latex",
|
"--use-local-latex-command",
|
||||||
help="Use the local LaTeX installation instead of the RenderCV's TinyTeX.",
|
help=(
|
||||||
|
"Use the local LaTeX installation with the given command instead of the"
|
||||||
|
" RenderCV's TinyTeX."
|
||||||
|
),
|
||||||
),
|
),
|
||||||
] = False,
|
] = False,
|
||||||
):
|
):
|
||||||
|
@ -462,7 +465,7 @@ def cli_command_render(
|
||||||
progress.finish_the_current_step()
|
progress.finish_the_current_step()
|
||||||
|
|
||||||
progress.start_a_step("Rendering the LaTeX file to a PDF")
|
progress.start_a_step("Rendering the LaTeX file to a PDF")
|
||||||
r.latex_to_pdf(latex_file_path, use_local_latex)
|
r.latex_to_pdf(latex_file_path, local_latex_command)
|
||||||
progress.finish_the_current_step()
|
progress.finish_the_current_step()
|
||||||
|
|
||||||
progress.start_a_step("Rendering the Markdown file to a HTML (for Grammarly)")
|
progress.start_a_step("Rendering the Markdown file to a HTML (for Grammarly)")
|
||||||
|
|
Loading…
Reference in New Issue