\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{custommacros}[2017/10/16 v0.1 Custom macros and helpers]

\RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage{hyperref}
\RequirePackage{xparse}

\newcommand{\todo}[1][To be updated later!]{{\color{red} TODO: {#1}}}

\makeatletter
\def\app@exe{\immediate\write18}
\def\inputAllFiles#1{%
  \app@exe{ls #1/*.tex | xargs cat >> #1/\jobname.tmp}%
  \InputIfFileExists{#1/\jobname.tmp}{}
  \AtEndDocument{\app@exe{rm -f #1/\jobname.tmp}}}
\makeatother

%%% This macro is a drop in replacement for \includegraphics that ensures the images
%%% aspect ratio is maintained when changing its width, height or scale 
%%% Usage \imageKeepAspect[keyvals]{imagePath}
\NewDocumentCommand{\imageKeepAspect}{+O{width=\textwidth,height=\textheight}+m}{%
	\includegraphics[#1,keepaspectratio]{#2}
}

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{custommacros}[2017/10/16 v0.1 Custom macros and helpers]

\RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage[hidelinks]{hyperref}
\RequirePackage{xparse}

\newcommand{\todo}[1][To be updated later!]{{\color{red} TODO: {#1}}}

\makeatletter
\def\app@exe{\immediate\write18}
\def\inputAllFiles#1{%
  \app@exe{ls #1/*.tex | xargs cat >> #1/\jobname.tmp}%
  \InputIfFileExists{#1/\jobname.tmp}{}
  \AtEndDocument{\app@exe{rm -f #1/\jobname.tmp}}}
\makeatother

%%% This macro is a drop in replacement for \includegraphics that ensures the images
%%% aspect ratio is maintained when changing its width, height or scale 
%%% Usage \imageKeepAspect[keyvals]{imagePath}
\NewDocumentCommand{\imageKeepAspect}{+O{width=\textwidth,height=\textheight}+m}{%
	\includegraphics[#1,keepaspectratio]{#2}
}

Hide colored borders around hyperlinks
Hide colored borders around hyperlinks
