Text FormattingText font appears differently when using \verb

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
thefleche
Posts: 5
Joined: Mon Nov 08, 2010 5:56 pm

Text font appears differently when using \verb

Post by thefleche »

Hi,
when I use the \verb command, the text inside it changes font.

I would like it if the text font appears as normal font.

Thanks

Code: Select all

\begin{tabular}{ll} 
Impact testing exemption: \\\\
\hspace{0cm}\verb| Per UG-20(f) -- Carbon steels with P#=1, MDMT above -20F |\\
\hspace{.5cm}\verb| To 1", for Fig.ICS-66, curves B,C & D |

\end{tabular} 
Last edited by thefleche on Wed Nov 10, 2010 10:26 pm, edited 1 time in total.
thefleche-->

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Text font appears differently when using \verb

Post by Stefan Kottwitz »

Hi thefleche,

\verb switches to a typewriter font. But you may change the default typewriter font by

Code: Select all

\renewcommand*{\ttdefault}{\familydefault}
Stefan
LaTeX.org admin
User avatar
thefleche
Posts: 5
Joined: Mon Nov 08, 2010 5:56 pm

Re: Text font appears differently when using \verb

Post by thefleche »

Thank You!!
Works
!
thefleche-->
Post Reply