chessboard
我已经很久没用了。我想知道如何将它与 LuaLaTeX 和我自己的国际象棋字体一起使用。有人能帮我提供一个示例文件吗?我特别困扰于如何让 LuaLaTeX 知道我的字体。
我尝试过这个:
\documentclass{book}%%% De Morbis Typographorum
\usepackage{luaotfload}
\usepackage[LSBC4,T1,LY1]{fontenc}
\usepackage{chessfss,chessboard}
\usepackage{skak}
\usepackage{fontspec}
\newfontface\NeuhausenDiagram{Neuhausen-Diagram4.pfb}
\newcommand\Chessboard[1]{%
\begin{center}
\chessboard[setfen=#1]
\end{center}
\par
\@afterindentfalse\@afterheading%
}
\setboardfontfamily{neuhausen}
\setsidefontencoding{LY1}
\setsidefontfamily{KievitPro-TLF}
\setsidefontseries{m}
\setsidefontshape{n}
\setchessboard{%
boardfontencoding=LSBC4,
boardfontsize=18bp,
%labelright=true, labeltop=true,
labelleft=false,
labelright,
labelrightwidth=3.0mm, %labeltoplift=1.25mm,
labelbottomlift=3.5mm,
marginwidth=14.4bp, marginbottomwidth=14.4bp,
% marginleftwidth=13bp,
labelfontsize=8bp,
% borderwidth=.3mm,
% bordercolor=red,
border=false,
linewidth=0.25mm, padding=0mm, pgfborder,
linewidth=0.35mm, padding=0.7mm, pgfborder,
showmover=false,
blackfieldmaskcolor=black!25,
setfontcolors
}
\begin{document}
\setchessboard{boardfontseries=r}
\Chessboard{bKN5/B7/pPP1R1n1/Q4p2/2k5/2p3p1/3p1R2/nr1N3B w - - 0 1}
\end{document}
但收到错误消息,LuaLaTeX 无法找到字体Neuhausen-Diagram4.pfb
任何帮助都值得感激!
乌尔里希