{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)

3
votes
0answers
12 views

Typewriter text without spaces not wrapping in LyX

I'm using typewriter text to highlight program code within my writing, however, long method names without spaces don't seem to wrap to the next line (see Figure 1). It is possible to make typewriter ...
0
votes
1answer
55 views

Type small caps, raised text in Latex

I want to write the string "Uppaal" in Latex in this form: How can i made it ?
2
votes
1answer
58 views

Noindent for a paragraph with typewriter font set

I like to use noindent for a paragraph that has its font as typewriter -tt.The code snippet is, \noindent {\tt \noindent [cloud-user@sgmanager1 ~]\$ sudo yum list | grep kumo\\ ...
1
vote
0answers
40 views

Make \usepackage{polski} and \texttt work in the same document

I would like to use Polish language in a part of my Acknowledgements. In order to do it I introduced in the preamble: \usepackage{polski} \usepackage[polish, english]{babel} And later on, to ...
2
votes
1answer
87 views

To escape underscore without \verb and \texttt [duplicate]

I know this thread which implementation is about verb and \texttt such that you have something inside the phrase. I do not want to change the phrase at all. I want to have this as text in my ...
13
votes
2answers
472 views

Slashed zero, the “right” way?

The digit 0 in our documents, such as this one (external PDF link), is slashed “the wrong way” in source code blocks (lstlisting). How can we get it slashed “the right way” (from bottom-left to ...
0
votes
0answers
26 views

Does not break word into parts for a new paragraph [duplicate]

When I use \texttt{}, it does not break it into parts for new paragraph. Do you have any idea?
6
votes
5answers
132 views

Different fonts in same math environment

I would like to display text like 0^3 1^5 ... with the exponents (3 and 5 in the example, can be any number) written in usual math, but the bases (0 and 1) in typewriter font. I tried various ...
13
votes
2answers
256 views

Typewriter apostrophe in typewriter font for apostrophe symbol

Is there a way of producing a typewriter apostrophe (U+0027) in a typewriter font when an apostrophe symbol is entered in .tex document? To give an example, I’d like \texttt{'hello'} to produce ...
3
votes
1answer
71 views

How to define a fraction of tt font variables?

I am trying to define something like $\frac\mathtt{A\_B}\mathtt{C\_D}$ to get a fraction of two typewriter-font variables (inline math preferred), but I keep getting errors such as "missing } ...
5
votes
2answers
403 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 ...
3
votes
2answers
681 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 ...
9
votes
3answers
559 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
557 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 ...
9
votes
1answer
246 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
195 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
86 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
137 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
80 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
90 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
962 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
201 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
127 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
84 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 ...
4
votes
2answers
125 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
171 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 ...
6
votes
2answers
2k 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
801 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
255 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
132 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
156 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
136 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
89 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
48 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
76 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
153 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
906 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
387 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,
5
votes
2answers
2k 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
144 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
155 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
376 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
203 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
412 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
424 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
283 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
478 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
369 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 ...
9
votes
4answers
3k 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 ...
6
votes
1answer
2k 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} ...