
파일 이 주어지면 tfm
아래 제공된 MWE에서와 같이 해당 글꼴을 사용할 수 있습니다. \bfseries
, 등 의 표준 명령/스타일을 사용하여 모든 행의 글꼴을 변경할 수도 있습니다 \ttfamily
.\scshape
일부 행의 글꼴을 변경하고 싶습니다 \andk
. 사용이
\SetRow{font=\andk}
작동하지 않습니다. 행의 글꼴을 내가 선택한 글꼴로 설정/변경하려면 어떻게 해야 합니까?
\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}
답변1
\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}
답변2
이는 귀하가 찾고 있는 것이 아닐 수도 있지만 여기에 fontspec
. 이 예에서는 행 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}