Consider the following code:
\documentclass{book}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{pgothic}
\newcommand\titleshading[3]{
\newcommand\xoffset{0.3}
\newcommand\yoffset{-0.25}
% Blur
\foreach \x in {-0.1,0.1} {
\foreach \y in {-0.1,0.1} {
\node[red!30] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
\scalebox{3.25}{\Huge\pgothfamily{#3}}
};
}
}
% Main Shadow
\node[red!30] at (#1em+0.3em,#2em-0.2em) {
\scalebox{3.25}{\Huge\pgothfamily{#3}}
};
\node at (#1em,#2em) {
\scalebox{3.25}{\Huge\pgothfamily{#3}}
};
}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\titleshading{18}{0}{Ye Olde English} \vspace*{35pt}
% \titleshading{18}{0}{Steak \& Kidney Pies}
\end{tikzpicture}
\end{document}
which produces the output:
I would like to be able to finish off the title by adding, say, "Steak & Kidney Pies" underneath it.
However, when I uncomment % \titleshading{18}{0}{Steak \& Kidney Pies}
in the code and run it---I get an error.
Furthermore, I thought of making one long title: "Ye Olde English Steak & Kidney Pies" and have LaTeX determine where to start a new line---it didn't; neither does \linebreak
nor \\
work in this tikzpicture
envirnoment.
Alas, I thought, perhaps, that I would create a \newcommand
instead of \titleshading
, say, \titleshading1
---but this was not allowed.
QUESTION: (i) How may I finish off the above title so that "Steak & Kidney Pies" is centered below "Ye Olde English"? (ii) How may I create other title shading commands for other titles in the document that may have different fonts, and scalings, and shadings (such as "Ye Olde Stratford-upon-Avon On-the-Street Fish & Chips" with a Cabin font, all nodes scaled 2.5, and with the previous color shadings)?
Thank you.
\titleshading1
cannot work since the macro name may not contain digits, but\titleshadingA
could.