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

4
votes
2answers
47 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
34 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
584 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
85 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
85 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
65 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
51 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
156 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
308 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
144 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
204 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
54 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
79 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
78 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
60 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
35 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
54 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
97 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
507 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
194 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
486 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
84 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
68 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
236 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
168 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
219 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
308 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
207 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
324 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
282 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
1k 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 ...
4
votes
1answer
861 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
979 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
316 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
383 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
424 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
53 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
68 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
728 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
565 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
73 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: ...
2
votes
2answers
2k views

\ttfamily is too bold for me

I use the following settings for my listings: \lstset{ %basicstyle=\ttfamily\tiny, % small basicstyle=\ttfamily\scriptsize, % middle } But the font in the listings is too bold for me. I tried a ...
3
votes
1answer
640 views

Using same font for \texttt and \Verb

I would like to configure my document to use exactly the same font for \texttt and \Verb. I got as far as this, which still misses making \ttdefault smaller: \documentclass{article} ...
8
votes
1answer
552 views

Libertine monospaced font seems to big

I'd like to write a document with the Libertine font (using the libertine package). I have a couple of code snippets in the text, and to me it seems like the Libertine Mono font that is used by the ...
7
votes
1answer
157 views

characters “>>” in LaTeX

I'm writing about programming language Haskell and I need to describe operators named >>= and >>. I wrap all references to names from the programming language in \texttt{ ... }, for ...
0
votes
1answer
828 views

Use verbatim inside \texttt

Why can't I use \begin{verbatim} inside \texttt? \texttt{ \small \begin{verbatim} iab <key> <expansion> <key> is the string which should be expanded to <expansion> ...
3
votes
2answers
364 views

Print $ inside \tt

How do I print a $ inside \tt? I tried escaping with a backslash, but didn't work. \tt{\$} throws an error. ! Argument of \OT1\^ has an extra } Update Sorry, the issue was not with $, but ...
4
votes
1answer
221 views

Why is the doi in biblatex a different font?

I am using biblatex-chicago (with \autocite) and a standard BibTeX file. For some reason, the DOI in my references is in a different font from the rest of the entry. Is this normal?
33
votes
3answers
2k views

What's a good typewriter template?

I'm searching for a template which makes a document look like it's written with a real typewriter. Ideally, this means it's not only in mono-spaced font, but the hyphenation is adjusted accordingly. ...