see description in setup.py
texlive-latex-extra (for minted.sty
), python3-setuptools, python3-pygments, pip (Debian packages)
python-setuptools, python-pygments (Debian packages)
With pip:
- On a terminal, run
pip install git+https://github.com/affeldt-aist/ssrmint.git
With setuptools:
- set the "right" python in
Makefile
- type
make install
- check the style and the lexer have been installed:
pygmentize -L lexers
,pygmentize -L styles
in the LaTeX file, use:
- for the style:
\usemintedstyle{ssr}
(instead of, say,\usemintedstyle{emacs}
) - for the environment:
\begin{minted}{ssr} ... \end{minted}
- for inlined code:
\mintinline{ssr}{...}
to compile, use:
pdflatex -shell-escape
- first compile with the option
finalizecache
:\usepackage[finalizecache]{minted}
(with the option-shell-escape
and with ssrmint installed) - change the option to:
\usepackage[frozencache]{minted}
- ship the TeX files with the sub-directory
_minted-whatever
- you can now compile without the option
-shell-escape
and without ssrmint installed