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
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
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
> 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
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
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.
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
>(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?"