TeX - LaTeX Asked by pi.314 on November 29, 2020
I have such a structure:
..path..pytgo.py
..path..texbasebase.sty
..path..texbaseimg1.jpg
..path..texbookbook1.tex
..path..texbookimagesimg.pdf
..path..texbookbin
..path..texbookpdfs
inside book1.tex there is:
includegraphics{images/img.pdf}
from go.py (python script) i call commands:
set TEXINPUTS="..texbase"
pdflatex -quiet "..texbookbook1.tex" -output-directory "..texbookbin"
but build fails because: File ‘images/img.pdf’ is not found
How can i tell pdflatex to read paths inside tex files as relative to its path..?
(But this base.sty – can take its 1.jpg file which is attached like: img/1.jpg)
If i remove image, everything builds succesfully.
I have found the answear!
inside book1.tex file just add graphicspath
command with two paths:
graphicspath{{images/}{../book/images/}}
First path is valid from .tex files folder (usefull for manual build) The second path is valid from build scripts folder. Finally, images are included just by their filenames:
includegraphics{img.pdf}
Answered by pi.314 on November 29, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP