39 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 ...
54k 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{\...
15k 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 \...
23k 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.
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 ...
4k 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 (...
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, ...
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 *....
4k 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[...
767 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 ...
838 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 ...
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} %...