Natbib, Polyglossia, BibTeX 및 XeLaTeX를 사용하여 참고문헌 제목 변경

Natbib, Polyglossia, BibTeX 및 XeLaTeX를 사용하여 참고문헌 제목 변경

나는 히브리어로 문서를 작성하고 있지만 참고문헌은 모두 영어로 되어 있습니다. RTL 언어의 텍스트 정렬 문제로 인해 참고문헌은 영어 블록에 포함됩니다.

\addcontentsline{toc}{chapter}{ביבליוגרפיה} %Ideally this will be removed when a solution is found
\begin{english}
\bibliographystyle{apalike}
\bibliography{./bibliography}
\end{english}

그럼에도 불구하고 문서가 히브리어로 되어 있기 때문에 참고문헌의 제목을 오른쪽 정렬하고 수동으로 히브리어로 설정해야 합니다. 블록 을 제거하면 참고 \begin{english}문헌 제목의 형식이 히브리어에 맞게 올바르게 지정되지만(이것은 폴리글로시아의 작업이라고 가정합니다) 참조 자체가 심하게 뒤죽박죽되어 있습니다. 특히 구두점은 완전히 망가졌습니다.

나는 해결책이 제목 없이 참고문헌을 렌더링하고 수동으로 추가하거나 참고문헌 제목을 변경하기 위해 폴리글로시아가 수행하는 모든 작업을 재정의하는 것이라고 생각합니다. 나 역시 할 수 있는 방법을 찾지 못했다.

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

예, 참고문헌 제목을 변경하는 더 쉬운 방법이 분명히 있습니다.natbib. 아래 코드를 사용하여 이 작업을 수행할 수 있습니다.

\renewcommand{\bibsection}{\section*{Whatever You Prefer}}

여기를 사용하면 section*이전에 다음 주석에서 제안한 것처럼 참고문헌 섹션에 번호가 매겨지지 않게 됩니다.크리스토프90.

답변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}

관련 정보