[texhax] change font for \verb

E. Krishnan ekmath at asianetindia.com
Tue Jul 12 04:04:00 CEST 2005


On Mon, 11 Jul 2005, Florian Knorn wrote:

> i'm using a alot of \verb|somecommand| in my document and i would like 
> to change the font ``somecommand'' is typeset in to courier (pcr).
> 
> i've tried the fancyverb package, but that only let's you customize 
> fonts for its *environments*..........

\usepackage{fancyvrb}

\CustomVerbatimCommand{\myverb}{Verb}{fontfamily=pcr}

\myverb|somecommand|


-- 
Krishnan






More information about the texhax mailing list