I would like to create the following heading using LaTeX:
May anyone please advise on the code to do so? In particular, I would like to capture
- The color
- The border
- The shadow
Thank you!
I would like to create the following heading using LaTeX:
May anyone please advise on the code to do so? In particular, I would like to capture
Thank you!
I put the command to a chapter heading for demonstration. The code that formats the text is the tikzpicture environment. It can be moved elsewhere easily.
The place to change the text and the color are indicated in the code.
\documentclass{book}
\usepackage{tikz}
\usepackage[outline]{contour}
\contourlength{1.2pt}
\usepackage[explicit]{titlesec}
\usepackage{xcolor}
\titleformat{\chapter}{}{}{1pt}
{%
\begin{tikzpicture}
% V---------------------------V <- Text goes here
\def\textoftitle{\chaptertitlename~\thechapter}
\node at ( 0.04,-0.04) {\contour{black!25!white}{\color{white}\Huge \textoftitle}};
\node at ( 0.03,-0.03) {\contour{black!50!white}{\color{white}\Huge \textoftitle}};
\node at ( 0.02,-0.02) {\contour{black!75!white}{\color{white}\Huge \textoftitle}};
\node at ( 0.01,-0.01) {\contour{black}{\color{white}\Huge \textoftitle}};
% VV Amount of yellow mixed with black (70% yellow + 30% black)
\node at ( 0.00, 0.00) {\contour{yellow!70!black}{\color{white}\Huge \textoftitle}};
\end{tikzpicture}
}%
\begin{document}
\chapter{Chap}
\end{document}