TransWikia.com

input files with graphics in directories

TeX - LaTeX Asked on August 26, 2020

I have a directory structure consisting of a a Main folder in which there are subfolders Chapter1, Chapter2, …

Each of these subfolders contains a tex file and a number of image files that are to be used in that particular chapter only.

The chapter files are included in a main.tex which resides in the main folder and consists basically of:

documentclass{article}
begin{document}
    input{Chapter1/chapter1.tex}
    input{Chapter2/chapter2.tex}
end{document}

I am aware that I can include image files in a chapter.tex by specifying the path relative to the Main folder, e.g. in chapter1.tex I could write:

includesvg{Chapter1/img}

Is there a way to avoid specifying the folder (or to specify it only once)? I’d rather write:

includesvg{img}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP