GeneralInclusion of Sub-File with specific Output Directory

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Tsukabishi
Posts: 1
Joined: Fri Jul 27, 2012 10:36 am

Inclusion of Sub-File with specific Output Directory

Post by Tsukabishi »

Hello,

this is my first time posting here, and in English too, so sorry if i make too much mistakes.

I have used LaTeX for several years now, and this is the first time I can't find any explanation to a problem.

I'm using a computer on Ubuntu and recently, I have updated TeXmaker, and discover it could now "naturally" compile source files into another directory (which is ./build/) I have tried it, and I loved the result, but I'm now in front of a problem I can't solve :

if I put an \include command in the code, and if the file called is not in the same directory, I get an error message :

Code: Select all

! I can't write on file `cc/Salut.aux'.
\@include ...\immediate \openout \@partaux #1.aux
\immediate \write \@partau...
l.5 \include{cc/Salut}
I don't get this error message if I replace \include by \input nor if I simply use the compilation without the --output-directory option.

Here is a code that produce the error :

Code: Select all

\documentclass{article}

\begin{document}
salut
\include{cc/Salut}
\end{document}
The file "Salut.tex" only contains a word

Since the error is produced with such a short code I guess it is something relating to authorisation but I don't understand.

help me please !

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

Post Reply