LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
LinkBack Search this Thread
Old 06-10-2005, 07:39 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,294

Rep: Reputation: 67
Question pdflatex foo.mps (mpost?? Xfig??)


Dear Experts

I got confused. Any comment is welcome.

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.


Thanks in advance
 
Old 06-10-2005, 08:15 PM   #2
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 16
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.

Code:
 \documentclass{article}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{color}
\pagestyle{empty}
\begin{document}
\input{ example.pstex_t }
\end{document}
 
Old 06-10-2005, 08:48 PM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
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.
 
Old 06-11-2005, 07:04 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,294

Original Poster
Rep: Reputation: 67
Thanks,

Simmon is right. Too many documents floating around. I think it is a nature of always developing field.
 
Old 06-12-2005, 05:16 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
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.
 
Old 06-13-2005, 07:58 PM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,294

Original Poster
Rep: Reputation: 67
Yes, I agree.

I very often read half of tehm and do stupid thing. Also, sometimes, I think that it is very hard to read them properly until we know what is written.

I only read several pages out of 147pages, and so far together with other source, I solved current problem.

I will promise that I will not ask question here next time, unless I read all of them.
 
Old 06-14-2005, 03:16 AM   #7
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
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.

Anyway - did the posted code help any?
 
Old 06-16-2005, 09:54 PM   #8
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,294

Original Poster
Rep: Reputation: 67
Yes, it was helpful. There are so many different styles (not style file) in LaTeX. Now, I am using your style also. Thanks.

But, still I have not fully understood what mps file is.
 
Old 06-19-2005, 04:52 AM   #9
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
master postscript file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pdflatex+Graphics bajaj Linux - Software 1 05-21-2006 11:28 AM
mps compilation failed ph0enix Linux - Software 3 02-09-2005 04:37 PM
Images in pdflatex frontpage ObedientMonk Linux - Software 0 04-29-2004 06:45 AM
pdfLaTeX - jpeg won't show ashley8 Linux - Software 1 04-25-2004 04:25 AM
wget won't authenticate with a MPS 2.0 Proxy graywind Linux - Networking 0 12-16-2003 01:49 AM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration