Skip to main content

Questions tagged [minted]

{minted} is a package that facilitates expressive syntax highlighting in LaTeX using the powerful Pygments library. The package provides options to customize the highlighted source code output using {fancyvrb}. You'll need to install the Python package Pygments (e.g using pip install Pygments). If you want to run your file with pdflatex, then you need to do so with the -shell-escape flag, e.g. pdflatex -shell-escape myfile.tex

0 votes
1 answer
539 views

I want to submit a paper in e-informatica, so I am using their file, which is available here. But without any change, their file is not working. It generates the error Error message: minted v3+ ...
J AK's user avatar
  • 1
0 votes
0 answers
38 views

With or without escapeinside=\#\% in minted package, the result is the same. So, what is the meaning of escapeinside=\#\%? \documentclass{article} \usepackage{minted} \setminted{escapeinside=\#\%} \...
Y. zeng's user avatar
  • 2,395
1 vote
2 answers
119 views

Sometimes, the first comment in the HTML under the minted package sometimes reports non-comment in LaTeX. For example \documentclass{article} \usepackage{ctex} \usepackage{minted} \setminted{...
Y. zeng's user avatar
  • 2,395
3 votes
0 answers
55 views

With mint package, the setting of \setminted{breaklines=true, breakanywhere=true} will cause Chinese character duplicated in VScode but not in overleaf.com or texworks editor. For example, \...
Y. zeng's user avatar
  • 2,395
1 vote
0 answers
25 views

I have a \newtcblisting with minted syntax highlighting that I like and use for my SystemVerilog code. But I'd like to style it in such a way with three options Optional title. If provided it simply ...
bennynihon's user avatar
0 votes
0 answers
77 views

I'm trying to use https://github.com/joseareia/ipleiria-thesis template with Texstudio. However, I'm getting error after error. Now, when I try to run this with XeLaTeX compiler in TeXStudio it gives ...
user419916's user avatar
-1 votes
1 answer
78 views

Minted doesn't break pages on long lines. How do I fix this? MWE: % !TeX program = pdflatex % !TeX encoding = utf-8 %============================== \begin{filecontents*}[overwrite]{demo.tex} ...
Youra_P's user avatar
  • 1,640
2 votes
2 answers
89 views

How to reduce space before and after an inputminted? I'm trying this, but it doesn't work. How do I do it right? MWE: \documentclass{article} \usepackage[newfloat]{minted} \usepackage{xpatch} \...
Youra_P's user avatar
  • 1,640
1 vote
0 answers
48 views

Loading an orgmode-file as listings using minted causes problems regarding the coloring. It seems the double [[ are troublesome and the next closing ]] are not recognized. \begin{filecontents*}[...
lukascbossert's user avatar
5 votes
1 answer
131 views

I'm using the GoMono font to show code, and the minted package, all with pdflatex, with TeXLive 2025. But the double quotes in the source come out as close curly quotes (the 99 quotes). I have ...
Jim Hefferon's user avatar
  • 4,707
0 votes
0 answers
42 views

I'm currently using the mcexam package to build an exam. I need to insert some code blocks into my questions, but neither Minted nor Listing allows me to do so. Is there a way to do this? ...
1zumiSagiri's user avatar
2 votes
2 answers
103 views

This post is began with this issues in keytheorem: Here below, is a possible shorter code: \documentclass{ltxdoc} \usepackage{tcolorbox} \PassOptionsToPackage{cachedir=keythms-doc-minted}{minted} \...
Explorer's user avatar
  • 8,735
2 votes
1 answer
93 views

I have code blocks that contain both English and Persian text. I use XeLaTeX with xepersian package to handle Persian text and I can't change it, and for code blocks, minted is used. \documentclass[...
Shahriar's user avatar
  • 165
0 votes
0 answers
181 views

I want to use the package minted, but it fails for me when running the following command on Windows 11 out of TeXstudio, using a fresh installation of texlive/2025: pdflatex.exe -synctex=1 -...
Primicerius Aedifex's user avatar
0 votes
0 answers
56 views

We see that the line height and linewidth — in the Verbatim environment — is larger when the minted option breaklines is triggered: \documentclass{article} \usepackage{minted} \setminted{escapeinside=...
Grass's user avatar
  • 1,038

15 30 50 per page
1
2 3 4 5
74