Cambiar el título de la bibliografía usando Natbib, Polyglossia, BibTeX y XeLaTeX

Cambiar el título de la bibliografía usando Natbib, Polyglossia, BibTeX y XeLaTeX

Estoy escribiendo un documento en hebreo, pero mis referencias están enteramente en inglés. Debido a problemas con la alineación del texto en idiomas RTL, la bibliografía está contenida en un bloque en inglés:

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

Aun así, debido a que el documento está en hebreo, el título de la bibliografía debe estar alineado a la derecha y configurarse manualmente para que esté en hebreo. Si elimino el \begin{english}bloque, el título de la bibliografía tiene el formato correcto y se ajusta al hebreo (supongo que esto es obra de poliglosia), pero las referencias en sí están muy confusas: la puntuación en particular se arruina por completo.

Me imagino que la solución será representar la bibliografía sin el título y agregarla manualmente o anular lo que haga Polyglossia para cambiar el título de la bibliografía. No he encontrado manera de hacerlo tampoco.

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}

Respuesta1

Sí, definitivamente existe una manera más fácil de cambiar el encabezado de la bibliografía paranatbib. Puedes hacer esto usando el siguiente código:

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

Tenga en cuenta que el uso de section*aquí garantiza que la sección de Bibliografía no esté numerada, como se sugirió anteriormente en un comentario decristóbal90.

Respuesta2

En el sentido técnico de la palabra, esta es una respuesta, pero no es aceptable porque seguramente habrá una solución más elegante. En el mejor de los casos, es un ejemplo del efecto deseado.

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

información relacionada