Questions tagged [typewriter]

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

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
147 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
107 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
124 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
0answers
22 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
37 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:...
1
vote
0answers
275 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
54 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
34 views

polyglossia, czech, xelatex: Bad character code (-1) with \tt

Polyglossia with Czech and \tt fails when I'm compiling the file with xelatex. It works with lualatex and it works with \setmainlanguage{english}. What is causing this behavior? MWE: \documentclass{...
0
votes
0answers
110 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
62 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
341 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 ...