STIX 2.0의 heppennames에서 굵은 글꼴이 작동하지 않습니다.

STIX 2.0의 heppennames에서 굵은 글꼴이 작동하지 않습니다.

입자 이름 지정 패키지가 표시되도록 굵은 글꼴 버전을 얻을 수 없습니다. 아래에 있습니다. 순열을 보여주기 위해 조금 깁니다.

\documentclass{article}
\usepackage{multicol,color,heppennames}
\usepackage{fontspec}
%
\setmainfont{STIX2Text}[Extension={.otf},
UprightFont={*-Regular},
BoldFont={*-Bold},ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]
%
\usepackage[math-style=ISO,mathrm=sym,mathit=sym,mathsf=sym,mathbf=sym,mathtt=sym]{unicode-math}
\setmathfont{STIX2Math}[Extension={.otf}]

\newcommand{\texcmd}[1]{\textcolor{red}{\texttt{\char`\\#1}}}

\begin{document}

Bold fonts in heppennames/hepparticles fail with  \texttt{fontspec/unicode/lualatex}.
Using \texttt{symXXX} works:
$\symup B^\pm$, $B^\pm$, $\symsf B^\pm$,
$\symbfup B^\pm$, $\symbfit B^\pm$, $\symbfsf B^\pm$,
$\symsfit B^\pm$, $\symbfsfit B^\pm$, also greek works:
$\symbf\gamma$, $\symbfup\gamma$,
$\symbf{\widetilde{\chi}^0_1}$, and $\symbfup{\widetilde{\chi}^0_1}$.
No bold $\ell$: $\symbf\ell$ or upright $\ell$: $\symup\ell$.  Below
are heppennames/hepparticles versions.  Also looks like sans greek is not  upright in
heppennames/hepparticles.

\section{\normalfont Normal font}
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}}
\end{multicols}

\section{\normalfont\itshape Italic font}
{\itshape
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}}
\end{multicols}}

\section{\normalfont\sffamily Sans font}
{\sffamily
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\section{Bold font}
{\bfseries
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\section{\itshape Bold italic font}
{\itshape\bfseries
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\section{\sffamily Bold sans font}
{\sffamily\bfseries
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\section{\normalfont\sffamily\itshape Italic sans font}
{\itshape\sffamily
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline \texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\section{\sffamily\itshape Bold italic sans font}
{\itshape\sffamily\bfseries
\begin{multicols}{2}{
\begin{itemize}
\item  charged B meson\newline\texcmd{PBpm} $\Rightarrow$ \PBpm
\item photon\newline \texcmd{Pgg} $\Rightarrow$ \Pgg
\item lepton\newline \texcmd{Pl} $\Rightarrow$ \Pl
\item lightest neutralino\newline \texcmd{PSgxzi} $\Rightarrow$ \PSgxzi
\end{itemize}
}\end{multicols}}

\end{document}

페이지 1 2 쪽

일부 글꼴 선택 논리를 수정하고(그리고 체계적으로 \symXXX를 입력한 후) 여기에 있습니다... \ell을 제외한 모든 작업은 다음과 같습니다. 약간 수정됨 페이지 1 약간 수정됨 2페이지

관련 정보