# Tag Info

## New answers tagged minted

3

Edit: According to OP the missing “s” was just a typo here in question (but made twice then …). The pygmentize.cmd is never found because of a typo you did in the Windows path – you forgot an “s” at the very end, it’s C:\Python27\Scripts. BTW: When pygmentize.exe is really also in C:\Python27\Scripts you do not need pygmentize.cmd at all as long as it is ...

1

I guess answering my own question is pretty ugly, but following some exchanges with David, I just found a way to solve my problem above. I just force LaTeX to put the float on the next page, i.e. using specifier [p!] %\afterpage{\clearpage} % No longer needed \begin{listing}[p!] % Force float on next page ...

2

I encountered this error today as well. For me the key was to make sure to use correct font encoding: \usepackage[T1]{fontenc} The default encoding (using pdfLatex) produced £-symbols.

1

Use two environments: \documentclass[12pt]{beamer} \usepackage{minted} \newminted{csharp}{bgcolor=gray!25,fontsize=\footnotesize,mathescape} \begin{document} \begin{frame}[fragile] \begin{csharpcode} public class Objet { public int Attr1 { get; set; }; \end{csharpcode} \pause\vspace{-2pt} \begin{csharpcode} public int Attr2 { get; ...

2

Put the code in an external file and use inputminted with different start and end lines. Use the standard frame selection tokens for beamer.

2

If you want all minted environments to be centered and you don't need the Verbatim environment (provided by fancyvrb) for other purposes, then \documentclass{article} \usepackage{lipsum} % just for the example \usepackage{minted} \RecustomVerbatimEnvironment{Verbatim}{BVerbatim}{} \renewcommand{\figurename}{Listing} \begin{document} \lipsum[2] ...

2

your minipage makes no sense. Use it this way: \documentclass{article} \usepackage{minted} \begin{document} \begin{figure}[thp] \centering \begin{minipage}{0.4\textwidth} \begin{minted}{prolog} somePredicate(A, B) :- arbitraryPredicate(A), anotherPredicate(B). \end{minted} \end{minipage} \caption{My Prolog Predicate}\label{lst:firstListing} ...

Top 50 recent answers are included