我需要一个简单的解决方案来在希伯来语符号上添加波浪符号。
\tilde{א}
不起作用。我也尝试过\makebox
,\libertineGlyph{uni02DC}
但\makebox
产生了更多其他错误。还有其他我可以做的事情吗?
我在词汇表中使用该字符:\newglossaryentry{שה}{name={\ensuremath{\tilde{שה}}},description={Blabla}}
示例:(我正在使用 xelatex 和 arara 进行编译)
\documentclass[10pt,a5paper,twoside]{scrbook}
\usepackage{amsmath}
\usepackage{fontspec}
\usepackage{polyglossia, xunicode}
\usepackage{libertine}
\setmainfont[Ligatures=TeX]{Linux Libertine O}
\setmainlanguage{german}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{EzraSIL} %Keter YG
\usepackage[xindy={language=hebrew,glsnumbers=false},counter=pageline,nosuper,nolong]{glossaries}
\glsSetCompositor{-}% Use - as separator
\pretocmd{\gls}{\doedindexlabel}{}{}% Call \doedindexlabel at the begining of \gls
\makeglossaries
\newglossarystyle{germanhebrew}
{% base it on the tree style:
\setglossarystyle{tree}%
% switch to german
\renewenvironment{theglossary}%
{\setlength{\parindent}{0pt}%
\setlength{\parskip}{0pt plus 0.3pt}%
\begin{german}
}%
{\end{german}}%
\renewcommand{\glossentry}[2]{%
\hangindent0pt\relax
\parindent0pt\relax
\glsentryitem{##1}\glstreenamefmt{\glstarget{##1}{%
\texthebrew{\glossentryname{##1}}}}%
\ifglshassymbol{##1}{\space(\glossentrysymbol{##1})}{}%
\glstreepredesc\glossentrydesc{##1}\glspostdescription\space##2\par
}%
}
\newglossaryentry{שה}{name={\ensuremath{\tilde{שה}}},description={Abkürzung}}
\setmainlanguage{german}
\setotherlanguage{hebrew}
%\setotherlanguage{arabic}
%\newfontfamily\arabicfont[Script=Arabic, Scale=1.3]{Scheherazade}
\newfontfamily\hebrewfont[Script=Hebrew]{Ezra SIL}
\usepackage[normalem]{ulem}
\begin{document}
Bla Bla Bla \gls{שה}
\printglossary[style=germanhebrew]
\end{document}
答案1
您可以将希伯来语放在 \mbox 中,然后使用 \widetilde。请注意,如果您使用或不使用 \texthebrew,希伯来语将使用不同的字体:
\documentclass{article} %to get everything on one page
\usepackage{amsmath}
\usepackage{polyglossia}
\usepackage{libertine}
\usepackage[xindy={language=hebrew,glsnumbers=false},nosuper,nolong]{glossaries}
\makeglossaries
\setmainlanguage{german}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{EzraSIL} %Keter YG
\newglossaryentry{whatever} {name={\ensuremath{\widetilde{\mbox{\texthebrew{הש}}}}},description={Abkürzung}}
\newglossaryentry{something}{name={\ensuremath{\widetilde{\mbox{שה}}}},description={Abkürzung}}
\begin{document}
Bla Bla Bla \gls{something}
Bla Bla Bla \gls{whatever}
\printglossary
\end{document}