[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with cm-super (etch), plain tex



On Fri, Oct 26, 2007 at 11:26 -0400, Antonio Rodríguez wrote:
> Hey guys, I am an etch user of Plain Tex, just installed cm-super,
> cm-super and cm-super-x11. I keep getting not found, I don't know what I
> am doing wrong.
> "dpkg -S cm-super" yields lines such as
> cm-super: /usr/share/texmf/fonts/type1/public/cm-super/sfrb1000.pfb
> So, I create a trial.tex file with lines
> 
> ===============
> \font\pito=sfrb1000
> \pito
> ¿¡Qué caña no coño, güeno!?\end
> ===============
> 
> whose only purpose is to try the fonts. But I don't get anything when
> texing it, except

,----[ /usr/share/doc/lmodern/README.Debian.gz ]
| How to use the Latin Modern fonts with TeX?
| -------------------------------------------
| 
| If you are using TeX directly, you should know that. ;-)
| [...]
`----

Ok, lmodern's README.Debian says more than that. But the essence is
correct IMO. If you are using plain TeX, you ought to know that \font
takes the name of a tfm-file as argument. This isn't very surprsing,
since TeX never looks at physical fonts like pfb-files, since it is
only iterested in a font's metrics. Anyway, tfm-files that are using
sfrb1000.pfb can be found like this:

$ egrep sfrb1000 $(kpsewhich pdftex.map)
ecrb1000 SFRB1000 "T1Encoding ReEncodeFont" <cm-super-t1.enc <sfrb1000.pfb
larb1000 SFRB1000 "T2AEncoding ReEncodeFont" <cm-super-t2a.enc <sfrb1000.pfb
lbrb1000 SFRB1000 "T2BEncoding ReEncodeFont" <cm-super-t2b.enc <sfrb1000.pfb
lcrb1000 SFRB1000 "T2CEncoding ReEncodeFont" <cm-super-t2c.enc <sfrb1000.pfb
rxrb1000 SFRB1000 "X2Encoding ReEncodeFont" <cm-super-x2.enc <sfrb1000.pfb
tcrb1000 SFRB1000 "TS1Encoding ReEncodeFont" <cm-super-ts1.enc <sfrb1000.pfb

Now from all these encodings, T1-Encoding is best suited for your
purposes. Hence you should write

\font\pito=ecrb1000
\pito
¿¡Qué caña no coño, güeno!?\end

If you are using Latin-1 encoding, then this will almost work, the
exception being ¿ and ¡. The reason is that T1-encoding is quite
similar to latin-1, but it is not identical. You will have to use the
classical TeX ligatures for this:

\font\pito=ecrb1000
\pito
?`!`Qué caña no coño, güeno!?\end

There are still other problems with this approach, though (try ß or \l
;-). The right way would be to use a proper model for input and output
encoding. AFAIK there are packages also for plain TeX that support
this, but i cannot give you any details since I have never used that.

cheerio
ralf



Reply to: