I need to create a signature page as shown in the image below in LaTeX. I have no clue on where to start and the commands that I would need. Could someone please help me.
[Tex/LaTex] How to create a signature, date page
formatting
Related Solutions
I swear somebody said TikZ!
\documentclass{standalone}
\usepackage{tikz}
\usepackage{PTSansNarrow}
\usepackage[T1]{fontenc}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\clip node (m) [matrix,matrix of nodes,
fill=black!20,inner sep=0pt,
nodes in empty cells,
nodes={minimum height=1cm,minimum width=2.6cm,anchor=center,outer sep=0,font=\sffamily},
row 1/.style={nodes={fill=black,text=white}},
column 1/.style={nodes={fill=gray,text=white,align=right,text width=2.5cm,text depth=0.5ex}},
column 2/.style={text width=4cm,align=center,every even row/.style={nodes={fill=white}}},
column 3/.style={text width=3cm,align=center,every even row/.style={nodes={fill=white}},},
row 1 column 1/.style={nodes={fill=gray}},
prefix after command={[rounded corners=4mm] (m.north east) rectangle (m.south west)}
] {
& Enterprise SAN & ioDrive \\
Form Factor & Rack Applicance (40U $\times$ 20") & Low Profile PCIe \\
Interface & FC-4 & PCIe x4 \\
Drive Units & 150$\times$15 RPM disks & 2$\times$80gig\\
Data Protection & Mirroring & Mirroring\\
Power & 33.372 kWh/yr & 114 kWh/yr\\
SPC-1 I0PS & 24.998 & 86.127\\
};
\end{tikzpicture}
\end{document}
Here's a solution using titleps
:
\documentclass{article}
\usepackage{titleps}
\usepackage{xcolor}
\usepackage{lipsum}
\newcommand\HeaderTitle{Time For Action -- Embedding a picture within text}
\newpagestyle{myheader}
{
\sethead{}{\colorbox{black}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{%
\strut\textcolor{white}{\sffamily\large\bfseries\HeaderTitle}}}}{}
}
\pagestyle{myheader}
\begin{document}
\lipsum[1-3]
\end{document}
The idea is to use a new page style using a \parbox
of width equal to \textwidth
inside a \colorbox
.
Here's the same idea but using now fancyhdr
:
\documentclass{article}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage{lipsum}
\newcommand\HeaderTitle{Time For Action -- Embedding a picture within text}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhf[C]{\colorbox{black}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{%
\strut\textcolor{white}{\sffamily\large\bfseries\HeaderTitle}}}}
\setlength\headheight{18pt}
\pagestyle{fancy}
\begin{document}
\lipsum[1-3]
\end{document}
Now that I reread the question, I am not sure if a header (as in header/footer) was required or if the question is about the tiles for a sectional unit (\section
, for example). My two examples above solve the first case; for the second case, here's a solution with titlesec
(in both cases the idea for the solution reamains the same):
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xcolor}
\usepackage{lipsum}
\titleformat{\section}
{\normalfont\large\sffamily\bfseries}{}{0em}
{\colorbox{black}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{%
\textcolor{white}{\thesection\quad#1}}}}
\titleformat{name=\section,numberless}
{\normalfont\large\sffamily\bfseries}{}{0em}
{\colorbox{black} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{%
\textcolor{white}{#1}}}}
\begin{document}
\lipsum[2]
\section*{Time For Action -- Embedding a picture within text}
\lipsum[2]
\end{document}
Best Answer
I would create a macro that contains the construction of the name/signature/date setup. Then you can pass parameters to the macro so it can be somewhat dynamic.
In the minimal working example below, the macro
\namesigdate[<width>]{<name>}
does exactly that. You can pass it<name>
which prints the name of the person at the top. This argument is mandatory. The width of the line is set at5cm
(default). If you want to change this, you can use the optional<width>
argument that takes any known (La)TeX length:I've also formatted the "Signature" and "Date" to be print using
\small\itshape
, although that can be modified.