Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to find out the font used in latex

2,963 views
Skip to first unread message

Peng Yu

unread,
Nov 1, 2006, 10:28:58 AM11/1/06
to
Hi,

I'm using gnuplot to draw pictures and include them in latex file. I
want to make sure the fonts in latex and gnuplot are consistent. But I
need to find out what font and the size is used in latex. Is there any
easy way to do that?

Thanks,
Peng

Jonathan Fine

unread,
Nov 1, 2006, 10:39:20 AM11/1/06
to
"Peng Yu" <Peng...@gmail.com> wrote in message
news:1162394937.9...@h48g2000cwc.googlegroups.com...

Hello Peng

Use
dvitype myfile.dvi | less

It will give you a list of all fonts used in
the document.

Alternatively, you can use \tracingoutput,
which will give you the LaTeX names of the
fonts.

--
Jonathan


Peng Yu

unread,
Nov 1, 2006, 11:11:42 AM11/1/06
to

On Nov 1, 9:39 am, "Jonathan Fine" <J.F...@open.ac.uk> wrote:
> "Peng Yu" <PengYu...@gmail.com> wrote in messagenews:1162394937.9...@h48g2000cwc.googlegroups.com...


>
> > Hi,
>
> > I'm using gnuplot to draw pictures and include them in latex file. I
> > want to make sure the fonts in latex and gnuplot are consistent. But I
> > need to find out what font and the size is used in latex. Is there any

> > easy way to do that?Hello Peng


>
> Use
> dvitype myfile.dvi | less
>
> It will give you a list of all fonts used in
> the document.
>
> Alternatively, you can use \tracingoutput,
> which will give you the LaTeX names of the
> fonts.

There are simply too many fonts listed there. I'm only interested in
the font used in the main text. Is there any easy to find it out?

Thanks,
Peng

Jonathan Fine

unread,
Nov 1, 2006, 11:21:48 AM11/1/06
to
"Peng Yu" <Peng...@gmail.com> wrote

> There are simply too many fonts listed there. I'm only interested in
> the font used in the main text. Is there any easy to find it out?

Ah - but you did ask for the fonts used.

To find out what the current font is, use the following:
===
$ tex
This is TeX, Version 3.141592 (MiKTeX 2.4)
**\expandafter\show\the\font
> \tenrm=select font cmr10.
<inserted text> \tenrm

<*> \expandafter\show\the\font

?

*
===
An alternative is
\immediate\write16{!!! \expandafter\meaning\the\font}

--
Jonathan


pluton

unread,
Nov 1, 2006, 11:58:51 AM11/1/06
to

> > > I'm using gnuplot to draw pictures and include them in latex file. I
> > > want to make sure the fonts in latex and gnuplot are consistent. But I
> > > need to find out what font and the size is used in latex. Is there any
> > > easy way to do that?Hello Peng

why don't you use the psfrag command ? This way, everything is going to
be consistent in your final document
and if, for some reason, you want to recompile your document with a
different font, it is going to be accounted for
even in your figures without redoing them....

Pluton

Johan

unread,
Nov 1, 2006, 12:41:04 PM11/1/06
to
On 1 Nov 2006 07:28:58 -0800
"Peng Yu" <Peng...@gmail.com> wrote:


A other way is to let LaTeX set the fonts by using the epslatex or
pslatex term.

Things like:
set xlabel 'Time $[s]$'
are valid.

Scott Pakin

unread,
Nov 1, 2006, 11:32:41 PM11/1/06
to

Well, the default font is Computer Modern Roman and the default size is 10pt
(noting that 72.27 TeX points equals 72 PostScript points). If you're
not explicitly changing anything (e.g., with an argument to \documentclass
or a \usepackage that sets the font) then that's what LaTeX is using.

-- Scott

Michele Dondi

unread,
Nov 2, 2006, 5:24:51 AM11/2/06
to
On Wed, 01 Nov 2006 21:32:41 -0700, Scott Pakin <scot...@pakin.org>
wrote:

>(noting that 72.27 TeX points equals 72 PostScript points). If you're
>not explicitly changing anything (e.g., with an argument to \documentclass
>or a \usepackage that sets the font) then that's what LaTeX is using.

And if onw *is* changing something, then... he/she should know...


Michele
--
>It's because the universe was programmed in C++.
No, no, it was programmed in Forth. See Genesis 1:12:
"And the earth brought Forth ..."
- Robert Israel in sci.math, thread "Why numbers?"

0 new messages