Questions tagged [typewriter]

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

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
179 views

Wrong character width when typesetting url with hyperref and a FakeStretch-ed font

I just found out that hyperref does not really take the FakeStretch feature of fontspec into account : EDIT This is actually a problem with the url package, which is used by hyperref to typeset urls. ...
3
votes
0answers
1k views

Change \texttt font-size

I would like to make \texttt font size smaller globally. I am using \usepackage[scaled=.7]{beramono} and it works. But is it possible to use other font than beramono and still have the possibility to ...
3
votes
0answers
114 views

newtxtext typewriter text OK on screen but does not print (sometimes)

MWE: \documentclass{article} \usepackage{newtxtext} \begin{document} Hello world \texttt{Hello world} \end{document} Compiled with just-updated TeX Live 2015 on OS X El Capitan 10.11.3. newtx is ...
2
votes
0answers
32 views

Typesetting mathematical unicode characters in typewriter font

This is a followup to this answer: https://tex.stackexchange.com/a/593973/27523 it suggests using the \DeclareUnicodeCharacter command to use Unicode source characters. Now the problem is that I use ...
2
votes
0answers
93 views

typewritten to Latex

I have a math book from the '60s in PDF. It's typewritten and I found it harder to read than a Latex edition, but couldn't find any modern edition. Is there an app or site or some way to transform it ...
2
votes
0answers
55 views

How to detect teletype/typewriter mode

How do I detect whether or not I'm in teletype mode in LaTeX? I'm looking for something like \ifmmode or \mathpalette or \mathchoice. Perhaps this is an xy problem, so let me give my original context:...
2
votes
0answers
308 views

How can I use Fira Code with ligatures in pdflatex?

Basically, I've come to really like Fira Code and its ligatures while coding, and I'd like to use it for my code listings in LaTeX, too. Specifically, I am looking for a way to use Fira Code with ...
1
vote
1answer
47 views

how can I change an arbitrary portion of my document to monospaced/typewriter font in xetex?

I want to put arbitrary portions of my text into a font that looks like it came out of a 1960s manual typewriter. In particular, each character must occupy a column, identical in width to all other ...
1
vote
0answers
34 views

Push \texttt in tcolorbox to a new line if it doesn't fit

So I use a colorbox with \texttt for inline code fragments, and as you can see from the picture below, the code fragments run off the page. What I would like is for the colorbox to appear on the next ...
1
vote
0answers
330 views

xelatex — monospaced font full justified (in a monospace grid)

Even if the question looks familiar, I didn't find any answer. I am working with XelateX, and for some projects I need to use a monospaced font. For a long time now, I used the default hyphenation ...
0
votes
0answers
43 views

May I label with a monospaced typeface?

Say I have an enumerate environment like \documentclass{article} \usepackage{amsmath, amssymb, amsthm, enumitem, graphicx, hyperref, latexsym, babel, blindtext, thmtools} \usepackage{enumitem} \...
0
votes
0answers
88 views

How to emulate "typewriter" style?

[Not sure how to word this question exactly, please let me know if it is a duplicate.] Many older scientific papers are set completely in "typewriter" style. Here is an equation that was set using ...
0
votes
0answers
166 views

Extra space after custom texttt

I am currently using the below codes for auto line breaking in Latex. However, below code places an extra space behind the /texttt. How can I remove the extra space being placed after the /texttt ...
0
votes
0answers
103 views

Justified text with usepackage typewriter

The text when using usepackage typewriter is not justified. Is there a way to do that? \documentclass[12pt,a4paper]{scrartcl} \usepackage{lipsum} \providecommand\ttgreyone{0.1} \...
0
votes
0answers
481 views

Inline colorbox & linebreaks

First and foremost, I have found some solutions here, here, and there but they seem overly complicated for what I am trying to accomplish. Problem I am trying to somewhat reproduce the code ...