1

I am writing a Hebrew document all of whose bibliography entries are in English:

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{hebrew}
\setotherlanguage{english}
\newfontfamily{\hebrewfont}{DavidLibre-Regular}
\newfontfamily{\englishfont}{Palatino Linotype}
\begin{document}
תרגום לאנגלית של אוקלידס נמצא ב-%
\textenglish{\cite{euclid}}.
\bibliographystyle{plain}
\bibliography{bib-test}
\end{document}

However, the bibliography is printed RTL: RTL To change to LTR I added before the \bibliography command:

\selectlanguage{english}

This prints the bibliography correctly as LTR but also changes the title to LTR: enter image description here I would like an LTR bibliography with an RTL title.

7
  • 1
    It's hardly possible to help without MWE. Although not an expert at multi-language projects, I assume you load and use polyglossia. I would try to set the main language as Hebrew and other language(s) as English by adding the following in preamble: \setmainlanguage{hebrew}, \setotherlanguages{english}. Then, before your bibliography, I'd change the language to English: \selectlanguage{english}.
    – Celdor
    Jun 8, 2022 at 9:08
  • It's worth noting polyglossia also defines macros such as \text<language>{...}, dynamically, after \setotherlanguages{<language>} has been used. Whatever is inside this macro is typeset according to the <language>. In your case that would be \textenglish{...}.
    – Celdor
    Jun 8, 2022 at 9:32
  • Sorry, Celdor. I have now edited to provide a MWE. In the meantime I have found a workaround (see below), but I'm sure there is some more canonical solution.
    – Moti
    Jun 8, 2022 at 14:25
  • No need to be sorry. It's the same suggestion all over the website and it is for the sake of those who ask questions. You only get the full support and help if you provide enough information. It's impossible without MWE.
    – Celdor
    Jun 8, 2022 at 14:54
  • I see. The title of a bibliography is an integral part of the reference list. You could redefine a macro which expands to the desired text, along with alignment, hence: \renewcommand{\refname}{\raggedleft The New Title} (the source). I would suggest to check biblatex. It is definitely more flexible than standard bibtex, might work well with polyglossia and be better at handling multiple languages.
    – Celdor
    Jun 8, 2022 at 15:19

2 Answers 2

1

The bidi package provides the control sequence \setLTRbibitems precisely for this purpose. All you need to do is placing this control word before inserting your bibliography.

1
  • Thanks, it worked.
    – Moti
    Jun 28, 2022 at 8:38
0

I still don't have an answer but I have a workaround. First change the class from article to book. Then add the following command to the preamble of the XeLaTeX source file:

\gappto\captionsenglish{\def\bibname{\raggedleft\texthebrew{ביבליאוגרפיה}}}

The result is what I want: enter image description here A real answer would be appreciated.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .