gpoore / minted

minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
1.74k stars 126 forks source link

Is it possible to `/inputminted` a whole github repository or a whole directory? #369

Closed vincint-skywalker closed 1 year ago

vincint-skywalker commented 1 year ago

Is it possible to /inputminted a whole github repository or a whole directory?

gpoore commented 1 year ago

LaTeX doesn't have a built-in way to access remote files or work with git repos. And there isn't globbing to process entire directories (but you can use \ShellEscape to try to build your own).

You might consider writing something like a Python or shell script that puts all the files you want in a single directory, then creates a .tex file that has \inputminted for each of these files. Then you could \input that .tex file in your main document.