Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to import image by Xfig into tex document (pdflatex is used) to make pdf.
pdflatex demo uses matrixb1e.mps and matrixb2e.mps to include graphicss. These two files look like plain "postscript file." Text says that Xfig document was converted via metapost. I also see metapost files.
Question:
Is file foo.mps normal "postscript file"?
Why is metapost involved? Xfig can export directry to ps.
From Xfig, export to pstex format. You will end up with 2 files: one wih pstex extension, the other with pstex_t extension. Then make a .tex file that includes the code below, where you replace "example.pstex_t" with your pstex_t file name. Finally, compile that to an encapsulated postscript, I forget the exact command at the moment.
I always preconvert xfig documents into other formats for pdfLatex.
Here's the template I use to construct pdf documents that support pictures.
Code:
%Pdf-LaTeX Article-class
\documentclass[pdftex, 10pt, a4paper, twoside]{article}
%\pagestyle{plain}
\usepackage[T1]{fontenc}
%\usepackage{pxfonts}
\usepackage{aeguill}
%%% CAUTION: the HYPERREF package MUST be LAST %%%%%
\usepackage[pdftex]{graphicx, color} %looks for .png .pdf .jpg .mps .tif but not .eps
\usepackage[pdftex,
pdftitle ={00-pdfTeX template},
pdfauthor ={Simon Bridge},
colorlinks =true,
urlcolor =blue,
]{hyperref}
\begin{document}
\title{\huge Template File\\ \large for pdf\LaTeX}
\author{\bf \large Simon Bridge}
%\date{\today} % not really needed unless date = not \today
%\thanks{footnote to the title} %makes a footnote to the title - but starts the article on p2?!
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
\begin{abstract}
This is pretty abstract\ldots
\end{abstract}
\end{@twocolumnfalse}
] %%% 2 column articles restrict graphics to \columnwidth thanx
%\section{Introduction}
{\bf An Introduction} without a section number or a title! Uncomment to get the number up. Or write \verb+\section*{Introduction}+ to get the section title without a number.
\section{Thrust Starts}
Stick the main stuff here.
\subsection{Supporting Graphics}
\begin{figure}
\centerline{
\includegraphics[height=5cm, width=5.11cm]{topleft.jpg}
\hspace*{1.2cm}
\includegraphics[height=5cm, width=6.76cm]{topright.jpg}
}
\vspace*{0.2cm}
\centerline{
\includegraphics[height=5cm, width=9.95cm]{bottom.jpg}
}
\caption{This Just Goes to Show}
\label{fig:jpgfigs}
\end{figure}
\section{Conclusion}
Summarise and conclude. Usually involves repeating the abstract.
\end{document}
mps is supported automatically.
There are many bogus LaTeX tutorials around - usually someone in authority at an institution has gat a bee in a bonnet about something or just hasn't bothered to find out what you are expected to do. I get my tutorials and advice offa www.ctan.org
Last edited by Simon Bridge; 06-10-2005 at 08:49 PM.
It's more a case of an oft misunderstood system. I've seen scientific journals insisting researchers use their LaTeX headers for reasons that don't actually apply because their concerns are already adressed.
Though sometimes, people just want to use more of the page that TeX likes you to use.
Very often folk just don't read the manual properly. You know - men.
Here is an excellent LaTeX manual and primer. It covers quite advanced stuff - (hypertext and pdf-screen too!) There are many short cuts and hints in there and references to more information. http://www.ctan.org/tex-archive/info...ish/lshort.pdf
Last edited by Simon Bridge; 06-12-2005 at 05:20 AM.
Heyyy - don't get me wrong. It's OK to post questions if you are fed up with the manuals. It's actually useful if you tell us what documentation you have - someone who has read the bit you need can then point it out to you. It's easy to miss something in all those pages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.