% load this first
\usepackage[dvipsnames,table,xcdraw]{xcolor}
% other packages 
\usepackage[export]{adjustbox}
\usepackage{anyfontsize}
\usepackage[T1]{fontenc}
\usepackage{framed}
\usepackage{graphicx}
\usepackage{hyphenat}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{lmodern}
\usepackage{multicol}
\usepackage{vwcol}  
\usepackage{tikz}

% set margins
\newcommand\postermargin{1cm}
\usepackage[margin=\postermargin, top=0cm, bottom=0cm]{geometry}

% sans serif font
\renewcommand{\familydefault}{\sfdefault}
% sets page numbering off
\pagenumbering{gobble}
% images path
\graphicspath{{./images/}}

% poster color
\colorlet{exp}{RoyalPurple}
\colorlet{methods}{Maroon}%or BrickRed
\colorlet{theory}{MidnightBlue}

% makes title
\makeatletter
\def\@maketitle{
  \vspace{0.5cm}
    {\Huge \bf
        \begin{flushleft}
            \@title
        \end{flushleft}
    }\vspace{-0.5em}
    { \@author}
}
\makeatother

% makes header
\newcommand{\makefinding}[1]{
    \vspace*{-1cm} % get rid of random white space
    \noindent\makebox[\linewidth][c]{%
      \colorbox{\postertype}{%
        \parbox[t][0.2\paperheight][c]{\paperwidth}{%
          \hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
          \begin{minipage}{\textwidth}
          \textcolor{white}
            {\fontsize{40}{50} \selectfont
            \begin{center}
                 \nohyphens{#1}
            \end{center}
            }
          \end{minipage}%
        }%
      }%
    }\par\medskip
}

% makes footer
\newcommand{\makefooter}[2]{
    \vspace*{\fill}
    \noindent\makebox[\linewidth][c]{%
      \colorbox{\postertype}{%
        \parbox[c][0.14\paperheight][c]{\paperwidth}{%
          \hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
          \begin{minipage}[c][0.14\paperheight][c]{0.15\textwidth}
                \includegraphics[height=0.11\paperheight, left]{#2}
          \end{minipage}
          \begin{minipage}[c][0.14\paperheight][c]{0.3\textwidth}
          \end{minipage}
          \hfill
          \begin{minipage}[c][0.14\paperheight][c]{0.2\textwidth}
            \includegraphics[height=0.11\paperheight, left]{#1}
          \end{minipage}
        }%
      }%
    }\par\medskip
}

% alternative footer
\newcommand{\makealtfooter}[2]{
    \vspace*{\fill}
    \noindent\makebox[\linewidth][c]{%
      \colorbox{\postertype}{%
        \parbox[c][0.14\paperheight][c]{\paperwidth}{%
          \hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
          \begin{minipage}[c][0.14\paperheight][c]{0.3\textwidth}
            % your logo here
            \includegraphics[height=0.05\paperheight, left]{#1}
            \end{minipage}
          \hfill
          \begin{minipage}[c][0.14\paperheight][c]{0.4\textwidth}
            \begin{flushright}
                \textcolor{white}
                {\large{
                    GitHub repo $\rightarrow$}
                }
                \end{flushright}
          \end{minipage}
          \begin{minipage}[c][0.14\paperheight][c]{0.2\textwidth}
                \includegraphics[height=0.11\paperheight, left]{#2}
          \end{minipage}
        }%
      }%
    }\par\medskip
}


% makes main column
\newcommand{\makemain}[1]{
    \noindent
    \parbox[t][0.55\paperheight][t]{0.65\linewidth}{%
    
        {\let\newpage\relax\maketitle}
        #1
    }
}


% makes additional figures column
\newcommand{\makeextracolumn}[1]{
    \hfill\begin{tikzpicture}[overlay]
    \draw[\postertype, very thick] (0,0.01\paperheight) -- (0,-0.56\paperheight);
    \end{tikzpicture}
    \hfill
    \parbox[t][0.55\paperheight][t]{0.3\linewidth}{
        \section*{Extra figures}
        
        {\scriptsize
        #1
        }
    }
}

