Generalps in texlive

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mornington
Posts: 4
Joined: Thu Apr 16, 2009 9:45 pm

ps in texlive

Post by mornington »

Hi,

I use MikTex with Texniccenter usually, but due to circumstances I have to use my university's Texlive distribution with no frontend. So to compile I have written a small batch file, which is:

:: Begin
@ECHO ON
cd "Y:\texlive\2008\bin\win32"
y:
pdflatex -output-format=pdf -output-directory="E:\Desktop\Innovation\Draft" "E:\Desktop\Innovation\Draft\_draft2.tex"
bibtex "E:\Desktop\Innovation\Draft\_draft2.aux"
pdflatex -output-format=pdf -output-directory="E:\Desktop\Innovation\Draft" "E:\Desktop\Innovation\Draft\_draft2.tex"
pdflatex -output-format=pdf -output-directory="E:\Desktop\Innovation\Draft" "E:\Desktop\Innovation\Draft\_draft2.tex"
pause
:: End

I have two questions:
1) I have an \includegraphics{figure.eps} statement in my .tex file and this will obviously not compile with pdflatex. Is there a way to compile to ps with standard release texlive?

2) Secondly, my bibliography does not show up in the pdf. Any obvious reasons for this?

Thanks,

T

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

ps in texlive

Post by kaiserkarl13 »

I'm not precisely sure of the exact setup you're using, but perhaps the following will work:

Code: Select all

:: Begin
@ECHO ON
Y:\texlive\2008\bin\win32\pdflatex "_draft2.tex"
Y:\texlive\2008\bin\win32\bibtex "_draft2.aux"
Y:\texlive\2008\bin\win32\pdflatex "_draft2.tex"
Y:\texlive\2008\bin\win32\pdflatex "_draft2.tex"
pause
:: End
Then run the batch file from the place you have the original file. Your bib and tex files can then be in that directory as well.

As for the EPS images, run this from the directory containing "image.eps"

Code: Select all

epstopdf image.eps
You might have to provide the full path to epstopdf, which should be installed as part of Ghostscript. TexLIVE usually installs it somewhere if it isn't installed already.

Change all your \includegraphics{image.eps} to simply \includegraphics{image} and it will automatically pick out the .pdf (PDFLaTeX) or .eps (LaTeX) extension for you.

(PDFLaTeX doesn't handle .ps files any better than .eps files, as those are the same format up to the bounding box.)
mornington
Posts: 4
Joined: Thu Apr 16, 2009 9:45 pm

Re: ps in texlive

Post by mornington »

Thank you so much! It worked like a charm...
Post Reply