ubuntu-users Digest, Vol 31, Issue 251
Alain Muls
alain.muls at telenet.be
Wed Mar 28 15:06:27 UTC 2007
On Wednesday 28 March 2007 16:13, ubuntu-users-request at lists.ubuntu.com wrote:
> hi,
> I have a simple latex document in that I try to include a xfig graphic
> with .fig extension but it does not work.
>
> The figlatex.pdf documentation on the latex-make website
> http://gforge.inria.fr/docman/~\index{.php?group_id=261&selected_doc_group_
>id=420&language_id=1
>
> states that .fig files can be bound in latex sources as:
> \includegraphics[width=\linewidth]{myfig.fig}
>
> I've tried it as visible in my source file below but receive following
> error message when I run make:
>
> ! LaTeX Error: Unknown graphics extension: .fig.
Hi,
Icluding a .fig files depends on whether you use latex or pdflatex.
For latex compilation you use
\begin{figure}
\scalebox{0.8}{\input{myfig.pstex_t}
\end{figure}
For pdfatex compilation you use
\begin{figure}
\scalebox{0.8}{\input{myfig.pdf_t}
\end{figure}
You can leave out the scalebox, it just scales your latex font in the figure to 80% (0.8) which I feel is very nice.
A nice tool for compiling your latex file is 'rubber'
http://www.pps.jussieu.fr/~beffara/soft/rubber/doc_toc.html#SEC_Contents
it will automatically convert your fig files to the desired formats without you having to export them manually in XFig.
--
mvg/Alain
________________________________________________________
Alain Muls Tel +32.2.7426340
Royal Military Academy Fax +32.2.7426472
Dep CISS-ASGE alain.muls at telenet.be
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070328/dc1fc345/attachment.html>
More information about the ubuntu-users
mailing list