Tag Info

New answers tagged

1

Use \onecolumn right after \appendices; if needed, you can switch back using \twocolumn (each of those commands starts a new page): \documentclass{IEEEtran} \usepackage{lipsum} \usepackage[]{minted} \begin{document} \section{Introduction} \lipsum \section{Material} \lipsum \appendices \section{BaudRate} ...


2

I believe it's a bug in minted, because the internal minted@colorbg environment, used when the bgcolor option has been given, doesn't add vertical space above and below. Here's a proposed fix: \documentclass{article} \usepackage{minted} \usepackage{etoolbox} \usepackage{color} \usepackage{lipsum} \definecolor{light-gray}{rgb}{0.9,0.9,0.9} ...


4

I don't know why you want this but as such, minted is separated well enough as in \documentclass{article} \usepackage{minted} \usepackage{lipsum} \begin{document} \lipsum*[1] Some text \begin{minted}{c} int main() { printf("hello, world"); return 0; } \end{minted} Some text \lipsum*[2] \end{document} However, if you insist, here is a way. ...


4

I think, the core of the question is: Should I use (a) the macros provided by the minted library of tcolorbox, (b) the base tcolorbox package without the minted library but with the macros from the minted package. The answer will depend on your special application and will also be opinion-based to a certain degree, but I will try to give the pros and ...


1

Unfortunately, this is not possible. Currently, Pygments (which minted uses internally) performs all coloring based on styles, not based on color information passed to it. There has been a feature request for something like this since 2012, but it doesn't appear that any progress has been made. You have a couple of options. You could look through the ...


1

It seems that minted uses \colorbox for colored background, which is supported by tex4ht, we only need to configure it to support DarkGray color. Create file hello.cfg: \Preamble{xhtml} \Configure{HColor}{DarkGray}{\#1A1A1A} \begin{document} \EndPreamble and compile with htlatex test.tex "hello" "" "" -shell-escape \#1A1A1A is hexadecimal value of ...


4

It's not perfect (I personally don't like how the code cuts mid tag) but it should do the job. Basically, I unpacked the tcblisting environment and added a multicols environment. \documentclass{report} \usepackage{tcolorbox} \tcbuselibrary{minted} \usepackage{blindtext} \usepackage{multicol} % added package \begin{document} \blindtext ...



Top 50 recent answers are included