
私はヘブライ語で文書を書いていますが、参考文献はすべて英語です。RTL 言語でのテキスト配置の問題のため、参考文献は英語のブロックに含まれています。
\addcontentsline{toc}{chapter}{ביבליוגרפיה} %Ideally this will be removed when a solution is found
\begin{english}
\bibliographystyle{apalike}
\bibliography{./bibliography}
\end{english}
それでも、文書はヘブライ語であるため、参考文献のタイトルは右揃えにし、手動でヘブライ語に設定する必要があります。ブロックを削除すると\begin{english}
、参考文献のタイトルはヘブライ語に適合するように正しくフォーマットされます (これは多言語化によるものだと思います) が、参照自体はひどく混乱しており、特に句読点は完全に台無しになっています。
解決策としては、参考文献をタイトルなしでレンダリングして手動で追加するか、Polyglossia が参考文献のタイトルを変更するために行っていることを上書きするかのどちらかになると思います。どちらも実行する方法を見つけられませんでした。
MWE:
% Compiled with XeLaTeX
\documentclass[12pt]{report}
\usepackage[sort]{natbib}
\usepackage{polyglossia}
\usepackage{bidi}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\addto\captionsenglish{
\renewcommand{\bibname}{ביבליוגרפיה} % Swap bibliography title to Hebrew
}
\begin{document}
\setRL
לורם איפסום דולור סיט אמת
% Bibliography:
\clearpage %This replaces the page break at the start of the bibliography
\addcontentsline{toc}{chapter}{ביבליוגרפיה}
\begin{english} % Insert the bibliography in English
\bibliographystyle{apalike}
\bibliography{./bibliography}
\end{english}
\end{document}
答え1
答え2
言葉の技術的な意味では、これは答えですが、より洗練された解決策が必ずあるため、受け入れられません。これはせいぜい、望ましい効果の例にすぎません。
\documentclass[12pt]{report}
\usepackage[sort]{natbib}
\usepackage{polyglossia}
\usepackage{bidi}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\addto\captionsenglish{
\renewcommand{\bibname}{} % Empty bibliography title
}
\begin{document}
\setRL
לורם איפסום דולור סיט אמת
% Bibliography:
\clearpage %This replaces the page break at the start of the bibliography
\begingroup
\let\clearpage\relax % Omit the page break at the start of the bibliography
\addcontentsline{toc}{chapter}{ביבליוגרפיה} % Because starred chapters don't add to the TOC
\chapter*{ביבליוגרפיה} % Manually add the title without numbering
\vspace{-86pt} % Empty chapters add lots of vspace which is normally useful. Manually remove it
\begin{english} % Insert the bibliography in English
\bibliographystyle{apalike}
\bibliography{./bibliography}
\end{english}
\endgroup
\end{document}