• Re: Cyrillic in BIbTeX

    From Dr Engelbert Buxbaum@21:1/5 to All on Wed Nov 20 23:01:04 2024
    In article <vhi8dg$1sngj$1@dont-email.me>, dieterhansbritz@gmail.com
    says...

    I know about setting \newcommand{cyr}... and then using
    \cyr{text}, but the text is inside a bib-file. So if I
    set that command in the manuscript and cite an article
    for which the bib-file contains the cyrillic word in a
    note, will BibTeX know about it? Or how do I do it?

    One solution is described in https://tex.stackexchange.com/questions/645615/how-to-cite-a-few- russian-sources-in-an-english-document.

    A more modern approach would use polyglossia instead of babel, and then

    \setmainlanguage[variant=british]{english}

    \setotherlanguage[babelshorthands=true,numerals=arabic]{russian} \newfontfamily\russianfont{FreeSerif}

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Niepraschk@21:1/5 to All on Fri Nov 22 00:34:18 2024
    Am 19.11.24 um 15:47 schrieb db:
    I know about setting \newcommand{cyr}... and then using
    \cyr{text}, but the text is inside a bib-file. So if I
    set that command in the manuscript and cite an article
    for which the bib-file contains the cyrillic word in a
    note, will BibTeX know about it? Or how do I do it?


    I recommend using BibLaTeX together with the LuaTeX engine and then
    entering Cyrillic texts directly (UTF-8). Everything else is complicated
    and not portable.

    ...Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Flynn@21:1/5 to All on Sun Nov 24 15:50:51 2024
    On 19/11/2024 15:06, db wrote:
    On Tue, 19 Nov 2024 14:47:12 -0000 (UTC), db wrote:

    I know about setting \newcommand{cyr}... and then using \cyr{text}, but
    the text is inside a bib-file. So if I set that command in the
    manuscript and cite an article for which the bib-file contains the
    cyrillic word in a note, will BibTeX know about it? Or how do I do it?

    I need more help. I put in
    \newcommand{cyr}{\fontencoding{OT1}\selectfont}
    but this doesn't work. How should it be?

    It might be easier to use XeLaTeX with biblatex and biber than BiBTeX
    and OT1

    ========================= test.tex
    \PassOptionsToPackage{hyphens}{url}
    \documentclass{article}
    \usepackage{fontspec,polyglossia,csquotes} \usepackage[backend=biber,style=authoryear]{biblatex}
    \setmainlanguage{english}
    \setotherlanguage{russian}
    \newfontfamily{\cyrillicfont}{CMU Serif}
    \addbibresource{test.bib}
    \begin{document}
    This cites \textcite{urban79}.

    \raggedright
    \printbibliography
    \end{document}

    ========================== test.bib
    @Book{urban79,
    editor = {George Robert Urban},
    title = {Communist Reformation},
    ALTyear = {1979},
    subtitle = {Nationalism, Internationalism and
    Change in the World Communist Movement},
    note = {Charts the rise of \textrussian{перестройка}
    and \textrussian{гласность}},
    publisher = {Temple Smith},
    location = {London},
    isbn = {085117180X},
    pagetotal = {335},
    url = {https://www.mwbooks.ie/pages/books/143153/george-robert-urban/communist-reformation-nationalism-internationalism-and-change-in-the-world-communist-movement},
    urldate = {2024-11-24}
    }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)