Skip to content

Commit

Permalink
review folder paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomtzlosa committed Jan 27, 2024
1 parent bd7391b commit 64e529f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions utils/super_macro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64e529f

Please sign in to comment.