0

I am using lettrine for creating drop caps.

If a use the \scalebox-command within the first argument of \lettrine an error occurs. Here is a minimal example:

\documentclass{minimal}

\usepackage{lettrine}
\usepackage{graphicx}

\begin{document}
\lettrine{A}{} This is a simple test. This is a simple test. This is a 
simple test. This is a simple test. This is a simple test. This is a 
simple test. This is a simple test. This is a simple test. This is a 
simple test. This is a simple test.

A\scalebox{.5}{A}

\lettrine{A\scalebox{.5}{A}}{} This is a simple test. This is a simple 
test. This is a simple test. This is a simple test. This is a simple 
test. This is a simple test. This is a simple test. This is a simple 
test. This is a simple test. This is a simple test.
\end{document}

I had no problem before, when Is used TeXLive 2017. Now with TeXLive 2018 the error occurs.

I use lettrine 2018-08-28 v2.21

2

Just protect \scalebox:

\documentclass{minimal}

\usepackage{lettrine}
\usepackage{graphicx}

\begin{document}

\lettrine[nindent=0.33em]{A}{} This is a simple test. This is a simple test. This is a
simple test. This is a simple test. This is a simple test. This is a
simple test. This is a simple test. This is a simple test. This is a
simple test. This is a simple test.

A\scalebox{.5}{A}\medskip

\lettrine[nindent=0.33em]{A\protect\scalebox{.5}{A}}{This} is a simple test. This is a simple
test. This is a simple test. This is a simple test. This is a simple
test. This is a simple test. This is a simple test. This is a simple
test. This is a simple test. This is a simple test.

\end{document} 

enter image description here

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.