I would like a have a macro that draws a boat.
In a .sty file I declared:
\def\bateau{\scalerel*{\includegraphics{/Users/colas/Documents/Maths_2017_2018/Macros/boat.pdf}}{b}}
and put the boat.pdf file in the same directory as the .sty file.
But, if I want to give a .tex file and my macros to someone, this will not work.
How should I do?
styandclsfiles works for images as well. – Johannes_B Dec 03 '17 at 14:46\makeatletter\input{<pathname>}\makeatother. The\includegraphics{boat}should be all that is needed and far more portable. – David Carlisle Dec 03 '17 at 17:29.styfile is a different directory than the.texfile. And, theboatfile is the directory of the.styfile. If I do\includegraphics{boat}it does not work. – Colas Dec 03 '17 at 18:10\usepackage{foo}is finding yourfoo.stythen\includegraphics{boat}should find your boat, the same search path is used. – David Carlisle Dec 03 '17 at 18:18\includegraphics{example-image}as that image file is in the same search path as latex packages and so can be included into any document without specifying any path. – David Carlisle Dec 03 '17 at 18:25usepackageis a name not a path. You should use\usepackage{longtable}the fact that on some systems\usepackage{/usr/local/texlive/2017/texmf-dist/tex/latex/tools/longtable}works with only a warning, not an error message is a failing of error checking in the latex system, not something to be exploited. – David Carlisle Dec 03 '17 at 19:15.xmlfile to the folder where is the.texfile with some meta info, rather than relying on the TEX install I use and some UNIX things. – Colas Dec 03 '17 at 19:40