% Macros LaTeX para poster SIBGRAPI
% \newcommand{\lastedit}{2001-10-13 05:47:43 by stolfi}

\makeatletter \endlinechar=-1
 
  \DeclareFontFamily{T1}{cmss}{}
  \DeclareFontShape{T1}{cmss}{bx}{n}{
    <5><6><7><8><9><10><10.95><12><14.4>
    <17.28><20.74><24.88><29.86><35.83>
    genb*ecsx <-> ecsx17
  }{}
  \DeclareFontShape{T1}{cmss}{m}{n}{
    <5><6><7><8><9><10><10.95><12><14.4>
    <17.28><20.74><24.88><29.86><35.83>
    genb*ecss <-> ecss17
  }{}
  \DeclareFontShape{T1}{cmss}{m}{sl}{
    <5><6><7><8><9><10><10.95><12><14.4>
    <17.28><20.74><24.88><29.86><35.83>
    genb*ecsi <-> ecsi17
  }{}
  
  \newcommand{\titlefont}{
    \fontencoding{T1}\fontfamily{cmss}\fontseries{bx}
    \fontshape{n}\fontsize{28}{32pt}\selectfont
  }
  \newcommand{\authorfont}{
    \fontencoding{T1}\fontfamily{cmss}\fontseries{b}
    \fontshape{n}\fontsize{17}{20pt}\selectfont
  }
  \newcommand{\instfont}{
    \fontencoding{T1}\fontfamily{cmss}\fontseries{m}
    \fontshape{sl}\fontsize{14}{16pt}\selectfont
  }
  \newcommand{\addrfont}{
    \fontencoding{T1}\fontfamily{cmss}\fontseries{b}
    \fontshape{n}\fontsize{14}{16pt}\selectfont
  }
  \newcommand{\mainfont}{
    \fontencoding{T1}\fontfamily{cmss}\fontseries{m}
    \fontshape{n}\fontsize{12}{14pt}\selectfont
  }
  
  \newcommand{\titlebox}[3]{
    \psframebox[fillstyle=solid,fillcolor=#1]{%
      \color{black}%
      \hbox{
        \titlefont
        \begin{tabular}{c}
          \textup{#2}\\[-5pt]
          \textsl{#3}
        \end{tabular}
      }
    }
  }
  
  \newcommand{\authorbox}[5]{
    \psframebox[fillstyle=solid,fillcolor=#1]{%
      \color{black}%
      \hbox{
        \begin{tabular}{c}
          \authorfont #2\\[3pt]
          \instfont #3\\
          \instfont #4\\
          \addrfont #5
        \end{tabular}
      }
    }
  }
  
  \newcommand{\textbox}[4]{
    \hbox to 72mm{
      \hss
      \hbox to 0pt{
        \hss
        \vtop{
          \offinterlineskip
          \hrule height 0pt width 0pt
          \hbox{
            \psframebox[fillstyle=solid,fillcolor=#3,framesep=2.0mm]{%
              \begin{minipage}{72mm}
                \mainfont
                \vrule width 0pt height 3ex
                #4
              \end{minipage}
            }
          }
        }
        \hss
      }
      \hbox to 0pt{
        \hss
        \psframebox[fillstyle=solid,fillcolor=#1]{%
          \mainfont
          \vrule width 0pt height 0.65\baselineskip depth 0.20\baselineskip
          \textbf{#2}
        }
        \hss
      }
      \hss
    }
  }
  
  \newcommand{\figurebox}[2]{
    \psframebox[fillstyle=solid,fillcolor=#1,linecolor=black]{#2}
  }
  
  \newcommand{\backbox}[2]{
    \psframebox[fillstyle=solid,fillcolor=#1,linestyle=none,framesep=0pt]{#2}
  }
  
  % Usage: \adjustbox{WD}{HT}{XLEFT}{XTOP}
  %
  \newcommand{\adjustbox}[5]{
    \vbox to #2{
      \offinterlineskip
      \hrule height 0pt width 0pt
      \kern #4
      \hbox to #1{
        \vrule width 0pt
        \kern #3
        #5
        \hss
        \vrule width 0pt
      }
      \vss
      \hrule height 0pt width 0pt
    }
  }

\makeatother \endlinechar=`\^^M
