
Dado um tfm
arquivo, posso usar essa fonte como no MWE fornecido abaixo. Também posso alterar a fonte de qualquer linha usando comandos/estilos padrão como \bfseries
,, \ttfamily
etc.\scshape
Eu gostaria de alterar a fonte de alguma linha para dizer \andk
. Usar
\SetRow{font=\andk}
não funciona. Como posso definir/alterar a fonte de uma linha para uma fonte de minha escolha?
\documentclass{article}
%
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
{\font\andk=andk-Bold-tlf-sc-t2b at 14pt\andk
Hello}
\bigskip
\begin{tblr}{
width=0.9\textwidth,
colspec = {llr}
}
\toprule
Month & Day & Number \\
\midrule
Jan & Wed & 10 \\
\SetRow{font=\bfseries\sffamily}
Feb & Mon & 0 \\
Mar & Sun & 20 \\
\bottomrule
\end{tblr}
\end{document}
Responder1
\documentclass{article}
\usepackage{tabularray}
\font\andk=andk-Bold-tlf-sc-t2b
\begin{document}
\begin{tblr}
{
colspec = {Q[l,m]Q[l,m]Q[c,m]},
row{3} = {cmd=\andk},
hline{1,Z} = {wd=.08em},
hline{2} = {wd=.05em},
}
Month & Day & Number \\
Jan & Wed & 10 \\
Feb & Mon & 0 \\
Mar & Sun & 20 \\
\end{tblr}
\end{document}
Responder2
Pode não ser isso que você está procurando, mas aqui está uma solução que usa fontspec
. Neste exemplo, alterei a fonte da linha 3.
\documentclass{article}
%
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{fontspec}
\newfontfamily\myfont{Arial Nova}
\begin{document}
%{\font\andk=andk-Bold-tlf-sc-t2b at 14pt\andk
%Hello}
%\bigskip
\begin{booktabs}{
width=0.9\textwidth
,colspec = {llr}
,cell{3}{-}={font=\myfont}
}
\toprule
Month & Day & Number \\
\midrule
Jan & Wed & 10 \\
%\SetRow{font=\bfseries\sffamily}
Feb & Mon & 0 \\
Mar & Sun & 20 \\
\bottomrule
\end{booktabs}
\end{document}