I've been trying to make a proper header for my lab reports, that uses a table with 2 pictures. Thing is, each cell in the table has a different length.

Using this online table generator I was kind of able to emulate the tables my university uses as headers.

The code I got is:




       {\tiny \textsc{\begin{tabular}[c]{@{}c@{}}Universidad de Costa Rica\\ 
        Escuela de Ingeniería Eléctrica\\ Departamento de Electrónica Y 
       {\tiny \textsc{\begin{tabular}[c]{@{}c@{}}\hfill \adjustbox{valign=t] 
       {\includegraphics[width=1cm, height=1.10cm]{images/escudo}
        \includegraphics[width=2cm, height=1.10cm]{images/eie}}
       \hfill Pág.\thepage \\ \end{tabular}}}  \\


        {\tiny \textsc{\begin{tabular}[c]{@{}c@{}}Preparado por: \\
        Author, ID\\ Author, ID\\ Author, ID \end{tabular}}  }    
        & \multicolumn{4}{c|}
        {{\tiny \textsc{\begin{tabular}[c]{@{}c@{}}IE|0307 Electromagnetismo
          I - I Ciclo 2018\\ Laboratorio de Electromagnetismo y 
          Radiofrecuencia|Reporte Práctica Experimental 01\\ 
         \end{tabular}}}} \\ 



And with that the result I get is this:

Table Obtained

The thing is that I'm not familiar to the facyheader package, and I haven't been able to put that table as a header.

Also, I'm supposed to put the date beneath the page count, but I'm not able to, because of how the table is structured.

I've seen similar posts such as Table as Header and Footer and Table as Header - How to? but none are quite the same, and I've been hard stuck with this. I would greatly appreciate if you could help me understand this one.


enter image description here

based on my answer to question Table as Header - How to?:



\fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers
Universidad de Costa Rica\newline
Escuela de Ingeniería Eléctrica\newline
Departamento de Electrónica Y\newline
    &   \hfill%
        \includegraphics[width=1cm, height=1.10cm, valign=t, margin=0pt 3pt 0pt 0pt]{images/escudo}
        \includegraphics[width=2cm, height=1.10cm, valign=t,margin=0pt 3pt 0pt 0pt]{images/eie}
        \hfill Pág.\thepage \\
    \end{tabularx}      \\[-1pt]
\makecell{Preparado por: \\
Author, ID\\
Author, ID\\
Author, ID}
    & \makecell{Electromagnetismo I - I Ciclo 2018\\
      Laboratorio de Electromagnetismo y Radiofrecuencia
          -- Reporte Práctica Experimental 01}                   \\



in real document please remove graphicx's option demo.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.