Skip to content

v0.2.0

Compare
Choose a tag to compare
@tobiasraabe tobiasraabe released this 16 Apr 13:10
· 34 commits to main since this release
bbed260

Highlights

This release deprecates the old interface and imposes a more precise syntax. Now, a task looks like this

import pytask


@pytask.mark.latex(script="document.tex", document="document.pdf")
def task_compile_latex_document():
    pass

The script and the compiled file are explicitly specified via the keyword arguments of the decorator.

Compilations steps are now more modular and are hopefully extended soon to cover more steps than latexmk

from pytask_latex import compilation_steps as cs


@pytask.mark.latex(
    script="document.tex",
    document="document.pdf",
    compilation_steps=cs.latexmk(
        options=("--pdf", "--interaction=nonstopmode", "--synctex=1", "--cd")
    ),
)
def task_compile_latex_document():
    ...

You can find all information in the readme.

What's Changed

Full Changelog: v0.1.2...v0.2.0