Linked Questions

0
votes
0answers
25 views

File paths not relative to main.tex but relative to subfile [duplicate]

I am looking for a way, if possible, of specifying file paths not relative to the main document but to the subdocument in which they are contained. As background: I am writing my thesis chapter by ...
33
votes
4answers
49k views

\input and absolute paths

Sometimes it is convenient to use an absolute path to include a preamble. To do so, I use the following "hack": \documentclass[a4paper, 12pt]{article} \newcommand{\folder}{/path/to/folder} \input{\...
32
votes
2answers
20k views

Definition of the TEXINPUTS variable

I am using TeX Live 2012/Debian on Linux Mint 14. I am wondering what the right definition of the TEXINPUTS variable is.
47
votes
1answer
13k views

Can a default path be set globally for \input{…} akin to \graphicspath{…}?

For the graphicx package, we can use \graphicspath{...} so that we can directly use filenames in the argument of \includegraphics{...}. Can a similar thing be done for directly using filenames in \...
16
votes
2answers
2k views

Path problem with included file inside of a standalone file

How can I get the current path inside an included standalone file? 1. Theoretical Example: let's assume the following directory structure: main.tex img/ |-standalonefile.tex |-data ...
9
votes
2answers
3k views

Is there any way to build a LaTeX document from a parent directory?

I've written a makefile for my current project which produces all deliverables (executable, written in C, and report, written in LaTeX). I have a directory structure whereby the Makefile and outputs (...
3
votes
3answers
2k views

dynamic paths in latex

Im trying to link from my preamble to some pictures used in the header. My problem is i use the same preamble in multiple documents. lets say the preamble and the needed picture is in the top folder, ...
2
votes
1answer
3k views

How to include all files within a directory relative to the edited *.tex-file?

I am writing my reports which need to reference complete *.java files with latex. I am using the Texlipse Eclipse plugin to do the editing. Right now I am referencing the complete path to each *....
6
votes
1answer
3k views

Combining different projects into one (papers into PhD Thesis)

My question is similar to this one, but I have a problem with relative paths when including files. Assume I have three projects which all start with \documentclass[12pt,a4paper]{article} \usepackage[...
3
votes
2answers
739 views

lualatex does not work with import/subimport when used in standalone setup

Using TL 2015. I have this setup main.tex folderA/a.tex a.png and using standalone to combine both documents. The file a.tex has an includesgraphics{a.png} where the file a.png is in the ...
2
votes
1answer
2k views

Set a subfolder for \include(only)

Let’s assume a project with a main file main.tex including the chapter with \include. % main.tex \documentclass{book} \includeonly{one} \begin{document} \include{one} \include{two} \end{document} %...
1
vote
2answers
546 views

How to do multiple calls to \includeonly?

Doing multiple call to include only as: \includeonly{myfirstinclude} \includeonly{mysecondinclude} It is only including the last file called mysecondinclude by the last \includeonly call. It is ...
2
votes
1answer
668 views

Problem with graphicspath and pdf_tex

I use \input for a subsection, in which I would like to include a pdf_tex file MK.pdf_tex via \input. The pdf_tex files are in a folder /fig. If I use \input{./fig/MK.pdf_tex} it returns the error "MK....
2
votes
1answer
222 views

Include figure relative to path of package

For my thesis I'm using a given package from my university (titlepage.sty). Inside this package a figure is included VUB_logo. However, I wanted to put the packages I use in a folder named packages ...