考虑
\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{scalerel} % For Vertical/Horizontal Stretch of Letters
\usepackage{pbsi} % for bsifamily font.
\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[blue!65!white] at (#1em+\xoffset em+\x em,#2em+\yoffset em+\y em) {
\scalebox{2.5}{\Huge\bsifamily{#3}}
};
}
}
% Main Shadow
\node[blue!40!white] at (#1em+0.3em,#2em-0.2em) {
\scalebox{2.5}{\Huge\bsifamily{#3}}
};
\node[red] at (#1em,#2em) {% <-- here put the color you like
\scalebox{2.5}{\Huge\bsifamily{#3}}
};
}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\titleshading{15}{0}{With Pdflatex}
\end{tikzpicture}
\end{document}
产生
但是当我尝试使用 Xelatex 编译代码时,我得到了
问题:我能做些什么来让这个代码用 Xelatex 进行编译?(讽刺的是,我需要的实际代码不适用于 Pdflatex。)
谢谢。