2

For example, if I want to use https://tug.org/FontCatalogue/royalinitialen/ on the first letter of a story I'm writing, but every other letter afterward to be the default font. How can I go about this? This is what I have, and it produces a Royal T and nothing else (because Royal only admits capitalized letters):

\initfamily{T}he car was delivered to the appropriate address
5
  • 1
    \initfamily is a switch, it stays active until the current group ends. Place it inside the braces, not outside of them. Jan 28, 2022 at 22:23
  • Expanding on Marcel's good comment: {\initfamilyT}he car was delivered to the appropriate address. Jan 28, 2022 at 22:48
  • @Dr.ManuelKuehner...with a space between \initfamily and T. Jan 28, 2022 at 22:59
  • @Steven B. Segletes Ah, thanks. Silly me! Jan 29, 2022 at 1:05
  • @MarcelKrüger Thank you so much, this turned out to be the most practical solution.
    – Federico
    Jan 29, 2022 at 13:55

1 Answer 1

5

You want the “command form” rather than the “declaration form”.

\documentclass{article}

\input{RoyalIn.fd}
\DeclareRobustCommand{\royalfamily}{\usefont{U}{RoyalIn}{xl}{n}}
\DeclareTextFontCommand{\textroyal}{\royalfamily}

\begin{document}

\textroyal{T}he car was delivered

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .