minted
minted copied to clipboard
minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
## Problem As stated in the title, filenames with commas in them `,` seem to break compilation (at least on Windows with MikTeX using pdflatex.exe as the compiler) ## Reproduction...
Would be great to have an ability to do this: ``` \documentclass{article} \usepackage{minted} \mintedmacro{foo}{framesep=6pt,framerule=1pt} \newminted[abc]{text}{foo,rulecolor=red,frame=rightline} \newminted[xyz]{text}{foo,rulecolor=gray,frame=leftline} \begin{document} \begin{xyzcode} Hello, world! \end{xyzcode} \end{document} ``` Simply put, the newly defined "macro" `foo`...
Consider the following piece of code. ``` \documentclass[12pt,twoside,a4paper]{scrartcl} \usepackage[margin=.8in,footskip=0.25in]{geometry} \usepackage{fontspec} \usepackage{amsmath} \usepackage{minted} \usepackage{xcolor} \begin{document} \title{test} \maketitle \pagecolor{gray!10} \begin{minted}[linenos=true,numberblanklines=false,obeytabs=true,breaklines=true,style=manni ,mathescape=true,framesep=.8cm]{c} // this is fine $f=g$ // matrix rendering issue $det=ae-bd$ of...
Hi, First of all, great work on minted, thank you so much for it. It's really blowing my mind! And it works so flawlessly on Overleaf. I just have one...
By default, `pygments` puts highlighted tex codes in `Verbatim` environment. This is configurable by CLI option `-P envname=` (see related [doc of `pytments`](https://pygments.org/docs/formatters/#LatexFormatter)), and packages like `tcolorbox` seem to need...
When running the following document with `xelatex`, I get an error. Document: ``` \documentclass{article} \usepackage{minted} \usepackage{madoko2} \begin{document} \section{{\mdfontsize{10pt}}Section}} \end{document} ``` Error: ``` ! Use of \\bookmark doesn't match its definition....
If you want to cite something (via biber and biblatex) in the source code's commentaries, the \cite-command works fine: \begin{minted}[escapeinside=||,texcomments]{java} public int getRandomInt(int max) { /* This method selects a...
Hi, I've troubles having line breaks when using the lexer `text` in minted. The same sentence is not broken at the same place, when using `python` or `text` language, and...
I would like to use a GitHub action to compile LaTeX with minted. I tried the following docker image : ``` FROM texlive/texlive:latest USER root RUN apt update -y --allow-releaseinfo-change...
Hi, So, I was playing around with the prolog lexer of pygments and try to extend it with callbacks in order to highlight special tokens differently. The weird thing is...