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

2
votes
1answer
21 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
41 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
55 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
35 views

Bad character code (-1) when i use monospace

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
25 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
41 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
72 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
214 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
98 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,
3
votes
2answers
156 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
54 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
38 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} ...
3
votes
2answers
130 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, ...
4
votes
1answer
152 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
120 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
204 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
162 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
195 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
244 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 ...
6
votes
2answers
552 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 ...
3
votes
1answer
468 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
542 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} ...
5
votes
2answers
197 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
325 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
317 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
52 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
63 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
538 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 ...
6
votes
3answers
396 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 ...
3
votes
1answer
750 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
1k 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
430 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
415 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
140 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
671 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
325 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 ...
3
votes
1answer
188 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?
31
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. ...
2
votes
1answer
526 views

How to make all the entries in a table verbatim font

I have a large table in the tabular environment and I need to make all the text verbatim font. I know I can use \begin{verbatim}...\end{verbatim} for all the entries but they are just too much for me ...
6
votes
2answers
273 views

C++ operators ^=, <<=, >>= misinterpreted

I write a list of C/C++ operators of the following form : \texttt{operator+=}, \texttt{operator-=}, \texttt{operator*=}... The problem is that \texttt{operator\^=}, \texttt{operator>>=}, ...
7
votes
1answer
289 views

Typewriter text in sections with ACM “sig-alternate” document class

I would like to put a \texttt{} block in a section, e.g. \section{Algorithm \texttt{FSG}} But the problem of this approach is that the text inside the\texttt{} block does not inherit the size and ...
2
votes
1answer
177 views

issues after verbatim section

I'm havin an issue which I cannot solve. If I have a subsubsection containing text with a verbatim section in between, the first line after the verbatim section is not aligned properly. If I put a ...
6
votes
4answers
353 views

How do I change the standard “math font”?

What I can tell, the font you get, it looks like the standard, "bookish" font, only tilted. How can I get a monospace font with a straight spine, e.g., the font you get with texttt? I'm happy with ...
2
votes
1answer
395 views

Typewriter quotation marks in texttt

I'd like to do the text "conservative" with the quotation marks into a \texttt. However, when I do so, the first quotation mark is removed. I'm using the LNCS documentclass, I'm not sure if this ...
3
votes
1answer
213 views

ttfamily usage (newline failing)

I'm unable to insert a new line while using \ttfamily. Is there any reason why \ttfamily prevents to do that? My problem (here's the code): Let's consider an e-commerce web application whose address ...
1
vote
1answer
183 views

Hyphenate typewriter / avoid overfull \hboxes in code, using fontspec and XeTeX

I would like to avoid overfull \hboxes as a result of inline code, inserted with \textt{foo} or \ttfamily, e.g. in this MWE: % compile with xelatex \documentclass{article} \usepackage[textwidth=4cm, ...
2
votes
1answer
251 views

Comma inside \texttt{} does’nt show up

I am trying to print a comma inside a \texttt{} tag, but it is not printing: \documentclass{article} \begin{document} \texttt{foo, bar} \end{document} produces: foo bar not foo, bar How ...
5
votes
2answers
531 views

Weird spacing with DejaVu Sans Mono with MiKTeX's XeLaTeX

\documentclass{article} \usepackage{fontspec} \setmainfont{DejaVu Serif} \setsansfont{DejaVu Sans} \setmonofont{DejaVu Sans Mono} \begin{document} Hello World! \textsf{Hello World!} ...
7
votes
1answer
1k views

not able to write bold characters using textbf

I'm working on latex and R (swaeave) and I am using utf8 encoding but when I use \textbf{dataset}, the text is not bold. Below is part of my code. But I am not sure what is reason behind it. ...