如何在腳註和參考書目中使用不同的字體/特殊的古希伯來語

如何在腳註和參考書目中使用不同的字體/特殊的古希伯來語

我使用帶有 fontspec 的舊希伯來語和舊希臘語文字特殊字體。我如何在腳註和書目參考書目中使用它?書名中有 3 個單字只有一個希伯來文。

我將 Lulatex 和 Biblatex 與 biber 一起使用。

我找到了在 Esra SIL 中設定完整參考書目的方法

\renewcommand*{\bibfont}{\hebfont}

但這給了我一個錯誤

/usr/share/texmf-dist/tex/latex/biblatex/biblatex.def

! LaTeX 錯誤:指令 \bibfont 已定義。

\documentclass[twboside=false, fontsize=12bp]{scrartcl}
\usepackage{setspace}
\setstretch{1.5} 
\usepackage[left=3cm, right=4cm]{geometry}
\usepackage{typearea}
\usepackage[ngerman]{babel}

\usepackage{fontspec}
\setmainfont{Times New Roman} 
\newfontfamily\hebfont[Script=Hebrew, Scale=MatchUppercase, Ligatures=TeX]{Ezra SIL}
\newcommand{\textheb}[1]{\bgroup\luatextextdir TRT\hebfont #1\egroup}
\newfontfamily\greekfont[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{SBL Greek}
\newcommand{\textgreek}[1]{\bgroup\greekfont #1\egroup}

\renewcommand*{\bibfont}{\hebfont}

\usepackage[
backend=biber,
style=geschichtsfrkl,
pagetracker=true, 
backref=true,
]{biblatex} 
\bibliography{xy.bib}
\usepackage[german=quotes]{csquotes}

\begin{Document}
\textheb{some hebrew text, works fine here}
footcite[vgl.][51]{book1}


\printbibheading[title=Literaturverzeichnis]
\printbibliography[keyword=primaer,heading=subbibliography,title={Textausgaben und Hilfsmittel}]
\printbibliography[keyword=sekundaer,heading=subbibliography,title={Sekundärliteratur}]

\end{document}

答案1

\textheb您可以直接在文件本身中使用定義良好的命令來獲取參考書目中的希伯來字體.bib

相關內容