1

The shadowtext package allows you to use the command \shadowtext to create a shadow behind the letters like so

\documentclass{paper}

\usepackage{shadowtext}

\title{\shadowtext{Title}}

\begin{document}
\maketitle
\end{document}

If, however, I want to break the title into two lines or more I can't use

\documentclass{paper}

\usepackage{shadowtext}

\title{\shadowtext{Very long Title \\ is very long}}

\begin{document}
\maketitle
\end{document}

Supposing I want to decide where to break it and not leave this decision to the machine.

shadowtext does not understand the line breaking command \\ and so I have to write

\documentclass{paper}

\usepackage{shadowtext}

\title{\shadowtext{Very long Title} \\ \shadowtext{is very long}}

\begin{document} 
\maketitle
\end{document}

Is there a way to customise \title in order to just call \title{Very long title \\ is very long} and have a shadow text automatically?

1

shadowtext inserts the background as a picture, so you can use any regular stacking methods to put something one above the other. Below I use tabular:

enter image description here

\documentclass{paper}

\usepackage{shadowtext}

\title{\shadowtext{\begin{tabular}{c} top \\ bottom \end{tabular}}}

\begin{document}

\maketitle

\end{document}

Of course, you can adjust the alignment to suit your needs.

Depending on your setup, there may be no need for using \title and \maketitle. In this case, you could use a \begin{center} \shadowtext{top} \\ \shadowtext{bottom} \end{center} setup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.