GeneralSource Directory outside of working Directory

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
llama
Posts: 12
Joined: Mon Mar 22, 2010 9:40 pm

Source Directory outside of working Directory

Post by llama »

Hi,

Is there a way to keep a source file (.tex) somewhere far from the directory where working files (.aux, .log, .dvi, .pdf, etc.) get created? I'm using Kile, but the question sounds to me like General.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Source Directory outside of working Directory

Post by Stefan Kottwitz »

Yes, you can use absolute paths, starting with a slash, such as

Code: Select all

\input{/home/user/tex/macros}
Stefan
LaTeX.org admin
llama
Posts: 12
Joined: Mon Mar 22, 2010 9:40 pm

Re: Source Directory outside of working Directory

Post by llama »

Thanks!

Do you mean that the master file still has to be present in the working directory and nowhere else?
Post Reply