{typewriter} is the term used for a "monospaced" font, that is, a font in which all characters have the same width.

learn more… | top users | synonyms (2)

5
votes
2answers
93 views

Line break in texttt

I would like latex to break long text inside \texttt{} that does not contain any whitespaces. Currently the text just runs off the page. The latex document is generated from a reStructureText ...
2
votes
2answers
115 views

How do I get \texttt with bold face in LaTeX?

This question was asked and answered 20 years ago but I wonder if there is a more modern solution today that does not involve quite so much hackery with overriding settings in font files. I want my ...
7
votes
3answers
258 views

Using many typewriter fonts in a single document

Reading topics about monospaced fonts, I found out that changing \tt font for the document requires replacing only one line in the preambule. For example, I only change the commented line ...
5
votes
2answers
112 views

Latex doesn't break spaces in \texttt correctly (Overfull \hbox)

I'm having some text in an \texttt environment and it turns out that latex breaks the lines in these environments sometimes correctly and sometimes not. A working minimum example ...
8
votes
1answer
148 views

Introduce random imperfections to typeset' text

LaTeX does an outstanding job in typesetting things perfectly (as if that needed to be said yet one more time...). Now, I'd like to introduce certain imperfections to my text to make it look like it ...
4
votes
2answers
99 views

How to escape curly braces in \texttt inside math mode?

In a previous question was answered how to escape curly braces within \texttt{}. On answer suggest using the fontenc package. \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \(a ...
5
votes
2answers
68 views

How to hyphenate automatically within \texttt when using T1 encoding and lmodern

I was looking for a way to enable hyphenation within \texttt. I found this answer and it seemed perfect: simple and useful to many people. I chose to enable hyphenation globally in \texttt and as ...
1
vote
0answers
78 views

Sans-Serif and Monospace font matching Gentium (pdflatex) [closed]

Since I could not find a typography / font SX I figure this question might be suited best here (also I want to use the fonts for a LaTeX document). I find the Gentium font visually attractive and I ...
4
votes
2answers
61 views

Strange output when writing \texttt{“avg”} in spanish

I'm using pandoc, which parses markdown into LaTeX. In this case I configured pandoc to use babel in spanish and wrote `"avg"` which is translated by pandoc as \texttt{"avg"}. When I do this I obtain ...
1
vote
0answers
52 views

Underscore not showing up in lstlisting [closed]

I have the following code: \begin{lstlisting} path/usearch -cluster_otus inp.fasta -otu_radius_pct distInPercent -otus outGroups.fasta -fastaout outpUSEARCH.fasta \end{lstlisting} The ...
1
vote
6answers
733 views

Greek typewriter font

Hello I want to use a greek typewriter font. So far I can't manage to find any font of that kind. Can someone tell me where I can find one?
5
votes
2answers
122 views

cmtt as font in texttt

I am using libertine fonts and I would like to change the texttt command to use the cmtt font. I tried : \renewcommand{\texttt}[1]{\fontfamily{cmtt}\selectfont{#1}} but it seems to switch the font ...
1
vote
1answer
99 views

>> is changed to » using beramono [duplicate]

I have the following piece of text in Latex: \texttt{List<List<Integer>>} and it was rendering properly. Then, I decided to use beramono as my typewriter font, and I have a problem: >> is ...
3
votes
0answers
73 views

Can I turn a variable width font into a fixed-width font?

I found a free ancient-typewriter font I'd like to use in a project, but the person who made it apparently traced some scanned outlines and poured them into a variable width truetype font. That is not ...
3
votes
0answers
68 views

Show whitespace characters in monospace environments

I need to render an ASCII file for printing in a way that removes ambiguity if (very unlikely) one decides to type it in and validate the signatures. Essentially, I need a monospace typesetter that ...
7
votes
3answers
165 views

Handling typesetting of plural class names

I'm sorry if this is the wrong stackexchange to ask in, but it seems to be the place where people care about typography :) I'm writing lecture notes on Android development, and I like to put class ...
5
votes
2answers
782 views

How to escape curly braces within \texttt{}

How can I escape curly braces within the \texttt{} environment? \texttt{ \{ } produces errors within my template, which can be found here: (link) I saw this question for square braces, but the ...
2
votes
2answers
381 views

Using consolas as the default teletype style font for listings package?

Is it possible to use consolas as the default teletype font to display code listings using the listings package? The default computer modern teletype font is too wide for my taste. Edit: I am using ...
3
votes
3answers
227 views

How to improve this text highlighting?

I want to highlight some letters which represent an amino acid sequence of a protein using different colors. The below code works fine, but the highlighted box is not fitting exactly the letters, as ...
2
votes
1answer
82 views

wordbreaking, justification and ttfamily

Edit I think this differes slightly from the linked "duplicate" as here are paragraphs formatted as typewriter, using \ttfamily while in the duplicate there are a lot of "common words" in ...
3
votes
1answer
96 views

LaTeX Macro for “code” style, underscore package and hyphenation

I'm looking for a way to nicely set code inside my document. I used \def\code#1{{\texttt{#1}}}, but it still allows the text to be hyphenated. To prevent that, I tried the advise from Prevent ...
1
vote
1answer
96 views

How can I automatically use typewriter font for one column of a tabular?

I'm trying to create a table where everything in one column is in typewriter font. In other words, it should perform like this: \begin{tabular} {| l | p{5cm} |} \hline \multicolumn{2}{|l|}{Sample ...
1
vote
0answers
73 views

Bad character code (-1) when i use monospace [closed]

I am working with mako, python and latex, and I want to have a monospaced font in my document! I am using this commands: \usepackage[scaled]{inconsolata} \usepackage[T1]{fontenc} ...
1
vote
1answer
43 views

Including brackets inside text function [duplicate]

I am having a programming function with name WorkFunction_(). I am trying to highlight this function using \texttt{}, something like \texttt{WorkFunction_()}. However this ends in error. Could anyone ...
0
votes
0answers
63 views

Skim 1.4.8 with Aquamacs : not opening Skim

I just started using Aquamacs and Skim but I cannot even launch Skim from Aquamacs when I compiled latex. I can use Adobe Acrobat Pro but I think I will get sync in Skim. I am using this .emacs file. ...
4
votes
2answers
118 views

long Hungarian umlaut in typewriter

An exercise from 'The TeXbook' asks to write "Pál Erdős" in typewriter type. The difficulty comes that \H cannot be used, as the typewriter font contains other symbols (namely a }) The proposed ...
2
votes
1answer
679 views

An acknowledgements page looks awesome

How do I to make this acknowledgements page font looks better? Any brilliant idea, please ? \documentclass[11pt,a4paper,english]{article} \usepackage[T1]{fontenc} ...
4
votes
3answers
262 views

All \ttfamily font change font size

\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,
4
votes
2answers
819 views

Change \ttfamily font for entire document

I'd like to change the teletype (\ttfamily) font that I'm using in my document. (I'm using the scrartcl class.) I've searched on stackexchange and Google, but all I can find are answers to how to ...
3
votes
0answers
108 views

Using 12 Pitch Monospaced Font in Latex

I am trying to create a Latex document and the specification for the same asks for a 12 pitch font. After reading a bit about "pitch" I understand that I should be using a monospaced font like ...
3
votes
1answer
95 views

non-texttt underscores in alltt with underscore package also enabled

The following gives me strange raised dots instead of underscores inside the alltt environment: \documentclass{article} \usepackage{alltt} \usepackage{underscore} \begin{document} ...
4
votes
2answers
286 views

Setting up `Ubuntu Monospace` font for a specific listing

My OS : Ubuntu 13.10 Latex version used : Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) In my report, I am using the following listing : \lstdefinestyle{BashInputStyle}{ language=bash, ...
5
votes
1answer
180 views

ConTeXt: How to achieve fine-grained font size control over the \type command?

In below minimum working example, I was able to configure the bodyfont in \setuptyping to 9.5pt. However, ConTeXt \setuptype documentation is not as detailed to explain me how I can achieve the same ...
4
votes
1answer
309 views

Consolas: Straight Quotes

I am using the listings-Package to display code. As I am using The Consolas Font as the Monotype-Default I expected straight quotes which isn't the case (check my MWE) ...
6
votes
2answers
364 views

Bold monospace font extra-large

I would like to print very large (e.g., font size 43) monospaced bold text. The methods I know don't seem to go together: \documentclass[10pt, a4paper]{article} \usepackage{anyfontsize} ...
3
votes
1answer
232 views

Hyphenation when using \verb command

I'm having a problem using \verb command. Usually when I want some verbatim font in the current line (not in a new paragraph) I use the \verb command, not the verbatim environment. So, when I use ...
7
votes
2answers
374 views

How to horizontally align all characters like a typewriter

I want to make a document that looks like an old top secret file written on a typewriter. The problem is that when I want to use a center environment, the alignment of the characters is off. Is there ...
13
votes
2answers
303 views

Typewriter in TikZ node

A small example: \documentclass{standalone} \usepackage{tikz} \begin{document} \tikz{\node[text width=1cm]{\tt totot\\t t t};} \tikz{\node{\parbox{1cm}{\tt totot\\t t t}};} \end{document} As you ...
8
votes
4answers
2k views

Writing a backslash in the \texttt environment

How do you go about writing a backslash in the /texttt environment? The $\backslash$ trick makes the font inconsistent. The reason I am asking is that I am writing some introductory computer science ...
5
votes
1answer
1k views

\newenvironment where all text is typewriter (like \texttt)

I'd like to have an environment that encloses all its content into the typewriter font as \texttt{} does. However, I do not want to use \texttt{} but an own environment, e.g. \begin{allintypewriter} ...
5
votes
2answers
1k views

how can we equalize the fonts of mathtt and texttt

I'm trying to use a mono-font in my text, but it seems that mono texts differ in character map in math and text environment. Is there any solution? \documentclass[fleqn]{article} ...
6
votes
2answers
402 views

Customise \textvisiblespace

The accepted answer in this question shows a neat redefinition of \textvisiblespace, which I like to use because it doesn't produce a warning in math mode. However, I use it with monospace in an ...
10
votes
4answers
415 views

A more wedge-like symbol instead of a caret in typewriter-font text?

I'm trying to typeset some computer code which involves a caret (for powers); for example \verb!x^3+x^2-1! The trouble here is that the caret produced is rather flat. I could use a wedge instead: ...
2
votes
1answer
497 views

Math symbols in tt font

I am trying to typeset some mathematics all in typewriter font; aiming to emulate the appearance of a particular computing environment. However, \mathtt in math mode doesn't appear to affect the ...
1
vote
0answers
56 views

LaTeX listings / email quoting [duplicate]

I've been trying to do someting with LaTeX. I have some emails that I want to insert in a document. I've searched all over the web but can't find a valid solution. What I want to do is to have those ...
4
votes
1answer
70 views

Longtable monospace font

How do I format all the text in a longtable to monospace. Adding \texttt{ before or after the \begin{longtable} and a } at the end gives me a Runaway argument? { \begin {longtable}{lll} ! Paragraph ...
9
votes
1answer
824 views

Middle English Yogh character

I was wondering if anyone knows of a package which supports the Middle English character yogh - that's Ȝ (U+021C) ȝ (U+021D). In TIPA, there is the character ezh - that's Ʒ (U+01B7) ʒ (U+0292). Ezh is ...
7
votes
3answers
694 views

verbatim and CJK

I'm not familiar with chinese characters and fonts. But I have to type some characters into a document. XeLaTeX may be an option, but I'm looking for a solution with pdflatex. Here is my MWE, which I ...
6
votes
1answer
1k views

How to type “Erdos”? [duplicate]

How to type "Erdos"? In paricular, the "O" . Thanks ahead.
2
votes
0answers
74 views

Broken display of 11pt typewriter text in Acrobat Reader [duplicate]

I set some all-caps words in my document as typewriter. Using scrartcl as documentclass, with a default fontsize of 11pt, yields a PDF that looks rather bad in Acrobat Reader. Here is an example: ...