我怎样才能char"EB40
从其他字体中为每个章节分别选择?
\documentclass[a4paper,12pt]{book}
\usepackage{fontspec}
\usepackage{titlesec}
\newfontface\cmaiusc[LetterSpace=40,WordSpace=2,RawFeature={+swsh,+dlig}]{lmromancaps10-regular.otf}
\newcommand{\Chapter}[4][]{%
\chapter[\if\relax\detokenize{#1}\relax#2\else#1\fi]{%
% \makebox[\textwidth][c]{\includegraphics[width=6in]{#4}}\\
#2,\\\large #3\\\char"EB40}
\begin{center}
\textit{\cmaiusc capitolo\ \roman{chapter}.}
\end{center}
}
\titleformat{\chapter}[display]%
{\centering\bfseries\huge}%
{}%
{-40pt}%
{}
\titlespacing*{\chapter}
{0pt}{0pt}{5pt}
\begin{document}
\Chapter{Analysis mathematica}{principia.}{}
\end{document}
答案1
\newcommand{\Chapter}[5][]{%
\chapter[\if\relax\detokenize{#1}\relax#2\else#1\fi]{%
% \makebox[\textwidth][c]{\includegraphics[width=6in]{#4}}\\
#2,\\\large #3\\{#5}}
\begin{center}
\textit{\cmaiusc capitolo\ \roman{chapter}.}
\end{center}
}
然后
\Chapter{Analysis mathematica}{principia.}{}{\somefont\char"EB40}