Estilo de nota de aplicação

Estilo de nota de aplicação

Estou tentando configurar um estilo de nota de aplicativo e foi isso que descobri até agora:

\documentclass[a4paper,twocolumn,twoside,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[]{Chivo}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{pgf, tikz}
\usepackage{mathrsfs}
\usepackage{verbatim}
\usepackage{lastpage}

\usetikzlibrary{shapes, calc, shapes, arrows, babel}

\usepackage{amsmath, amssymb, textcomp}
\everymath{\displaystyle}


\usepackage{eurosym}

\usepackage{graphicx}
\graphicspath{{./img/}}
\usepackage{svg}
\usepackage{lipsum}

\usepackage{hyperref}

% custom header/footer
\usepackage{fancyhdr}
%\pagestyle{fancy}
\makeatletter
\newcommand{\logo}{\includegraphics[width=0.6\columnwidth]{logo.png}}
\newcommand{\logosmall}{\includegraphics[width=0.3\columnwidth]{logo.png}}
\newcommand{\claim}{©YYYY Company name, Inc. All rights reserved.\\ Trademarks and registered trademarks are the\\\vspace{-6pt} property of their respective owners.}
\newcommand{\website}{www.companysite.com}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newcommand*{\revision}[1]{\gdef\@revision{#1}}
\newcommand*{\code}[1]{\gdef\@code{#1}}
\newcommand*{\type}[1]{\gdef\@type{#1}}
%
%
% First page
%
\fancypagestyle{first}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    \fancyhead[L]{\logo}
    \fancyhead[R]{%
    \huge{\bf{%
    \@code\\
    \@type
    }}}%
    \renewcommand{\headrulewidth}{2pt}
    \headrule
    %
    \fancyfoot[L]{\@date}
    \fancyfoot[C]{\@revision}
    \fancyfoot[R]{Page~\thepage~of~\pageref{LastPage}}
}
%
% Document body
\fancypagestyle{body}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    %
    \fancyfoot[L]{\@date}
    \fancyfoot[C]{\@revision}
    \fancyfoot[R]{Page~\thepage~of~\pageref{LastPage}}
}
%
%
% Last page
\fancypagestyle{last}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    %
    \fancyfoot[L]{\vspace*{-10pt}{\tiny \claim}\\ \@date}
    \fancyfoot[C]{\vspace{-20pt}\logosmall\\ \@revision}
    \fancyfoot[R]{\fbox{%
    \parbox{0.3\textwidth}{
    \large{
    \vspace*{10pt}
    \textbf{\website}
    \vspace*{-5pt}
    }}}\\
    Page~\thepage~of~\pageref{LastPage}
    }
}
\makeatother

% custom title
\makeatletter
\renewcommand*{\maketitle}{%
\renewcommand{\familydefault}{\sfdefault}
\thispagestyle{first}
\twocolumn[
\let\clearpage\relax% Remove \clearpage functionality
\vspace*{-10pt}% Insert needed vertical retraction
\begin{@twocolumnfalse}
    \begin{center}
    \bf{
        {\LARGE\@title\par}
        \@author
        }
    \end{center}
    \end{@twocolumnfalse}
    \vspace*{30pt}
    ]
}%
\makeatother

\setcounter{secnumdepth}{0} % sections are level 1

\title{My Outstanding Application Note Title}
\author{J.~Doe}
\date{22.02.2019}
\revision{Rev.~0.1}
\code{AN-1}
\type{APPLICATION~NOTE}

\begin{document}
\maketitle
\tableofcontents
\clearpage
\pagestyle{body}

\section{Section}
\lipsum[1]

\section{Section}
\lipsum[2]

\subsection{Subsection}
\lipsum[3]

\section{Section}
\lipsum[4]

\subsection{Subsection}
\lipsum[5]

\paragraph{Paragraph}
\lipsum[6]

\subsection{Subsection}
\lipsum[7]

\paragraph{Paragraph}
\lipsum[8]

\newpage
\clearpage
\pagestyle{last}
\begin{onecolumn}
\begin{table}[!ht]%
\caption{Revision history.}
\label{}
\centering
\begin{tabular}{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
\hline
Revision & Author & Changes\\
\hline
cell 1 & cell 2 & cell 3\\
cell 1 & cell 2 & cell 3\\
\hline
\end{tabular}
\end{table}
\end{onecolumn}

\end{document}

Isso replica principalmente as notas do aplicativo Analog Devices que eu gosto muito (esperando não estar infringindo nenhum direito autoral).

No entanto, ainda não é isso que quero alcançar, pois não consigo obter o índice na segunda página (embora ainda seja bom tê-lo na primeira, que é algo que também gosto), não consigo obtenha informações da empresa logo acima da regra na primeira página e os rodapés da última página não estão alinhados corretamente. Por último, não sou um programador de látex muito bom, então acho que tudo poderia ser melhor organizado (talvez em uma classe/estilo).

Quero compartilhar meu código e pedir a alguém para melhorá-lo, se possível.

Obrigado.

EDITAR1: Eu venho com a seguinte etapa intermediária

\documentclass[a4paper,twocolumn,twoside,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[]{Chivo}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{pgf, tikz}
\usepackage{mathrsfs}
\usepackage{verbatim}
\usepackage{lastpage}
\usepackage{multirow}

\usepackage{tipa} % for the pipe symbol
\usepackage[left=1.25cm,right=1.25cm,top=1.8cm,bottom=5cm]{geometry}

\usepackage{amsmath, amssymb, textcomp}
\everymath{\displaystyle}


\usepackage{eurosym}

\usepackage{graphicx}
\usepackage{svg}
\usepackage{lipsum}

\usepackage{hyperref}

% custom header/footer
\usepackage{fancyhdr}
\makeatletter
\newcommand{\logo}{\includegraphics[width=0.3\columnwidth]{logo.png}}
\newcommand{\logosmall}{\includegraphics[width=0.15\columnwidth]{logo.png}}
\newcommand{\claim}{©YYYY Company name, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners.}
\newcommand{\website}{www.companysite.com}
\newcommand{\telephone}{123.456.7890}
\newcommand{\address}{\small{One Technology Way}\large{$\cdot$}\small{P.O.Box 9106}\large{$\cdot$}\small{Norwood,MA02062-9106,USA}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newcommand*{\revision}[1]{\gdef\@revision{#1}}
\newcommand*{\code}[1]{\gdef\@code{#1}}
\newcommand*{\type}[1]{\gdef\@type{#1}}
\newcommand*{\theCompany}{\textbf{{\address}\large{$\cdot$}\small{Tel:\telephone}\large{$\cdot$}\small{\website}}}
%
%
% First page
%
\fancypagestyle{first}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{94pt}
    \fancyhead[C]{
    \begin{tabular}[b]{p{0.3\linewidth}p{0.27\linewidth}p{0.3\linewidth}} % still having some alignment issues here
    \multirow{2}{1in}{\logo}    & &                    \\
                                & &                    \\
                                & & \huge{\bf{\@code}} \\
                                & & \huge{\bf{\@type}} \\
                                & &                    \\
    \multicolumn{3}{l}{\theCompany}                    \\
    \end{tabular}
    \vspace*{-15pt}
    }
    \renewcommand{\headrulewidth}{2pt}
    %\fancyfoot[C]{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
    \fancyfoot[C]{
    \begin{tabular}[b]{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
    & \footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}} & \\
    \end{tabular}
    }
}
%
% Document body
\fancypagestyle{body}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    %
    %\fancyfoot[C]{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
    \fancyfoot[C]{
    \begin{tabular}[b]{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
    & \footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}} & \\
    \end{tabular}
    }
}
%
%
% Last page
\fancypagestyle{last}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    \fancyfoot[C]{
    \begin{tabular}[b]{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
                        & \multirow{2}{1in}{\logosmall} & \\
    \footnotesize{\claim} &                               & \multirow{2}{1in}{\fbox{\parbox{0.3\textwidth}{\centering\large{\vspace*{10pt}\textbf{\website}\vspace*{5pt}}}}}\\
                        &                               & \\
                        &\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}&\\
    \end{tabular}
    }
}
\makeatother

% custom title
\makeatletter
\renewcommand*{\maketitle}{%
\renewcommand{\familydefault}{\sfdefault}
\thispagestyle{first}
\twocolumn[
\vspace*{-20pt}% Insert needed vertical retraction
\begin{@twocolumnfalse}
    \begin{center}
    \bf{
        {\LARGE\@title\par}
        \@author
        }
    \end{center}
    \end{@twocolumnfalse}
    \vspace*{20pt}
    ]
}%
\makeatother

\setcounter{secnumdepth}{0} % sections are level 1

\title{My Application Note Title}
\author{J.~Doe}
\date{22.02.2019}
\revision{Rev.~0.1}
\code{AN-1}
\type{APPLICATION~NOTE}

\begin{document}
\maketitle
\section{Introduction}
\lipsum[1]\lipsum[2]\lipsum[1]
\clearpage

\tableofcontents
\pagestyle{body}

\section{Section}
\lipsum[1]

\section{Section}
\lipsum[2]

\subsection{Subsection}
\lipsum[3]

\section{Section}
\lipsum[4]

\subsection{Subsection}
\lipsum[5]

\paragraph{Paragraph}
\lipsum[6]

\subsection{Subsection}
\lipsum[7]

\paragraph{Paragraph}
\lipsum[8]

\newpage
\clearpage
\pagestyle{last}
\begin{onecolumn}
\begin{table}[!ht]%
\caption{Revision history.}
\label{}
\centering
\begin{tabular}{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
\hline
Revision & Author & Changes\\
\hline
cell 1 & cell 2 & cell 3\\
cell 1 & cell 2 & cell 3\\
\hline
\end{tabular}
\end{table}
\end{onecolumn}

\end{document}

Agora no rodapé da última página coloquei um ambiente tabular com multilinhas que é replicado em todo o corpo do documento. Tentarei ajustar o alinhamento vertical para obter rodapés consistentes em todas as páginas.

Em relação à página de título usei o mesmo ambiente (tabular + multirow) para obter o alinhamento adequado e consegui colocar o endereço da empresa logo acima da regra horizontal (graças a @derBender). No entanto, ainda existem alguns problemas de alinhamento.

O "modelo" precisa, no entanto, de mais trabalho.

EDITAR2:

Com alguns ajustes eu descobri isso

\documentclass[a4paper,twocolumn,twoside,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[]{Chivo}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{pgf, tikz}
\usepackage{mathrsfs}
\usepackage{verbatim}
\usepackage{lastpage}
\usepackage{multirow}

\usepackage{tipa} % for the pipe symbol
\usepackage[left=1.25cm,right=1.25cm,top=1.8cm,bottom=5cm]{geometry}

\usepackage{amsmath, amssymb, textcomp}
\everymath{\displaystyle}


\usepackage{eurosym}

\usepackage{graphicx}
\usepackage{svg}
\usepackage{lipsum}

\usepackage{hyperref}

% custom header/footer
\usepackage{fancyhdr}
\makeatletter
\newcommand{\logo}{\includegraphics[width=0.3\columnwidth]{logo.png}}
\newcommand{\logosmall}{\includegraphics[width=0.15\columnwidth]{logo.png}}
\newcommand{\claim}{©YYYY Company name, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners.}
\newcommand{\website}{www.companysite.com}
\newcommand{\websitelast}{\fbox{\parbox{0.3\textwidth}{\centering\large{\vspace*{10pt}\textbf{\website}\vspace*{10pt}}}}}
\newcommand{\telephone}{123.456.7890}
\newcommand{\address}{\small{One Technology Way}\large{$\cdot$}\small{P.O.Box 9106}\large{$\cdot$}\small{Norwood,MA02062-9106,USA}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newcommand*{\revision}[1]{\gdef\@revision{#1}}
\newcommand*{\code}[1]{\gdef\@code{#1}}
\newcommand*{\type}[1]{\gdef\@type{#1}}
\newcommand*{\theCompany}{\textbf{{\address}\large{$\cdot$}\small{Tel:\telephone}\large{$\cdot$}\small{\website}}}
%
% First page
%
\fancypagestyle{first}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{94pt}
    \fancyhead[C]{
    \begin{tabular}[b]{lcr} % still having some alignment issues here
    \multirow{2}{1in}{\logo}    & &                    \\
                                & &                    \\
                                & & \huge{\bf{\@code}} \\
                                & & \huge{\bf{\@type}} \\
                                & &                    \\
    \multicolumn{3}{l}{\theCompany}                    \\
    \end{tabular}
    \vspace*{-15pt}
    }
    \renewcommand{\headrulewidth}{2pt}
    %\fancyfoot[C]{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
    \fancyfoot[C]{
    \begin{tabular}[b]{lcr}
    & \footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}} & \\
    \end{tabular}
    }
}
%
% Document body
\fancypagestyle{body}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    \setlength\footskip{73pt}
    %
\fancyfoot[C]{
    \begin{tabular}[b]{lcr}
        &                                                                         & \\
        &                                                                         & \\
        &                                                                         & \\
        & \footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}} & \\
    \end{tabular}
}
}
%
% Last page
\fancypagestyle{last}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    \setlength\footskip{73pt}
    %\multirow[<vpos>]{<nrows>}[<bigstruts>]{<width>}[<vmove>]{<text>}
    \fancyfoot[C]{
    \begin{tabular}[b]{p{0.4\linewidth}p{0.2\linewidth}p{0.4\linewidth}}
                        & \multirow[]{2}*[0.1in]{\logosmall} & \\
    \footnotesize{\claim} &                               & \multirow{2}*{\websitelast} \\
                        &                               & \\
                        &\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}} & \\
    \end{tabular}
    }
}
\makeatother

% custom title
\makeatletter
\renewcommand*{\maketitle}{%
\renewcommand{\familydefault}{\sfdefault}
\thispagestyle{first}
\twocolumn[
\vspace*{-20pt}% Insert needed vertical retraction
\begin{@twocolumnfalse}
    \begin{center}
    \bf{
        {\LARGE\@title\par}
        \@author
        }
    \end{center}
    \end{@twocolumnfalse}
    \vspace*{20pt}
    ]
}%
\makeatother

\setcounter{secnumdepth}{0} % sections are level 1

\title{My Outstanding Application Note Title}
\author{J.~Doe}
\date{22.02.2019}
\revision{Rev.~0.1}
\code{AN-1}
\type{APPLICATION~NOTE}

\begin{document}
\maketitle
\section{Introduction}
\lipsum[1]\lipsum[2]\lipsum[1]
\clearpage

\tableofcontents
\pagestyle{body}

\section{Section}
\lipsum[1]

\section{Section}
\lipsum[2]

\subsection{Subsection}
\lipsum[3]

\section{Section}
\lipsum[4]

\subsection{Subsection}
\lipsum[5]

\paragraph{Paragraph}
\lipsum[6]

\subsection{Subsection}
\lipsum[7]

\paragraph{Paragraph}
\lipsum[8]

\newpage
\clearpage
\pagestyle{last}
\begin{onecolumn}
\begin{table}[!ht]%
\caption{Revision history.}
\label{}
\centering
\begin{tabular}{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
\hline
Revision & Author & Changes\\
\hline
cell 1 & cell 2 & cell 3\\
cell 1 & cell 2 & cell 3\\
\hline
\end{tabular}
\end{table}
\end{onecolumn}

\end{document}

No entanto, o índice ainda está rodeado pelo corpo do texto.

EDITAR3: Seguindo minha versão final, estou feliz com

\documentclass[a4paper,twocolumn,twoside,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\usepackage[titles]{tocloft}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usepackage{lastpage}
\usepackage{multirow}

\usepackage{tipa} % for the pipe symbol
\usepackage[left=1.25cm,right=1.25cm,top=1.8cm,bottom=5cm]{geometry}

\usepackage{amsmath, amssymb, textcomp}


\usepackage{eurosym}

\usepackage{graphicx}
\usepackage{lipsum}

\usepackage{hyperref}

% custom header/footer
\usepackage{fancyhdr}
\makeatletter
\newcommand{\logo}{\includegraphics[draft,width=0.7\columnwidth]{logo.png}}
\newcommand{\logosmall}{\includegraphics[draft,width=0.2\columnwidth]{logo.png}}
\newcommand{\claim}[1]{\gdef\@claim{#1}}
\newcommand{\site}[1]{\gdef\@site{#1}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newcommand*{\revision}[1]{\gdef\@revision{#1}}
\newcommand*{\id}[1]{\gdef\@id{#1}}
\newcommand*{\type}[1]{\gdef\@type{#1}}
\newcommand*{\info}[1]{\gdef\@info{#1}}
%
% First page
%p{0.3\textwidth}p{0.3\textwidth}p{0.3\textwidth}
\fancypagestyle{first}{
    %\renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{94pt}
    \fancyhead[C]{
    \begin{tabular}[b]{lcr} % still having some alignment issues here
    \multirow{2}*[-0.1in]{\logo} & &                                   \\
                                & & \huge{\textbf{\textsf{\@id}}}     \\
                                & & \huge{\textbf{\textsf{\@type}}}   \\
    \multicolumn{3}{b{0.95\textwidth}}{\footnotesize{\textsf{\@info}}} \\
    \end{tabular}
    }
    \vspace*{-5pt}
    \renewcommand{\headrulewidth}{2pt}
    %\fancyfoot[C]{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
    \fancyfoot[C]{
    \begin{tabular}[b]{lcr}
    & \textsf{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}} & \\
    \end{tabular}
    }
}
%
% Document body
\fancypagestyle{body}{
    %\renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\textsf{\@id}}
    \hfill
    \textbf{\textsf{\color{lightgray}{\@type}}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\textsf{\color{lightgray}{\@type}}}
    \hfill \textbf{\textsf{\@id}}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    \setlength\footskip{73pt}
    %
\fancyfoot[C]{
    \begin{tabular}[b]{lcr}
        &                                                                         & \\
        &                                                                         & \\
        &                                                                         & \\
        & \textsf{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}} & \\
    \end{tabular}
}
}
%
% Last page
\fancypagestyle{last}{
    %\renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\textsf{\@id}}
    \hfill
    \textbf{\textsf{\color{lightgray}{\@type}}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\textsf{\color{lightgray}{\@type}}}
    \hfill \textbf{\textsf{\@id}}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    \setlength\footskip{73pt}
    %\multirow[<vpos>]{<nrows>}[<bigstruts>]{<width>}[<vmove>]{<text>}
    \fancyfoot[C]{
    \begin{tabular}[b]{p{0.4\linewidth}p{0.2\linewidth}p{0.4\linewidth}}
                        & \multirow[]{2}*[-0.15in]{\logosmall} & \\
    \textsf{\footnotesize{\@claim}} &                               & \multirow[]{2}*[0.1in]{\fbox{\parbox{0.3\textwidth}{\centering\large{\vspace*{10pt}\textbf{\textsf{\@site}}\vspace*{10pt}}}}} \\
                        &                               & \\
                        &\textsf{\footnotesize{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}} & \\
    \end{tabular}
    }
}
\makeatother

% custom title
\makeatletter
\renewcommand*{\maketitle}{%
%\renewcommand{\familydefault}{\sfdefault}
\thispagestyle{first}
\twocolumn[
\vspace*{-20pt}% Insert needed vertical retraction
\begin{@twocolumnfalse}
    \begin{center}
        {\LARGE\textbf{\textsf{\@title}}\par}
        \textbf{\textsf{\@author}}
    \end{center}
    \end{@twocolumnfalse}
    \vspace*{20pt}
    ]
}%
%
\makeatother

\setcounter{secnumdepth}{0} % sections are level 1
\titleformat*{\section}{\Large\bfseries\sffamily}
\titleformat*{\subsection}{\large\bfseries\sffamily}
\titleformat*{\subsubsection}{\bfseries\sffamily}
\titleformat*{\paragraph}{\large\bfseries\sffamily}
\titleformat*{\subparagraph}{\bfseries\sffamily}
\renewcommand{\cftsecfont}{\bfseries\sffamily}
\renewcommand{\cftsubsecfont}{\sffamily}
\renewcommand{\cftsubsubsecfont}{\sffamily}

\title{My Outstanding Application Note Title}
\author{J.~Doe}
\date{22.02.2019}
\revision{Rev.~0.1}
\id{AN-1}
\type{APPLICATION~NOTE}
\info{Please place here company infos.}
\claim{Please, place here your copyright notice.}
\site{www.companysite.com}

\begin{document}
\maketitle
\tableofcontents
\clearpage
\pagestyle{body}

\section{Section}
\lipsum[1-4]

\section{Section}
\lipsum[1]

\section{Section}
\lipsum[2]

\subsection{Subsection}
\lipsum[3]

\subsubsection{Subsubsection}
\lipsum[4]

\subsection{Subsection}
\lipsum[5]

\paragraph{Paragraph}
\lipsum[6]

\subparagraph{Subparagraph}
\lipsum[7]

\newpage
\clearpage
\pagestyle{last}
\begin{onecolumn}
\begin{table}[!ht]%
\caption{Revision history.}
\label{}
\centering
\begin{tabular}{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
\hline
Revision & Author & Changes\\
\hline
cell 1 & cell 2 & cell 3\\
cell 1 & cell 2 & cell 3\\
\hline
\end{tabular}
\end{table}
\end{onecolumn}

\end{document}

Responder1

Pensei em algo bastante decente, eu acho... mas ainda pode ser melhorado

\documentclass[a4paper,twocolumn,twoside,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[]{Chivo}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{pgf, tikz}
\usepackage{mathrsfs}
\usepackage{verbatim}
\usepackage{lastpage}

\usepackage{tipa} % for the pipe symbol
\usepackage[left=1.25cm,right=1.25cm,top=1.8cm,bottom=5cm]{geometry}

\usetikzlibrary{shapes, calc, shapes, arrows, babel}

\usepackage{amsmath, amssymb, textcomp}
\everymath{\displaystyle}


\usepackage{eurosym}

\usepackage{graphicx}
\graphicspath{{./img/}}
\usepackage{svg}
\usepackage{lipsum}

\usepackage{hyperref}

% custom header/footer
\usepackage{fancyhdr}
%\pagestyle{fancy}
\makeatletter
\newcommand{\logo}{\includegraphics[natwidth=100px,natheight=100px,width=0.6\columnwidth]{logo.png}}
\newcommand{\logosmall}{\includegraphics[natwidth=100px,natheight=100px,width=0.2\columnwidth]{logo.png}}
\newcommand{\claim}{©YYYY Company name, Inc. All rights reserved.\\ Trademarks and registered trademarks are the\\\vspace{-6pt} property of their respective owners.}
\newcommand{\website}{www.companysite.com}
\newcommand{\telephone}{123.456.7890}
\newcommand{\address}{\small{One Technology Way}\large{$\cdot$}\small{P.O.Box 9106}\large{$\cdot$}\small{Norwood,MA02062-9106,USA}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newcommand*{\revision}[1]{\gdef\@revision{#1}}
\newcommand*{\code}[1]{\gdef\@code{#1}}
\newcommand*{\type}[1]{\gdef\@type{#1}}
\newcommand*{\theCompany}{\textbf{{\address}\large{$\cdot$}\small{Tel:\telephone}\large{$\cdot$}\small{\website}}}
%
%
% First page
%
\fancypagestyle{first}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    \fancyhead[L]{\logo\\}
    \fancyhead[R]{
                    \huge{
                        \bf{
                            \@code\\
                            \@type\\
                           }
                    }
                 }
    \fancyhead[C]{~\\~\\\theCompany}
    \renewcommand{\headrulewidth}{2pt}
    %
    %\vspace*{-30pt}
    \fancyfoot[C]{\tiny{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
}
%
% Document body
\fancypagestyle{body}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}
    %
    \fancyfoot[C]{\tiny{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
}
%
%
% Last page
\fancypagestyle{last}{
    \renewcommand{\familydefault}{\sfdefault}
    \setlength\headheight{47pt}
    %\renewcommand{\topmargin}{0pt}
    % even pages
    \fancyhead[CE]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\@code}
    \hfill
    \textbf{\color{lightgray}{\@type}}
    }
    \vspace*{10pt}
    }}}%
    % odd pages
    \fancyhead[CO]{\fbox{%
    \parbox{\textwidth}{
    \vspace*{10pt}\huge{
    \textbf{\color{lightgray}{\@type}}
    \hfill \textbf{\@code}
    }
    \vspace*{10pt}
    }}}%
    \renewcommand{\headrulewidth}{0pt}

    \fancyfoot[L]{\vspace*{-10pt}{\tiny \claim}}
    \fancyfoot[C]{\vspace{-60pt}\hspace{1cm}\logosmall\\\tiny{\@revision\textpipe{}Page~\thepage~of~\pageref{LastPage}}}
    \fancyfoot[R]{\fbox{%
    \parbox{0.3\textwidth}{
    \centering
    \large{
    \vspace*{10pt}
    \textbf{\website}
    \vspace*{5pt}
    }}}\\
    ~
    }
}
\makeatother

% custom title
\makeatletter
\renewcommand*{\maketitle}{%
\renewcommand{\familydefault}{\sfdefault}
\thispagestyle{first}
\twocolumn[
%\let\clearpage\relax% Remove \clearpage functionality
\vspace*{-10pt}% Insert needed vertical retraction
\begin{@twocolumnfalse}
    \begin{center}
    \bf{
        {~\par}
        ~
        }
    \end{center}
    \end{@twocolumnfalse}
    \vspace*{90pt}
    ]
}%
\makeatother

\setcounter{secnumdepth}{0} % sections are level 1

\title{}
\author{}
\date{22.02.2019}
\revision{Rev.~0.1}
\code{AN-1}
\type{APPLICATION~NOTE}

\begin{document}
    \maketitle
    \begin{center}
        %\title
        %\author{J.~Doe}
        \renewcommand{\title}{My Application Note Title}
        \renewcommand{\author}{J.~Doe}
        \Large{\textbf{\title \\ by \author}}
    \end{center}
\section{Introduction}
\lipsum[1]\lipsum[2]\lipsum[1]
\clearpage

\tableofcontents
\pagestyle{body}

\section{Section}
\lipsum[1]

\section{Section}
\lipsum[2]

\subsection{Subsection}
\lipsum[3]

\section{Section}
\lipsum[4]

\subsection{Subsection}
\lipsum[5]

\paragraph{Paragraph}
\lipsum[6]

\subsection{Subsection}
\lipsum[7]

\paragraph{Paragraph}
\lipsum[8]

\newpage
\clearpage
\pagestyle{last}
\begin{onecolumn}
\begin{table}[!ht]%
\caption{Revision history.}
\label{}
\centering
\begin{tabular}{p{0.3\linewidth}p{0.3\linewidth}p{0.3\linewidth}}
\hline
Revision & Author & Changes\\
\hline
cell 1 & cell 2 & cell 3\\
cell 1 & cell 2 & cell 3\\
\hline
\end{tabular}
\end{table}
\end{onecolumn}

\end{document}

insira a descrição da imagem aqui insira a descrição da imagem aqui insira a descrição da imagem aqui

Os problemas conhecidos são:

-título não centralizado acima de ambas as colunas

-toc não está em página separada

-footer na página final não totalmente alinhado (talvez alguns hspaces e vspaces possam ajudar aqui?)

Responder2

Mover o \tableofcontentsdepois (em vez de antes) \clearpagesfuncionou para mim.

Além disso, aqui vão algumas pequenas sugestões: No início tive problemas ao compilar seu MWE porque o LaTeX não conseguiu descobrir as dimensões do logo.png(e eu sei que não consegue mesmo se o arquivo estivesse presente) então o que eu costumo fazer nesses casos é adicionar um natheight=100px, natwidth=100px(ou qualquer outro número, verifique em seus arquivos) ao\includegraphics

Editar% s:Achei que para parecer um pouco mais com uma nota de aplicativo do AD, o rodapé precisa ser um pouco diferente: não há data no rodapé (então omiti essa linha) e a "Página x de y" está centralizada mas separado do número de revisão por um "|" (arquivado por \usepackage{tipa}e \textpipetambém o tamanho do texto é muito pequeno, então coloquei o texto no rodapé com um{\tiny…}

Temporariamente criei o seguinte logotipo (tamanho 100 px * 100 px):

insira a descrição da imagem aqui

informação relacionada