diff options
Diffstat (limited to 'Master/texmf-dist/doc/bibtex/babelbib/babelbibtest.tex')
-rw-r--r-- | Master/texmf-dist/doc/bibtex/babelbib/babelbibtest.tex | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/bibtex/babelbib/babelbibtest.tex b/Master/texmf-dist/doc/bibtex/babelbib/babelbibtest.tex new file mode 100644 index 00000000000..7b4a97919ec --- /dev/null +++ b/Master/texmf-dist/doc/bibtex/babelbib/babelbibtest.tex @@ -0,0 +1,115 @@ +%\documentclass[spanish,ngerman,frenchb,greek,portuguese,brazilian,romanian,swedish,serbian,english]{article} +%\documentclass[spanish,ngerman,english,frenchb]{article} +%\documentclass[spanish,frenchb,english,ngerman]{article} +%\documentclass[frenchb,english,ngerman,spanish]{article} +\documentclass[greek,brazilian,portuguese,frenchb,english,ngerman,romanian,spanish,czech]{article} +\usepackage[latin1]{inputenc} +\usepackage{url} +\usepackage{babel} + +%% Load package with fixed language or flexible language: +%\usepackage[annote,languagenames]{babelbib}[2003/04/21] +\usepackage[annote,languagenames,datenumeric,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{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]{} + +%\newcommand\btxprintmonthyear[2]{\ifnumber{#1}{#1/#2}{#1\ #2}} +\newcommand\btxprintmonthyearasdf[4]{% + \ifnumber{#2}{% + \ifcase #2 \or + \csname btxmonjan#4\endcsname{#1}\or + \btxmonfeblong{#1}\or \btxmonmarlong{#1}\or + \btxmonaprlong{#1}\or \btxmonmaylong{#1}\or \btxmonjunlong{#1}\or + \btxmonjullong{#1}\or \btxmonauglong{#1}\or \btxmonseplong{#1}\or + \btxmonoctlong{#1}\or \btxmonnovlong{#1}\or \btxmondeclong{#1}\fi + \ #3% + }{% + #2\ #3}% +} + +\declarebtxcommands{english}{% + \def\btxprintmonthyearnum#1#2{#1-#2}% +} + +\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} + +\ifnumber{3}{3/2009}{März 2009} + +\ifnumber{März}{3/2009}{März 2009} + +\end{document} |