GeneralAbout generating pdf with pdflatex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
cbustaam
Posts: 57
Joined: Mon Sep 01, 2008 10:17 pm

About generating pdf with pdflatex

Post by cbustaam »

Hi all,
I'm trying to compile a tex file with pdflatex outside the directory in which the tex is. This is,

Code: Select all

pdflatex folder\myfile
I have some pdf pictures in folder included in myfile.tex through \includegraphics{picure.pdf}. When I run pdflatex says that it's not possible to find picture.pdf.

How can I compile myfile.tex outside folder?

Bests
"Show me your .emacs and I'll tell you who you are." -- modified proverb

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: About generating pdf with pdflatex

Post by frabjous »

Why don't you want to run pdflatex in the folder in question?
User avatar
cbustaam
Posts: 57
Joined: Mon Sep 01, 2008 10:17 pm

Re: About generating pdf with pdflatex

Post by cbustaam »

Because this folder is created by another application with a name that depends from an internal command. After, I run pdflatex from within this application invoking the folder name with the application internal command.
"Show me your .emacs and I'll tell you who you are." -- modified proverb
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

About generating pdf with pdflatex

Post by frabjous »

Sorry, but I didn't really follow that.

Do you mean that you're calling pdflatex within a script or batch file, where $foldername is a variable? I still don't see the problem.

Code: Select all

cd $foldername
pdflatex $file
Post Reply