Tagged Questions
4
votes
1answer
37 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 ...
6
votes
3answers
115 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 ...
2
votes
0answers
72 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
279 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 ...
24
votes
3answers
843 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. ...
5
votes
2answers
164 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 ...
9
votes
1answer
141 views
How to deal with it/sl/bold in lmtt?
I just stumbled upon the fact that the font lmtt (latin modern typewriter) seems to exist in
italic
slanted
bold
bold slanted
but not
bold italic
At least the file t1lmtt.fd contains the ...
4
votes
1answer
115 views
Scaling cmtt to match times
I want to use Times Roman (times) as the default font and Computer Modern Typewriter (cmtt) for monospaced text. However, Computer Modern is a little too large. How do I scale it down document-wide?
...
13
votes
2answers
484 views
Which typewriter font fits to Linux Libertine and supports bold letters?
I'm thinking about using the Linux Libertine font (\usepackage{libertine}) in my next TeX documents. For listings with syntax highlighting I will need a typewriter font that supports boldface.
I ...
5
votes
3answers
371 views
monospaced fonts not respecting spaces?
Why does true type fonts consolidate spaces and is there any way to stop this? I need easily add white space between words equal to the width of a space(which for monospace should be the same for all ...
11
votes
1answer
176 views
Escaped characters in typewriter font
I know a number of ways to fix this (e.g. \usepackage[T1]{fontenc}), but I want to understand what's happening in the following example.
\documentclass{article}
\begin{document}
\noindent
\$ \% ...
2
votes
1answer
300 views
Cyrillic monospaced font
I need to use Cyrillic (russian) monospaced font.
I chose courier and added
\usepackage[T1]{fontenc}
and
{\fontfamily{pcr}\selectfont
blabla
}
and that "blabla" is displayed like usual text ...
4
votes
1answer
370 views
How to change math font to monospace, only inside \texttt
Related with "Can I change all math output to use monospaced text?", is it possible to use the monospace math only inside \texttt (or other custom command)?
I tried to include the \everymath inside a ...
8
votes
1answer
250 views
Can I change all math output to use monospaced text?
Is there any way of modifying the preamble, so instead of typing
$\mathtt{x}$ ...
\begin{eqnarray}
\mathtt{y} & \mathtt{=} & \mathtt{z^\pi}
\end{eqnarray}
I can omit the \mathtt{...} ...
6
votes
1answer
248 views
Garamond and URL links
I am experimenting the use of the Garamond Premier Pro font for a dissertation and I still would like to keep the URL information in the bibliography when available. Obviously, there's a font problem ...
7
votes
1answer
132 views
How can I force pairs of brackets [][] to be closer to each other in \texttt?
\documentclass{article}
\begin{document}
Normal margin here. Normal margin here. Normal margin here.
Normal margin here. Normal margin here. Normal margin here. Normal margin here.
Abcdefgh ...
3
votes
2answers
1k views
Lyx is ignoring typewriter font setting for program listings
I'm using Lyx's Insert|Program Listing to insert a code listing into my document. Unfortunately, Lyx seems to ignore the Typewriter font selection I made in DocumentOptions under Fonts ⇒ ...
7
votes
2answers
206 views
Problem with >> inside of \tt
I have an inline code example with a nested Java generic declaration, using the typewriter typeface. However, the closing >> is rendering as a black box. A cursory Google search suggested ...
8
votes
2answers
4k views
Good monospace font for code in LaTeX?
I'm currently working on my dissertation and am using Palatino for text with the Euler font for mathematics. As part of my work I'll be presenting quite a few code examples, and was wondering if ...
7
votes
2answers
1k views
Typesetting single quotes
How can the single quote character be typeset as the ascii character ' in a LaTeX document?
For instance, consider the document:
\documentclass{standalone}
\usepackage[T1]{fontenc}
...
3
votes
1answer
319 views
Do mathdesign sans serif and monospaced fonts “fake” small caps?
The manual for mathdesign explains how to ensure "true" small caps are used for the main type family selected as an option, but it says nothing about whether the small caps used in other fonts are ...
3
votes
3answers
833 views
looking for monospaced condensed font
I am looking for condensed mono spaced (typewriter) fonts to typeset program listings with pdflatex. The fonts should have the common shapes (up and italic or slanted) and series (normal and bold). ...
24
votes
1answer
1k views
How to automatically hyphenate within \texttt?
This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer).
The person had a lot of "common words" in typewriter font sprinkled ...
4
votes
1answer
422 views
How do I change the default typewriter font with XeTeX?
In this question, it is detailed how to convert a project to use TrueType or OpenType fonts by switching from LaTeX to XeLaTeX. I've successfully changed my build over to use XeTeX, but I'd like to ...
3
votes
1answer
154 views
Installed Luximono is not working
I am using MacTex-2011 on a mac 10.7. Recently, I have installed luximono using getnonfreefonts. Everything went ok, but when I was compiling the document (pdfLaTeX) with the packages:
...
7
votes
2answers
735 views
Scaling fonts document-wide
I'm looking to use lcmtt mentioned here as my default typewriter font, but the scaling is way out of proportion with the rest of the text. I've used the following commands to enable the font:
...
3
votes
3answers
6k views
How to change the font of a LaTeX table to typewriter font?
I want to create a table in LaTeX, and this table needs to be in typewriter font.
I have found Typesetting Tables with LaTeX, but I don't understand how to use it.
How could I do this?
9
votes
4answers
1k views
Minion Pro and Monospace Font
This is more a typography question than a TeX one, but can anyone recommend me a good monospaced font that blends well with Minion Pro?
5
votes
2answers
425 views
How to use condensed typewriter with latin modern and doc
I'm documenting a class with (ltx)doc. The macro names are quite long so I get a lot of overfull hboxes.
AFAIK latin modern has an additional typewriter font which is condensed. How do I switch the ...
5
votes
2answers
1k views
How do I change the \mathtt font with mathspec?
I have a document where the main font is Gotham Narrow Book but the numbers are set in Gotham Narrow Light, and this is set with commands provided by the mathspec package. I'd like to typeset a table ...
5
votes
1answer
978 views
Suggestions for typewriter font to match Concrete and Euler
I'm having fun using a combination of Concrete and Euler in some of my documents. I wonder if anyone has a suggestion about a matching typewriter font? I've been trying Inconsolata (scaled to .97) ...
4
votes
2answers
2k views
Which sans serif and monospace fonts suit Century Schoolbook?
I find the Century Schoolbook family very legible for online documentation. However, I am unsure what sans serif (for typesetting, e.g., LaTeX package names) and monospace (for typesetting code) ...
5
votes
3answers
334 views
Display “.\integrate blah” in monospaced font (like \texttt and \verb)
I'm trying to display the following:
.\integrate blah
in a monospaced font.
For everything else I've wanted to put in a monospace font, \texttt or \verb has worked fine, but it doesn't with this. ...
6
votes
2answers
2k views
Bold Typewriter Type fonts
I found out that there are cmbtt10 and cmttb10 fonts available. Unfortunately they are not used until I activate them with the \font macro, so just searching for those fonts is not possible.
The ...
16
votes
3answers
2k views
How can I create a full-size circumflex in typewriter font?
I have some C source code and would like to show the circumflex or caret (^) in the way it is typically shown in source code -- as a full-size character. The source code will be appearing in ...
9
votes
6answers
5k views
Alternative monospace fonts
My document uses the txfonts package, which provides Times Roman, Helvetica and what appears to be a facsimile of Courier.
However, I dislike the monospace font and find it to be particularly ugly. I ...
9
votes
3answers
1k views
A monospace or typewriter font with matching math support
This might sound odd but I really like the old typewriter books from the pre-TeX era (the type of books that inspired Knuth to make TeX!). I don't know the exact reason, maybe its because I am very ...

