diff --git a/report.tex b/report.tex index a9564c3..a0d53eb 100644 --- a/report.tex +++ b/report.tex @@ -15,6 +15,14 @@ \input{utils/super_macro} +%\SetInputPaths{% +% {./}% +% {./utils/}% +% {./utils/covers/}% +% {./chapters/}% +% {./packages/}% +%} + % Set whether twoside enable of not (true or false), by default twoside %\twosidelayout[true] % select twoside layout %\twosidelayout[false] % select oneside layout diff --git a/utils/super_macro.tex b/utils/super_macro.tex index 457d7b6..8ff3c28 100644 --- a/utils/super_macro.tex +++ b/utils/super_macro.tex @@ -3,6 +3,33 @@ \global\def\printabletext{true} \global\def\printableimages{true} +% define .tex file paths to load from, also useful for images path +% https://tex.stackexchange.com/questions/21904/input-and-absolute-paths +%\makeatletter% +%\def\input@path{% +% {./}% +% {./utils/}% +% {./utils/covers/}% +% {./chapters/}% +% {./packages/}% +%}% +%\makeatother% + +%% https://ctan.math.illinois.edu/macros/latex/required/graphics/graphics.pdf +%% SEE: \graphicspath pag. 11 +\makeatletter% +\def\SetInputPaths#1{% + \def\MyPaths@input{#1}% + \ifx\input@path\@defined% + \let\input@path\MyPaths@input% + \typeout{@@@@@@@@@@@@@ Input path variable defined, setting paths ...}% + \else% + \typeout{@@@@@@@@@@@@@ Input path variable not defined, creating and setting paths ...}% + \gdef\input@path{\MyPaths@input}% + \fi% +}% +\makeatother% + \newcommand{\setprintabletext}[1]{ \ignorespaces\lowercase{\def\tmp{#1}}\unskip