我读这里如何在数学模式中使用希伯来字母;现在我的问题(非常简单)是如何在 Dagesh 中使用希伯来字母。我使用了那里找到的技巧
\documentclass{article}
\usepackage{amsmath,amssymb}
\DeclareFontFamily{U}{rcjhbltx}{}
\DeclareFontShape{U}{rcjhbltx}{m}{n}{<->rcjhbltx}{}
\DeclareSymbolFont{hebrewletters}{U}{rcjhbltx}{m}{n}
% remove the definitions from amssymb
\let\aleph\relax\let\beth\relax
\let\gimel\relax\let\daleth\relax
\DeclareMathSymbol{\aleph}{\mathord}{hebrewletters}{39}
\DeclareMathSymbol{\beth}{\mathord}{hebrewletters}{98}\let\bet\beth
\DeclareMathSymbol{\gimel}{\mathord}{hebrewletters}{103}
\DeclareMathSymbol{\daleth}{\mathord}{hebrewletters}{100}\let\dalet\daleth
\DeclareMathSymbol{\lamed}{\mathord}{hebrewletters}{108}
\DeclareMathSymbol{\mem}{\mathord}{hebrewletters}{109}\let\mim\mem
\DeclareMathSymbol{\ayin}{\mathord}{hebrewletters}{96}
\DeclareMathSymbol{\tsadi}{\mathord}{hebrewletters}{118}
\DeclareMathSymbol{\qof}{\mathord}{hebrewletters}{114}
\DeclareMathSymbol{\shin}{\mathord}{hebrewletters}{152}
\begin{document}
Now I can use $A_\shin$, $\shin$ or $B^\shin$.
$X\aleph\beth\gimel\daleth\lamed\mem\ayin\tsadi\qof\shin X$
$\bet\dalet\mim$
\end{document}
这给出了正确的数学模式希伯来字母,但是现在我需要一个带有 dagesh 的 beth 而不是 \beth,正确拼写为 /b/ 而不是 /v/。
谢谢你们。
答案1
编码文件表明 dagesh 形式从位置 129 左右开始编码(注释行提供了文件到达位置的有用指南,出现在该位置编码的字符之前,因此 128 是alefmapiq
:
% 128
/alefmapiq
/betdagesh
/gimeldagesh
/daletdagesh
/hedagesh
/.notdef
/zayindagesh
/tetdagesh
% 136
/yoddagesh
/kaffinaldagesh
/kafdagesh
/lameddagesh
/memdagesh
/nundagesh
/samekhdagesh
/pefinaldagesh
% 144
/pedagesh
/tsadidagesh
/qofdagesh
/reshdagesh
/shindagesh
/tavdagesh
/.notdef
/.notdef
% 152
/shin
/shinshindotdagesh
/shinsindotdagesh
因此,如果您使用相同的技巧,您可以为它们定义命令:
\DeclareMathSymbol{\betdagesh}{\mathord}{hebrewletters}{129}% etc
答案2
fonttable
如果您知道字母形状,您可以通过包裹找到代码。
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{fonttable}
\DeclareFontFamily{U}{rcjhbltx}{}
\DeclareFontShape{U}{rcjhbltx}{m}{n}{<->rcjhbltx}{}
\DeclareSymbolFont{hebrewletters}{U}{rcjhbltx}{m}{n}
% remove the definitions from amssymb
\let\aleph\relax\let\beth\relax
\let\gimel\relax\let\daleth\relax
\DeclareMathSymbol{\aleph}{\mathord}{hebrewletters}{39}
\DeclareMathSymbol{\beth}{\mathord}{hebrewletters}{98}\let\bet\beth
\DeclareMathSymbol{\gimel}{\mathord}{hebrewletters}{103}
\DeclareMathSymbol{\daleth}{\mathord}{hebrewletters}{100}\let\dalet\daleth
\DeclareMathSymbol{\he}{\mathord}{hebrewletters}{104}
\DeclareMathSymbol{\waw}{\mathord}{hebrewletters}{119}
\DeclareMathSymbol{\sajin}{\mathord}{hebrewletters}{122}
\DeclareMathSymbol{\shet}{\mathord}{hebrewletters}{120}
\DeclareMathSymbol{\thet}{\mathord}{hebrewletters}{84}
\DeclareMathSymbol{\iod}{\mathord}{hebrewletters}{121}
\DeclareMathSymbol{\kaph}{\mathord}{hebrewletters}{107}
\DeclareMathSymbol{\varkaph}{\mathord}{hebrewletters}{75}
\DeclareMathSymbol{\lamed}{\mathord}{hebrewletters}{108}
\DeclareMathSymbol{\mem}{\mathord}{hebrewletters}{109}\let\mim\mem
\DeclareMathSymbol{\varmem}{\mathord}{hebrewletters}{77}
\DeclareMathSymbol{\nun}{\mathord}{hebrewletters}{110}
\DeclareMathSymbol{\varnun}{\mathord}{hebrewletters}{78}
\DeclareMathSymbol{\samech}{\mathord}{hebrewletters}{115}
\DeclareMathSymbol{\ayin}{\mathord}{hebrewletters}{96}
\DeclareMathSymbol{\pe}{\mathord}{hebrewletters}{112}
\DeclareMathSymbol{\varpe}{\mathord}{hebrewletters}{80}
\DeclareMathSymbol{\tsadi}{\mathord}{hebrewletters}{118}
\DeclareMathSymbol{\vartsadi}{\mathord}{hebrewletters}{90}
\DeclareMathSymbol{\qof}{\mathord}{hebrewletters}{113}
\DeclareMathSymbol{\resh}{\mathord}{hebrewletters}{114}
\DeclareMathSymbol{\shin}{\mathord}{hebrewletters}{152}
\DeclareMathSymbol{\thaw}{\mathord}{hebrewletters}{116}
\begin{document}
\xfonttable{U}{rcjhbltx}{m}{n}
Now I can use $A_\shin$, $\shin$ or $B^\shin$.
$X\aleph\beth\gimel\daleth\lamed\mem\ayin\tsadi\qof\shin X$
$\bet\dalet\mim$
\end{document}