Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 3e27325d3cbe86e83a418bc00fa2a103 > files > 7

tetex-latex-babelbib-1.20-alt1.src.rpm

\documentclass[russian,english]{article}
%\documentclass[spanish,ngerman,english,frenchb]{article}
%\documentclass[spanish,frenchb,english,ngerman]{article}
%\documentclass[frenchb,english,ngerman,spanish]{article}
\usepackage[cp1251]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{url}
\usepackage{babel}

%% Load package with fixed language or flexible language:
\usepackage[annote,languagenames]{babelbib}[2003/04/21]
%\usepackage[annote,languagenames,fixlanguage]{babelbib}[2003/04/21]

%% force a fall-back language other than the document's language
\setbtxfallbacklanguage{russian}

%% Switch off to print ISBNs and ISSNs:
\btxprintISBN{false}
\btxprintISSN{false}

%% Auto format date strings in 'urldate'
\IfFileExists{isodate.sty}{%
  \usepackage[short]{isodate}
  \setbibliographyfont{urldate}{\printdate}
}{\typeout{Package isodate not available. Skipping that functionality}}

%% Change font for some parts of the bibliography:
%\setbibliographyfont{name}{\textsc}
%\setbibliographyfont{lastname}{\textsc}
%\setbibliographyfont{title}{\textbf}
\setbibliographyfont{jtitle}{}
%\setbibliographyfont{etal}{}
%\setbibliographyfont{volume}{\textsc}
\setbibliographyfont{journal}{\emph}
\setbibliographyfont{numeral}{\textsuperscript}

%% Change language for bibliography when option `fixlanguage' is chosen:
%\selectbiblanguage{ngerman}

%% Change or add keywords to specific languages:
%\declarebtxcommands{english}{%
%  \def\btxphdthesis#1{\foreignlanguage{english}{Ph.D.\ thesis}}%
%}
%\declarebtxcommands{ngerman}{%
%  \def\btxphdthesis#1{\foreignlanguage{ngerman}{Doktorarbeit}}%
%}
\declarebtxcommands{english}{%
  \def\btxfnamespaceshort{\,}%
  \def\btxeditionnumerallong#1{%
    \ifnumber{#1}{%
      \ifcase#1 0\or first\or second\or third\or forth\or fifth\or
        sixth\or seventh\or eighth\or nineth\or tenth\else
        \btxeditionnumeralenglish{english}{#1}%
      \fi}{#1}}%
%  \def\btxeditionnumerallong#1{\btxeditionnumeralenglish{english}{#1}}%
  \def\btxurldatecomment#1{ [#1]}%
}

%% Use the next line to avoid the babamspl style to print out the
%% language names:
% \newcommand\btxprintamslanguage[1]{}

\begin{document}
If you change \verb|\usepackage[languagenames,fixlanguage]{babelbib}| to
\verb|\usepackage[languagenames]{babelbib}|, the
bibliography will change the language citation-dependent.
Then, an error will appear at citation in a language that is not yet
available. 
This is normal and can be avoided by helping me to add that language.

You may change the \verb|\bibliographystyle| line to test all styles.

There are most of the available commands to change anything in the
source code, but commented out. 
Remove the \%\ in order to see the effects.

\nocite*

%% Choose one BibTeX style:
%\bibliographystyle{plain}
%\bibliographystyle{bababbrv}
\bibliographystyle{bababbrv-lf}
%\bibliographystyle{bababbrv-fl}
%\bibliographystyle{babplain}
%\bibliographystyle{babplain-lf}
%\bibliographystyle{babplain-fl}
%\bibliographystyle{babalpha}
%\bibliographystyle{babunsrt}
%\bibliographystyle{babamspl}

\bibliography{babelbibtest-ru}

\end{document}