unicode-math와 Libertinus Math를 사용하여 대체 오픈 g를 얻는 방법은 무엇입니까?

unicode-math와 Libertinus Math를 사용하여 대체 오픈 g를 얻는 방법은 무엇입니까?

나는 사용하고 있었다newtxmath이전에는 엔진과 함께 libertine 옵션(Linux Libertine)을 사용 pdflatex 했지만 다음으로 전환했습니다.unicode-math안에 xelatex.

newtxmath나에게 멋진 열린 이탤릭체를 제공했습니다 g, 이는 수학에서 선호되는 형식인 것 같습니다. 나는 그것을 얻는 방법을 모른다 unicode-math.Libertinus 수학 글꼴(Linux Libertine에 가장 적합한 선택). 나는 파헤쳤다newtxmath.sty하지만 패키지가 공개를 위해 수행하는 작업에 대한 유용한 정보를 찾을 수 없습니다. g. Linux Libertine 글리프 테이블을 검색했지만 찾을 수 없었습니다.


pdflatex원하는 개방형 MWE g:

\documentclass{standalone}

\usepackage[libertine]{newtxmath}

\begin{document}
\(g\)
\end{document}

오픈 g


xelatex/ unicode-math정규 MWE g:

\documentclass{standalone}

\usepackage{unicode-math}
\setmathfont{Libertinus Math}

\begin{document}
\(g\)
\end{document}

못생긴 g


내가 생각할 수 있는 가능한 해결책은 다음과 같습니다.

  • newxmath오픈 g를 생성하는 방법을 분석 하고 이를 사용합니다.
  • 열린 g를 벡터 그래픽으로 가져와서 가능하다면 수학 문자로 만듭니다.
  • Libertinus와 함께 Linux Libertine의 공개 g(있는 경우)만 사용하십시오.

답변1

Imho newtxmath는 g에 대한 libertine 옵션과 함께 이 글꼴을 사용합니다.

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Libertinus Math}
\DeclareFontFamily{OML}{nxlmi}{\skewchar \font =127}
          \DeclareFontShape{OML}{nxlmi}{m}{it}{
           <-6.3>  nxlmi035
           <6.3-8.6> nxlmi037
           <8.6->  nxlmi03
          }{}
 \DeclareSymbolFont{gletters}{OML}{nxlmi}{m}{it}
 \DeclareMathSymbol{g}{\mathalpha}{gletters}{`g}
\begin{document}
\(abc fg \) 
\end{document}

여기에 이미지 설명을 입력하세요

답변2

newtxmath기호를 선언하여 open g from을 사용할 수 있습니다 . 그러나 파일에는 미리 선언해야 하는 fd몇 가지 명령문이 포함되어 있습니다 . \if그러나 글꼴 모양은 직접 정의할 수 있습니다. (아마도 굵은 수학에서는 작동하지 않을 것입니다)

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Libertinus Math}

\DeclareFontFamily{U}{ntxmia}{\skewchar\font=127 }
\DeclareFontShape{U}{ntxmia}{m}{it}{<->nxlmia}{}
\DeclareFontShape{U}{ntxmia}{b}{it}{<->nxlbmia}{}
\DeclareSymbolFont{lettersA}{U}{ntxmia}{m}{it}
\SetSymbolFont{lettersA}{bold}{U}{ntxmia}{b}{it}
\DeclareMathSymbol{g}{\mathord}{lettersA}{49}

\begin{document}

$\mitg$ $g$

$\mathbfit{g}$ \boldmath$g$\unboldmath

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보