\documentclass[11pt]{book}
This code shows default font size.
I want to change font size all \ttfamily font in document (only for \ttfamily font). Other fonts not change.
How can I do?
Thanks,
fontsizetypewriter
\documentclass[11pt]{book}
This code shows default font size.
I want to change font size all \ttfamily font in document (only for \ttfamily font). Other fonts not change.
How can I do?
Thanks,
Best Answer
You can update the definition of
\ttfamily
to include the font changes that you need. For example, below\ttfamily
has been updated to always use\LARGE
(say). Here is the default definition of\ttfamily
fromlatex.ltx
:Here is an updated version in the form of a minimal example:
The above example also shows why this should not be done.