Skip to content

how do tectonic implement the "auto download" feature? #717

@batkiz

Description

@batkiz

Thanks for this amazing software!

For some reasons(proxy and shell-escape), I have to use a regular LaTeX distribution. The distribution I use is TinyTeX, but it would often miss packages, so I really miss the auto-download feature in tectonic. So I'd like to make my own tool to get an auto-download experience for TinyTeX.

At first, I just extracted all the packages from \usepackage[options]{pkg}, \RequirePackage[option list]{package name}[release date] and \RequirePackageWithOptions{package name}[release date] command, and do a simple tlmgr install <pkgs list> (TinyTeX is based on TeX Live), but I met problems soon: the name in \usepackage[options]{pkg} is not the name tlmgr install use, for example, graphicx is a part of graphics package, I have to run tlmgr install graphics but not tlmgr install graphicx for this package.

In a word, I want to know how tectonic implements this feature. I tried reading the source code, but I'm not familiar with rustlang, can't find where it is :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions