Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using minted to format code in a book. Except for the bw theme, I only see colored styles, which is nice for producing a PDF, but not ideal for printing in black & white.

Is there a clean black & white style I can use (probably something resembling what algorithmicx produces) for pygments/minted which I could use for the printable version of the book?

share|improve this question
    
You can try \usepackage[gray]{xcolor} –  Marco Daniel May 29 '12 at 16:00
    
That works @MarcoDaniel, but it doesn't make text bold like algorithmicx does. –  ℝaphink May 29 '12 at 18:31

1 Answer 1

up vote 4 down vote accepted

Marco's solution is probably the nicest one:

\usepackage[gray]{xcolor}

The reason I was not getting bold text was that I only loaded Inconsolata and not Inconsolata Bold. I now set up my mono font like this:

\setmonofont[Scale=0.9,BoldFont={Inconsolata Bold}]{Inconsolata}

and the result is fine (using the default style):

black and white code listing

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.