You are not logged in.

#1 2005-05-30 16:05:52

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Fonts in LaTeX

Hi, can I use fonts that I normally use in OO or in the system in general? like Sans, Bitstream, etc?. All this in LaTeX

Thanxs.


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#2 2005-05-30 18:24:39

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Fonts in LaTeX

Not straight away. Latex/Tex doesn't use TT fonts, and so they need to be converted to a format understood by Latex. ttf2tex seems to be the way to go. This page sums it up quickly enough.

Google will also yield plenty of results.

HTH

Offline

#3 2005-05-30 18:48:08

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: Fonts in LaTeX

Thanxs arooaroo, I'm gonna check it out


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#4 2005-05-30 20:22:04

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Fonts in LaTeX

There are some nice adobe fonts included in latex.  For example, to use times fonts: usepackage{times}
To get a list of other fonts do:
ls /usr/share/texmf-dist/tex/latex/psnfss/*.sty
There is also other fonts in /usr/share/texmf-dist/tex/latex/pxfonts/
/usr/share/texmf-dist/tex/latex/qfonts/
and maybe other places.  You'll have to browse the latex tree or use google to get their name.

Offline

#5 2005-06-01 16:55:34

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: Fonts in LaTeX

thanxs Snowman wink


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#6 2008-12-06 16:06:42

farvardin
Member
Registered: 2008-09-03
Posts: 120
Website

Re: Fonts in LaTeX

I'm trying to install new fonts for LaTeX.
it's called dayroman and can be seen there: http://www.tug.dk/FontCatalogue/dayrom/

it can be d/l there: http://www.ctan.org/tex-archive/fonts/DayRoman/

On debian I could copy the files to the location given in the readme, and then run:

texhash
updmap --enable Map dayroman.map

and it was working.

On archlinux, it's not working anymore, all I get when compiling a tex file is:

LaTeX Font Warning: Font shape `T1/dayrom/m/n' undefined
(Font)              using `T1/cmr/m/n' instead on input line 12.

but later it even says:
LaTeX Font Warning: Font shape `T1/dayrom/m/it' undefined
(Font)              using `T1/dayrom/m/n' instead on input line 33.

but since T1/dayrom/m/n is not working, there is nothing available and I get the "default" latex font.

I tried fc-cache -v too, but it's not better.

I've even installed the texlive-fontsextra (http://wiki.archlinux.org/index.php/Texlive-fontsextra ), and very few of the fonts are available.

Is there an easy way to install new type1 fonts for LaTeX?

Last edited by farvardin (2008-12-06 16:40:04)

Offline

#7 2008-12-06 20:07:31

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Fonts in LaTeX

the steps on arch are the same. make sure that you're copying the files to correct places. running texhash should let tex know that you added new files to the texmf tree (tex maintains its own directory indexes). you can check that it worked by running 'kpsewhich <filename>' - it should return the full path to the file.

For correct location of texmf trees, see the wiki: http://wiki.archlinux.org/index.php/Texlive

updmap should let pdftex/dvips know that you have type1 versions of the fonts, but the warning you're getting indicates that the problem is going on *before* this has any effect.

Offline

#8 2008-12-06 23:44:37

farvardin
Member
Registered: 2008-09-03
Posts: 120
Website

Re: Fonts in LaTeX

thank you bender02, again, your useful tips helped me much (especially the kpsewhich command)!

It's working now, I don't really know what was wrong, I think there was a .map file put at a wrong place once, which prevented the correct one to work. I installed everything and with updmap --enable Map /usr/share/texmf/dvips/config/dayroman.map  it told me the file was not correctly set, so I could delete it and run the command updmap --syncwithtrees instead

Last edited by farvardin (2008-12-07 00:07:09)

Offline

Board footer

Powered by FluxBB