Does anyone know what is happening here---i.e. why I am getting an fss
warning? And what to do if I would like the teletype-leftbrace instead of
the OMS/cmsy leftbrace?
This is TeX, Version 3.1415 (C version 6.1)
LaTeX2e <1995/12/01> patch level 2
*\documentclass[11pt]{book}
*\begin{document}
(..../latex/unpacked/book.cls
Document Class: book 1995/12/20 v1.3q Standard LaTeX document class
(..../latex/unpacked/bk11.clo))
(texput.aux)
*\texttt{\{}
LaTeX Font Warning: Font shape `OMS/cmtt/m/n' undefined
(Font) using `OMS/cmsy/m/n' instead
(Font) for symbol `textbraceleft' on input line 0.
Thanx in advance,
-- John
--
______________________________________________________________
Arne John Glenstrup pa...@diku.dk
Institute of Computer Science, http://www.diku.dk/~panic/
University of Copenhagen, Denmark (+45) 35 32 14 38
Hi,
Does anyone know what is happening here---i.e. why I am getting an fss
warning?
You get a warning to warn you that you are getting a math font { not
one out of the current font (in case you hadn't noticed.) LaTeX2.09
used to make the same substitutuion but without any warning.
And what to do if I would like the teletype-leftbrace instead of
the OMS/cmsy leftbrace?
LaTeX has to substitute a math font for \{ if you are using old OT1
encoded fonts as the 7bit OT1 encoding does not contain a {.
If you say \usepackage[T1]{fontenc} to use a more sensible encoding,
then \{ will always be taken out of the current font.
As you probably know, the `OT1' font cmtt does in fact have a { (that
is used in \verb, so an alternative answer to your question is to go
\verb|{| ) but in order to preserve everyone's sanity LaTeX
tries to work with the myth that all Knuth's text fonts use the same
encoding (actually they almost all use different encodings, but...)
David
OT1cmtt has advantages over T1cmtt, actually:
* There's an unsexed single quote, which I can't find in T1cmtt. I
use this in program listings, because languages like C tend to
put the same quote on both sides of character constants and it looks
silly if it's sexed.
* T1cmtt doesn't appear to be available in 7pt. This annoys me.
I use 7pt in listings, because it means I can fit 77 columns of
assembler across an A5 page in my document class. (This is a minor
problem which I've only just noticed, and can't be bothered to
workaround another way, although I'm sure there's something I can
do about it.)
I was inspired a while ago by an email conversation with Mr Carlisle (on
this very subject) to define an encoding for the `cmtt' font in
particular, since it has various special requirements:
* Saying \texttt{P\'al Erd\H os} produces something really ghastly in
OT1/cmtt. The \H accent is missing, and there's a `}' in its place.
My encoding fixes this by borrowing the accent from somewhere else
(OT1/cmr/bx/n by default as suggested in the TeXbook, although if
you have it, you can use T1/cmtt which does have the accent).
* Commands like \_, \{ and \textbackslash can be done properly in
OT1/cmtt without stealing symbols from maths fonts or producing
truly appalling results by playing with rules.
The package and other necessary bits and bobs are already on CTAN, in
macros/latex/contrib/supported/mdwtools. (Have a look around there:
you might find some other things you like ;-) )
--
(` t r a y l i g h t / `Beware of bugs in the above code; I
,_) cs...@csv.warwick.ac.uk / have only proved it correct, not tried
/ it.'
Mark Wooding / Donald Knuth
Funny, I'd never thought of quotes in the context of sex.
Anyway, there's a straight single quote in the TC fonts at position
"27
> * T1cmtt doesn't appear to be available in 7pt. This annoys me.
> I use 7pt in listings, because it means I can fit 77 columns of
> assembler across an A5 page in my document class. (This is a minor
> problem which I've only just noticed, and can't be bothered to
> workaround another way, although I'm sure there's something I can
> do about it.)
I'm glad I don't have to read your assembler listings... (Even at
7pt, even in landscape orientation, 77 columns must be pretty hard
going ;-)
If you want the beastly thing, just generate it. The DC fonts have
always been self-parametrising....
>I was inspired a while ago by an email conversation with Mr Carlisle (on
>this very subject) to define an encoding for the `cmtt' font in
>particular, since it has various special requirements:
>
> * Saying \texttt{P\'al Erd\H os} produces something really ghastly in
> OT1/cmtt. The \H accent is missing, and there's a `}' in its place.
> My encoding fixes this by borrowing the accent from somewhere else
> (OT1/cmr/bx/n by default as suggested in the TeXbook, although if
> you have it, you can use T1/cmtt which does have the accent).
Whereas the whole thing would work fine in dctt
> * Commands like \_, \{ and \textbackslash can be done properly in
> OT1/cmtt without stealing symbols from maths fonts or producing
> truly appalling results by playing with rules.
>
>The package and other necessary bits and bobs are already on CTAN, in
>macros/latex/contrib/supported/mdwtools. (Have a look around there:
>you might find some other things you like ;-) )
Pshaw. Forget about OT1, use T1 and TS1 together ... you know it
makes sense ...
(Or perhaps, to be slightly more up-to-date ... "T1 hurts, but it
works")
--
--
Robin (Campaign for Real Radio 3) Fairbairns r...@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK
Home page: http://www.cl.cam.ac.uk/users/rf/robin.html