summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/babelbib/babelbibtest.tex
blob: 39df8843081736908621c9ddd2fad2814708001b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
\documentclass[spanish,ngerman,frenchb,english]{article}
%\documentclass[spanish,ngerman,english,frenchb]{article}
%\documentclass[spanish,frenchb,english,ngerman]{article}
%\documentclass[frenchb,english,ngerman,spanish]{article}
\usepackage[latin1]{inputenc}
\usepackage{url}
\usepackage{babel}

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

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

%% 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{etal}{}
%\setbibliographyfont{volume}{\textsc}
%\setbibliographyfont{journal}{\textsc}

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

%% 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{babplain}
%\bibliographystyle{babplain-lf}
%\bibliographystyle{babplain-fl}
%\bibliographystyle{babalpha}
%\bibliographystyle{babunsrt}
\bibliographystyle{babamspl}

\bibliography{babelbibtest}

\end{document}