texgit package

texgit makes files from repository accessible from within LaTeX.

Subpackages

Submodules

texgit.run module

Process a LaTeX aux file.

texgit.run.REQUEST_ARG_FILE: Final[str] = '\\@texgit@argFile'

the header for argument file requests

texgit.run.REQUEST_GIT_FILE: Final[str] = '\\@texgit@gitFile'

the header for git file requests

texgit.run.REQUEST_PROCESS: Final[str] = '\\@texgit@process'

the header for process result requests

texgit.run.RESPONSE_PATH: Final[str] = '@texgit@path@'

the response header for the path

texgit.run.RESPONSE_URL: Final[str] = '@texgit@url@'

the response header for the url

texgit.run.cmd_arg_file(base_dir, pm, command)[source]

Get an argument file.

Parameters:
Return type:

Generator[str, None, None]

Returns:

the answer

texgit.run.cmd_exec(base_dir, pm, command)[source]

Execute a command and capture the output.

Parameters:
Return type:

Generator[str, None, None]

Returns:

the answer

texgit.run.cmd_git_file(base_dir, pm, command)[source]

Get a file from git, maybe post-processed.

Parameters:
Return type:

Generator[str, None, None]

Returns:

the answer

texgit.run.run(aux_arg, repo_dir_arg='__git__')[source]

Execute the texgit tool.

This tool loads an LaTeX aux file, processes all file loading requests, and flushes the produced file paths back to the aux file.

Parameters:
  • aux_arg (str) – the aux file argument

  • repo_dir_arg (str, default: '__git__') – the repository directory argument

Return type:

None

texgit.version module

An internal file with the version of the texgit package.