Tag Info

New answers tagged

5

If you want to run a test document which includes the typewriter font alongside other styles (e.g. to test how well a particular typewriter font works with a serif used for body text) or you just don't like typing, this example provides a couple of commands for convenience: \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} ...


6

You can just use the font family without making it the default. For the packages you need to check their documentation the name of the font family used, then use it in the same way. \documentclass{article} \usepackage[T1]{fontenc} \begin{document} {\fontfamily{cmtt}\selectfont abcdef 123} {\fontfamily{cmvtt}\selectfont abcdef 123} ...


4

Because LaTeX doesn't hyphenate words that are typeset in "teletype" font (aka typewriter font, monospaced font), you may need to give up on full justification of the paragraph in question. Instead, you may wish to typeset it in \raggedright mode. To keep the scope of \raggedright local to just one paragraph, be sure to encase it in curly braces, making sure ...


8

LaTeX doesn't hyphenate tt fonts, which makes it hard to set the paragraph. You could use sloppypar to allow white space to stretch more to compensate, or you could reset the hyphen for the tt font (which is a global change, affecting tt for the rest of the document). \documentclass{scrartcl} \begin{document} \section{Test1} This is some text text and ...



Top 50 recent answers are included