![如何创建此文档模板](https://linux22.com/image/420321/%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E6%AD%A4%E6%96%87%E6%A1%A3%E6%A8%A1%E6%9D%BF.png)
答案1
我无法从您的问题中弄清楚绿色矩形是否必须出现在其他页面上。如果是这种情况,请取消注释\lhead{\greenRectangle}
序言中的命令。
有关代码的更多评论请参阅我的回答徽标图片的边距。
生成上述pdf的代码:
\documentclass[11pt, a4paper]{article}
\usepackage{geometry}
\geometry{total={155mm, 255mm}, left=48mm, top=20mm}
%%% fonts
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\def\footrulewidth{0pt}
\def\headrulewidth{0pt}
%%% uncomment the line below if the green rectangle is needed on all pages
% \lhead{\greenRectangle}
\rhead{\grayRectangle}
\cfoot{}
\rfoot{\thepage}
\definecolor{aGreen}{RGB}{0, 159, 104}
\newcommand{\greenRectangle}{%
\begin{tikzpicture}[remember picture, overlay]
\fill[aGreen] ($(current page.north west)+(3ex, -2ex)$)
rectangle ($(current page.south west)+(43mm, 2ex)$);
\path ($(current page.south west)+(3ex, 8ex)$)
node[white, text width=40mm, align=left, below right, scale=.9]
{\itshape{Direcci\'on de \\Estudias Econ\'omicos}};
\end{tikzpicture}
}
\newcommand{\grayRectangle}{%
\begin{tikzpicture}[remember picture, overlay]
\fill[gray!60] ($(current page.north west)+(3ex, -3ex)$)
rectangle ($(current page.north east)+(-3ex, -7ex)$);
\path ($(current page.north west)+(3ex, -6.5ex)$)
node[white, above right, scale=.9]
{\itshape{Industria Manufacturera}};
\path ($(current page.north east)+(-3.1ex, -6.5ex)$)
node[white, above left, scale=.9]
{\itshape{Abril 2020}};
\end{tikzpicture}
}
%%% tmp packages
% \usepackage{showframe}
\usepackage{lipsum}
\begin{document}
\titlepage
\greenRectangle
%%% title
\begin{tikzpicture}
\path[use as bounding box] (0, 0) rectangle +(15, .1);
\draw[ultra thick, fill=gray!65] (-5.3, .7)
rectangle
node[pos=.85, fill=blue, below right, inner sep=2.2ex, text width=9ex] {}
+(20.6, 1.3);
\path (-1.2, .7) node[above right, text=white, scale=2]
{\itshape\textbf{Industria Manufacturera}};
\end{tikzpicture}
\section*{ABRIL 2020}
\lipsum[1, 2-8]
\end{document}