All entries for Tuesday 03 October 2006

October 03, 2006

LaTeX Tip: How to Change the Font of a Legend to the Same Font as the Text

Here is a LaTeX tip that Maria Costa proposed:

How To Change the Font of a Legend to the Same Font as the Text

Important:

The figures must be in .eps format and this must be their ORIGINAL format!

How To:

At the beginning:

\usepackage{psfrag}

When including your figure in the text:

\psfrag{text to replace}{rcl e tcb}[][scale of the letters][angle to rotate the letters]{text to include}

Note:

‘r’=right, ‘c’=centre, ‘l’=left in the horizontal direction;

‘t’=top, ‘c’=centre, ‘b’=bottom in the vertical direction. Most of the times using ‘cc’ works fine.

Example:

\begin{figure}

\centering

\psfrag{r2}[cc][][0.8][0]{$\rho_2$}
\psfrag{0}[cc][][0.8][0]{$\bf{0}$}
\psfrag{k1JP}[cc][][0.8][0]{$\frac{1}{k_1}\J\bi{P}$}
\psfrag{u}[lc][][0.8][0]{$\theta$}

\includegraphics[width=0.70\textwidth,angle=0]{Fig1.eps}

\caption{.....}

\label{Fig1}

\end{figure}

Advice:

You should use simple text to represent the letters/symbols you want to replace. For example, ‘r2’ in the example above is used when creating the figure and later, whem running LaTex, replaced by what we really wanted to write, ’\rho_2’. You shouldn’t use, when including any legend, very complicated names (specially not symbols) for the text in the legend you want to replace. Otherwise Tex may not be able to change it.


An useful GUI for managing bibtex collections

Dear all,

about bibtex files. I am sure that some people are using some kind of bibtex editors to manage their references.

However, I would like to suggest one that I found quite useful. It is open source software and the only thing it requires is a system with enabled java VM (all of the university systems as far as I know).

It is complete GUI for managing references and the user can do all sorts of things that can be done using a usual text editor to edit the bibtex file directly.

Give it a try!!! It can be found at

http://jabref.sourceforge.net/

Yiannis


October 2006

Mo Tu We Th Fr Sa Su
|  Today  | Nov
                  1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31               

Search this blog

Galleries

Most recent comments

  • A statistical point of interest: did the North Koreans in fact set … by Guy Freeman on this entry
  • Great advice Yiannis, thanks. I also recommend an online service fo… by Guy Freeman on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXII