Altere o título da bibliografia usando Natbib, Polyglossia, BibTeX e XeLaTeX

Altere o título da bibliografia usando Natbib, Polyglossia, BibTeX e XeLaTeX

Estou escrevendo um documento em hebraico, mas minhas referências estão inteiramente em inglês. Devido a problemas com o alinhamento do texto em idiomas RTL, a bibliografia está contida em um bloco em inglês:

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

Mesmo assim, como o documento está em hebraico, o título da bibliografia precisa ser alinhado à direita e definido manualmente para estar em hebraico. Se eu remover o \begin{english}bloco, o título da bibliografia será formatado corretamente para o hebraico (presumo que este seja o trabalho da poliglossia), mas as próprias referências ficarão muito confusas - a pontuação, em particular, será totalmente arruinada.

Imagino que a solução será renderizar a bibliografia sem o título e adicioná-la manualmente ou substituir tudo o que a poliglossia faz para alterar o título da bibliografia. Também não encontrei nenhuma maneira de fazer isso.

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}

Responder1

Sim, definitivamente existe uma maneira mais fácil de alterar o título da bibliografia paranatbib. Você pode fazer isso usando o código abaixo:

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

Observe que o uso section*aqui garante que a seção Bibliografia não seja numerada, como sugerido anteriormente em um comentário deCristoph90.

Responder2

No sentido técnico da palavra, esta é uma resposta, mas não é aceitável porque certamente haverá uma solução mais elegante. É, na melhor das hipóteses, um exemplo do efeito desejado.

\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}

informação relacionada