Installing minted, syntax highlight for LaTeX
Minted provides syntax highligh for LaTeX, I had to install it a couple times, so I better keep the notes of how to do it:
Basides LaTeX modules, minted depends upon pygments, instalable on Debian-based distros with:
1 |
|
or using PIP
1 |
|
In order to install minted itself we've got to create a ~/texmf/tex/latex/ directorio, there we'll download the source code
1 |
|
after this, enter the source subdirectory and run
1 |
|
Minted is already installed, but it also depends on the following packages:
- keyval
- fancyvrb
- xcolor
- float
- ifthen
- calc
- ifplatform
Debian-based distributions latex packages seem to include almos everyone, only lasting ifplatform, to install it we've got to download ifplatform.dtx and ifplatform.ins from the CTAN, move the files to a ~/texmf/tex/latex/ subdirectory (like ifplatform) and like minted run:
1 |
|
To wrap up, run
1 |
|
And it's done :)