colorlettrine suporta apenas alguns caracteres

colorlettrine suporta apenas alguns caracteres

Estou tentando usar o pacote colorlettrine. Instalei o pacote EB Garamond, mas logo descobri que apenas algumas letras são suportadas. Se eu tentar S, por exemplo, aparecerá como uma caixa vazia.

Existem algumas alternativas que eu poderia tentar para obter um efeito semelhante?

Alguém sabe que trabalho eu poderia fazer para adicionar mais personagens?

Responder1

Bem-vindo ao TeX.SE. coloredlettrineé distinto porque cada glifo consiste em duas partes: uma frente (a letra) e uma parte traseira (o enfeite). Isso cria a oportunidade de colorir a letra de uma forma distinta do enfeite. Porém, como você descobriu, apenas algumas letras estão disponíveis: A, F, G, L, N, O, Q e T.

Existem algumas fontes com iniciais decorativas que podem ser usadas para produzir lettrinas. Veja oCatálogo de fontes TUG. Usei o GoudyInpacote para acessar a fonte Goudy Initialen.

O lettrinepacote também oferece a opção de usar um gráfico como lettrina. Eu uso esse método com algumas letras decorativas que encontrei em algum lugar da web. Lamento não ter anotado a fonte.

insira a descrição da imagem aqui

% Compile with xelatex or lualatex
% The two EB Garamond Initials fonts must be installed to use \coloredlettrine.
% Graphics with the file names m.jpg, n.jpg and o.jpg, or any 
% other graphic file format must be available to use \lettrine[image...
\documentclass[10pt,a4paper]{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{fontspec}
%https://github.com/raphink/coloredlettrine; also on CTAN
\usepackage{coloredlettrine} %loads [svgnames]{xcolor} and {lettrine}
% Requires 2 fonts:
% EB Garamond Initials Fill1 Regular
% EB Garamond Initials Fill2 Regular
\setmainfont[RawFeature={+ss02,+cv01,+ss05,+dlig},
             ItalicFeatures={RawFeature=+cv04}]{EB Garamond}
\renewcommand{\EBLettrineBackColor}{NavyBlue}
\renewcommand{\EBLettrineFrontColor}{Maroon}

\usepackage{lettrine} 
\usepackage{GoudyIn}
\usepackage[svgnames]{xcolor}

\renewcommand\LettrineFontHook{\color{Maroon}\GoudyInfamily{}}%
\renewcommand{\LettrineTextFont}{}
\newcommand*{\mylettrine}[1]{\lettrine[lines=1,realheight=false,findent=3pt,nindent=0pt]{#1}{}}

\begin{document}

\coloredlettrine[lines=1,realheight=false,findent=3pt,nindent=0pt]{A}{apt}\linebreak
\coloredlettrine[lines=1,realheight=false,findent=3pt,nindent=0pt]{G}{apt}\linebreak
\coloredlettrine[lines=1,realheight=false,findent=3pt,nindent=0pt]{T}{apt}\linebreak

\renewcommand\LettrineFontHook{\color{Maroon}\GoudyInfamily{}}%
\renewcommand{\LettrineTextFont}{}

\mylettrine{A}{apt}
\mylettrine{B}{apt}
\mylettrine{C}{apt}

\lettrine[image,lines=1,realheight=false,findent=3pt,nindent=0pt]{M}{apt}
\lettrine[image,lines=1,realheight=false,findent=3pt,nindent=0pt]{N}{apt}
\lettrine[image,lines=1,realheight=false,findent=3pt,nindent=0pt]{O}{apt}
 
\end{document}

informação relacionada