Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to insert an article into my thesis, and compile the thesis into postscript with normal LaTeX. (not pdfLaTeX). I have an article that is in pdf format that I'd also like to insert in there.

Every method I try to use to convert the pdf to ps (or eps) and insert it into the document results in a mess. When I try pdf2ps, and then use \includegraphics, it includes all of the article on 1 page, and the text isn't even centered. I get the same result when I try \epsfig.

I don't want to use pdfpages, as it only works with pdfLaTeX.

I also have the article source, but its a complete document with its own styles and document class. I don't know if there's a way to recompile the article too inside of the thesis compilation?

share|improve this question
3  
Is there any reason why you want to avoid using pdflatex? Things are likely to be far easier by going that route. –  Juan A. Navarro Sep 1 '10 at 18:48
6  
By the way, even though "everyone" uses ps2pdf to convert PostScript to PDF, and it works pretty well, it does not mean that using the similarly-named tool pdf2ps is a good idea... Using pdftops (from the authors of the Xpdf viewer) produces usually much better results. Also try pdftops -eps if you want to produce something that you can \includegraphic. –  Jukka Suomela Sep 1 '10 at 18:59
    
I don't want to use pdflatex beause the thesis needs to be in ps format, and all of the supporting images are in eps –  Noli Sep 2 '10 at 8:29
    
Thanks Jukka, that answer helped the most –  Noli Sep 3 '10 at 11:44
add comment

5 Answers 5

This might be a long shot, but you could try using the combine package. It's designed for doing things like this, but it is somewhat fragile (and if the article is midway through the document I think you're out of luck).

share|improve this answer
add comment

This is not an elegant approach, but you could print the pages of the article into individual .ps files and then include each page. Good luck!

share|improve this answer
add comment

You can use pdftk to split the pdf document into single pages, convert each page into postscript by pdf2ps, and insert each of them into your document.

share|improve this answer
add comment

I'd try this (assuming that you absolutely must use latex instead of pdflatex, and you absolutely must produce PS instead of PDF as the final result):

  • Use latex + dvips + ps2pdf to produce a PDF version of your thesis.
  • Use pdftk to combine your thesis + the article. Now you have one PDF file, and everything should look good.
  • Use pdftops (or something similar) to convert the result back to PostScript.

All other parts should be fairly reliable, except the last step. (But if you are producing PS, you shouldn't expect any portability anyway...)

share|improve this answer
add comment
up vote 1 down vote accepted

Ok, here's what I ended up doing..

First off, I can't find a simple way to just merge a ps or eps into latex so it appears in the .dvi file.. go figure...

Jukka's comment about pdftops was the most helpful, as its the only way of converting my pdf to eps that actually gave a clear scaleable image.

in the end I cheated by converting each pdf page to eps, and saving as a different file. Since it was 4 pages, it was ok.. but def not a great solution. Then in my main master.tex, I include the article.tex file below. For each eps page, I included the following block in article.tex:

\thispagestyle{empty}
\begin{figure}[!ht]
  \vspace{-3.5cm}
  $$
  \epsfig{file=page_1,width=1.40\textwidth}
  $$
\end{figure}
\clearpage

I then cheated by adjusting the vspace and hoffset for the pages. Crappy.. but gives the desired result.

Thanks everyone for your help!

master.tex
----------------------------
\include{article}


article.tex
-----------------------------

\addtolength{\hoffset}{-1.2in}

\thispagestyle{empty}
\begin{figure}[!ht]
  \vspace{-3.5cm}
  $$
  \epsfig{file=opex_1,width=1.40\textwidth}
  $$
\end{figure}
\clearpage

\thispagestyle{empty}
\begin{figure}[!ht]
  \vspace{-3.5cm}
  $$
  \epsfig{file=opex_2,width=1.40\textwidth}
  $$
\end{figure}
\clearpage

\addtolength{\hoffset}{1.2in}
------------------------------------  End article.tex ---------------------
share|improve this answer
    
and stack exchange screws up the formatting.. so now that looks ugly.. sorry people.. –  Noli Sep 3 '10 at 11:51
    
Hope that looks more like what you intended. –  Loop Space Sep 3 '10 at 12:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.