summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-musuos
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2011-09-26 17:19:31 +0000
committerNorbert Preining <preining@logic.at>2011-09-26 17:19:31 +0000
commit0454199fb8d0690826381492ba9d7eaebf491dec (patch)
treedb4b73ed1c8c56016d58c9fbf3ef4459bfcdfb7a /Master/texmf-dist/tex/latex/biblatex-musuos
parent6eff7b7c443af1e1ee9630503e2724984573bcf5 (diff)
fix biblatex-musuos mis-placements
git-svn-id: svn://tug.org/texlive/trunk@24097 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-musuos')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-musuos/german-musuos.lbx21
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-musuos/musuos.bbx297
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-musuos/musuos.cbx191
3 files changed, 509 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-musuos/german-musuos.lbx b/Master/texmf-dist/tex/latex/biblatex-musuos/german-musuos.lbx
new file mode 100644
index 00000000000..2a88049b12d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-musuos/german-musuos.lbx
@@ -0,0 +1,21 @@
+% Tobias Weh, 2011
+\ProvidesFile{german-musuos.lbx}[2011/09/10 v1.0 biblatex localization file]
+
+% Extras aus der Standarddatei übernehmen
+\InheritBibliographyExtras{german}
+
+% Ein neuer String wird beötigt für "zitiert nach"-Zitate
+\NewBibliographyString{bibcitedas,opus,quotedfrom,quotedon}
+
+% neuen String definieren und urlseen ändern
+% mit inherit = {german} werden die Standards eingeschlossen
+\DeclareBibliographyStrings{%
+ inherit = {german},
+ bibcitedas = {{zitiert als}{zit. als}},
+ quotedfrom = {{\unspace}{\unspace}},
+ quotedon = {{zitiert nach}{zit\adddotspace nach}},
+ urlseen = {{am}{am}},
+ opus = {{op.}{op.}}
+}
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.bbx b/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.bbx
new file mode 100644
index 00000000000..d2ae8a4eba6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.bbx
@@ -0,0 +1,297 @@
+% Tobias Weh, 2011
+
+% THANKS to Audrey form TeX.SX for building the
+% quoted-in-cite-code. His code is marked with the
+% pseudo tag <audrey>.
+% See http://tex.stackexchange.com/q/27964/4918
+\ProvidesFile{musuos.bbx}[2011/09/10 v1.0 Musikwissenschaften Uni Osnabrueck]
+
+% Ausgagsstiel wählen
+\RequireBibliographyStyle{authortitle}
+
+% Auf die neue Sprachdatei umleiten
+\DeclareLanguageMapping{german}{german-musuos}
+
+% Ausgabemacros anpassen
+\renewbibmacro*{editorstrg}{%
+ \iffieldundef{editortype}
+ {\ifthenelse{\value{editor}>1\OR\ifandothers{editor}}
+ {\mkbibparens{\bibstring{editors}}}
+ {\mkbibparens{\bibstring{editor}}}}
+}
+
+\newbibmacro*{publisher+maintitle+booktitle}{%
+ \iflistundef{publisher}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{publisher} \usebibmacro{editorstrg}%
+ \setunit{\addcolon\space}%
+ \usebibmacro{maintitle+booktitle}%
+ \newunit}
+
+\renewcommand{\labelnamepunct}{\addcolon\space}
+
+\newbibmacro{opus}{%
+\iffieldundef{usera}{}{%
+ \iffieldundef{userb}{%
+ \newunit{\addcomma\space}{\biblcstring{opus}%
+ \addspace\printfield{usera}}
+ }{%
+ \newunit{\addcomma\space}{\printfield{userb}%
+ \addspace\printfield{usera}}%
+ }%
+}}
+
+\renewbibmacro*{location+date}{%
+ \printlist{location}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{cite:labelyear+extrayear}%
+ \newunit}
+
+\renewbibmacro*{editorstrg}{%
+ \ifthenelse{\value{editor}>1\OR\ifandothers{editor}}
+ {\mkbibparens{\bibstring{editors}}}
+ {\mkbibparens{\bibstring{editor}}}%
+}
+
+
+\renewbibmacro*{editor+othersstrg}{%
+ \iffieldundef{editortype}
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{editor}}{1}}
+ or
+ test {\ifandothers{editor}}
+ }
+ {\def\abx@tempa{editors}}
+ {\def\abx@tempa{editor}}}
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{editor}}{1}}
+ or
+ test {\ifandothers{editor}}
+ }
+ {\edef\abx@tempa{\thefield{editortype}s}}
+ {\edef\abx@tempa{\thefield{editortype}}}}%
+ \let\abx@tempb=\empty
+ \ifnamesequal{editor}{translator}
+ {\appto\abx@tempa{tr}%
+ \appto\abx@tempb{\clearname{translator}}}
+ {}%
+ \ifnamesequal{editor}{commentator}
+ {\appto\abx@tempa{co}%
+ \appto\abx@tempb{\clearname{commentator}}}
+ {\ifnamesequal{editor}{annotator}
+ {\appto\abx@tempa{an}%
+ \appto\abx@tempb{\clearname{annotator}}}
+ {}}%
+ \ifnamesequal{editor}{introduction}
+ {\appto\abx@tempa{in}%
+ \appto\abx@tempb{\clearname{introduction}}}
+ {\ifnamesequal{editor}{foreword}
+ {\appto\abx@tempa{fo}%
+ \appto\abx@tempb{\clearname{foreword}}}
+ {\ifnamesequal{editor}{afterword}
+ {\appto\abx@tempa{af}%
+ \appto\abx@tempb{\clearname{afterword}}}
+ {}}}%
+ \ifbibxstring{\abx@tempa}
+ {\printtext[editortype]{\mkbibparens{\bibstring{\abx@tempa}}}\abx@tempb}
+ {\usebibmacro{editorstrg}}%
+}
+
+\renewbibmacro*{editor}{%
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\printnames{editor}%
+ \setunit{\addspace}%
+ \usebibmacro{editorstrg}%
+ \clearname{editor}}
+ {}%
+}
+
+\renewbibmacro*{editor+others}{%
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\printnames{editor}%
+ \setunit{\addspace}%
+ \usebibmacro{editor+othersstrg}%
+ \clearname{editor}}
+ {}}
+
+\renewbibmacro*{byeditor+others}{%
+ \ifnameundef{editor}
+ {}
+ {\usebibmacro{byeditor+othersstrg}%
+ \setunit{\addspace}%
+ \printnames[byeditor]{editor}%
+ \clearname{editor}%
+ \newunit}%
+ \usebibmacro{byeditorx}%
+ \usebibmacro{bytranslator+others}}
+
+\renewbibmacro*{finentry}{%
+ \ifbibliography{%
+ \iffieldundef{shorthand}{}{%
+ \bibstring{bibcitedas}\addspace\mkbibquote{\printfield{shorthand}}%
+ }%
+ \ifboolexpr{ test {\ifcategory{quotee}}
+ and not test {\ifcategory{primary}} }
+ {\newunit%
+ \bibstring{quotedin}%
+ \addspace%
+ \global\toggletrue{cbx@isquote}%
+ \fullcite{\csuse{cbx@quoter@\thefield{entrykey}}}%
+ \global\togglefalse{cbx@isquote}}
+ {}}
+ {}%
+ \finentry%
+}
+
+% Asugabe der Eintragstypen anpassen
+\DeclareBibliographyDriver{incollection}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+ \setunit{\labelnamepunct}\newblock
+ \usebibmacro{title}%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{in:}%
+% \usebibmacro{publisher+maintitle+booktitle}%
+ \usebibmacro{maintitle+booktitle}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{edition}%
+ \newunit
+ \iffieldundef{maintitle}
+ {\printfield{volume}%
+ \printfield{part}}
+ {}%
+ \newunit
+ \printfield{volumes}%
+ \newunit\newblock
+ \usebibmacro{series+number}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{location+date}%
+ \newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \usebibmacro{finentry}}
+
+
+\DeclareBibliographyDriver{music}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+ \setunit{\labelnamepunct}\newblock
+ \usebibmacro{maintitle+title}%
+ \usebibmacro{opus}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit
+ \usebibmacro{byeditor+others}%
+ \setunit{[=\addspace}
+ \printfield{series}%
+ \setunit*{\unspace]\adddot\addspace}
+ \usebibmacro{publisher+location+date}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{finentry}}
+
+\DeclareBibliographyDriver{booklet}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+ \setunit{\labelnamepunct}\newblock
+ \usebibmacro{title}%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{type}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{location+date}%
+ \newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \usebibmacro{finentry}}
+
+% Ausgabeformate anpassen
+\DeclareFieldFormat{citetitle}{\mkbibemph{#1\isdot}}
+\DeclareFieldFormat[article]{citetitle}{\mkbibemph{#1}}
+\DeclareFieldFormat[incollection]{citetitle}{\mkbibemph{#1}}
+\DeclareFieldFormat{title}{\mkbibemph{#1\isdot}}
+\DeclareFieldFormat[article]{title}{\mkbibemph{#1}}
+\DeclareFieldFormat[incollection]{title}{\mkbibemph{#1}}
+
+% Aussehen der Bibliography anpassen
+\setlength{\bibhang}{0pt}
+\setlength{\bibitemsep}{0.5\baselineskip}
+
+%<audrey>
+% benötigt für Sekundärzitate
+\DeclareBibliographyCategory{quoter}
+\DeclareBibliographyCategory{quotee}
+\DeclareBibliographyCategory{primary}
+
+\defbibfilter{onlyprimary}{%
+ category=quoter or category=primary}
+
+\newtoggle{cbx@isquote}% Current citation quote?
+\newtoggle{cbx@iflastquote}% Last quotecite quotecite?
+\newtoggle{cbx@iflastibid}% Last quotecite ibid?
+\newtoggle{cbx@ifquoteepost}% Ibid quotecite outputs quotee postnote?
+\newtoggle{cbx@ifquoterpost}% Ibid quotecite outputs quoter postnote?
+\newtoggle{cbx@fullquote}% Print a full quotecite?
+
+\newcommand*{\quoteepostdelim}{%
+ \addcomma\addspace\bibstring{quotedfrom}\space}
+
+\newcommand*{\quoterpostdelim}{%
+ \addcomma\space\bibstring{quotedon}\space}
+
+\newcommand*{\quotedelim}{%
+ \adddot\space\bibsentence\bibstring{quotedin}\space}
+
+\AtEveryCitekey{%
+ \iftoggle{cbx@isquote}
+ {}
+ {\addtocategory{primary}{\thefield{entrykey}}%
+ \global\togglefalse{cbx@iflastquote}}}
+%</audrey>
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.cbx b/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.cbx
new file mode 100644
index 00000000000..7959047eee0
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-musuos/musuos.cbx
@@ -0,0 +1,191 @@
+% Tobias Weh, 2011
+
+% THANKS to Audrey form TeX.SX for building the
+% quoted-in-cite-code. His code is marked with the
+% pseudo tag <audrey>.
+% See http://tex.stackexchange.com/q/27964/4918
+\ProvidesFile{musuos.cbx}[2011/09/10 v1.0 Musikwissenschaften Uni Osnabrueck]
+
+% Ausgangsstil laden
+\RequireCitationStyle{verbose-ibid}
+
+% Voreinstellungen
+\ExecuteBibliographyOptions{
+ autocite=footnote,
+ labelyear=true,
+ dashed=false,
+ urldate=long,
+%<audrey>
+ citetracker=true,
+ ibidtracker=true,
+ ibidpage=true,
+%</audrey>
+}
+
+% Auf die neue Sprachdatei umleiten
+\DeclareLanguageMapping{german}{german-musuos}
+
+% Zitatmacros anpassen
+\renewbibmacro*{cite:short}{%
+ \iffieldequalstr{entrytype}{music}{%
+ \iffieldundef{userb}{%
+ \printnames{labelname}%
+ \newunit{\addcolon\space}{\printfield{title}}
+ }{%
+ \printfield{userb}%
+ }
+ }{%
+ \ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}{%
+ \printnames{labelname}%
+ \setunit{\nameyeardelim}%
+ \usebibmacro{cite:label}%
+ \setunit{\addcolon}%
+ }{%
+ \printnames{labelname}%
+ \setunit{\nameyeardelim}%
+ \usebibmacro{cite:labelyear+extrayear}%
+ }%
+ }%
+}
+
+\newbibmacro*{cite:labelyear+extrayear}{%
+ \iffieldundef{labelyear}{%
+ }{%
+ \printtext[bibhyperref]{%
+ \printfield{labelyear}%
+ \printfield{extrayear}}
+ }%
+}
+
+\newbibmacro*{cite:label}{%
+ \newunit{\nameyeardelim}{o.\,J.}%
+}
+
+\renewbibmacro*{shorthandintro}{%
+ \iffieldundef{shorthandintro}
+ {\iffieldundef{shorthand}
+ {}
+ {\setunit{\addspace}%
+ \printtext[parens]{%
+ \bibstring{citedas}\space
+ \mkbibquote{\printfield{shorthand}}}}}
+ {\setunit{\addspace}%
+ \printtext[parens]{\printfield{shorthandintro}}}}
+
+%<audrey>
+\newbibmacro*{cite:quotee}{%
+ \savefieldcs{postnote}{cbx@post}%
+ \ifboolexpr{ test {\ifciteseen} and not test {\iftoggle{cbx@fullquote}} }
+ {\iffieldundef{shorthand}
+ {\ifboolexpr{ not test {\iffirstonpage}
+ and test {\ifsamepage{\value{instcount}}{\value{instcount}-2}}
+ and test {\iftoggle{cbx@iflastquote}}
+ and test {\iffieldequalcs{entrykey}{cbx@lastquoteekey}} }
+ {\printtext[bibhyperlink]{\bibstring[\mkibid]{ibidem}}%
+ \iffieldequalcs{postnote}{cbx@lastquoteepost}
+ {\clearfield{postnote}}
+ {\global\toggletrue{cbx@ifquoteepost}}%
+ \global\toggletrue{cbx@iflastibid}}
+ {\usebibmacro{cite:short}}}
+ {\usebibmacro{cite:shorthand}}}
+ {\usebibmacro{cite:full}}%
+ \csxdef{cbx@lastquoteepost}{\csuse{cbx@post}}}
+
+\newbibmacro*{cite:quoter}{%
+ \savefieldcs{postnote}{cbx@post}%
+ \ifboolexpr{ not test {\iftoggle{cbx@fullquote}}
+ and test {\iftoggle{cbx@iflastibid}}
+ and test {\iffieldequalcs{entrykey}{cbx@lastquoterkey}} }
+ {\iffieldequalcs{postnote}{cbx@lastquoterpost}
+ {\clearfield{postnote}}
+ {\global\toggletrue{cbx@ifquoterpost}}}
+ {\iftoggle{cbx@iflastibid}
+ {\quotedelim}
+ {}%
+ \global\togglefalse{cbx@iflastibid}%
+ \ifboolexpr{ test {\ifciteseen} and not test {\iftoggle{cbx@fullquote}} }
+ {\iffieldundef{shorthand}
+ {\usebibmacro{cite:short}}
+ {\usebibmacro{cite:shorthand}}}
+ {\usebibmacro{cite:full}}}%
+ \csxdef{cbx@lastquoterpost}{\csuse{cbx@post}}%
+ \global\togglefalse{cbx@ifquoteepost}}
+
+\DeclareCiteCommand{\cbx@quotecite}
+ {\usebibmacro{prenote}}
+ {\ifnumless{\value{multicitecount}}{2}% <loopcode>
+ {\usebibmacro{citeindex}% Current entry is a quotee
+ \addtocategory{quotee}{\thefield{entrykey}}%
+ \xdef\cbx@quoteekey{\thefield{entrykey}}%
+ \usebibmacro{cite:quotee}%
+ \csxdef{cbx@lastquoteekey}{\thefield{entrykey}}}
+ {\addtocategory{quoter}{\thefield{entrykey}}% Current entry is a quoter
+ \xifinlistcs{\thefield{entrykey}}{cbx@quoterlist@\cbx@quoteekey}
+ {}
+ {\csxappto{cbx@quoter@\cbx@quoteekey}{\thefield{entrykey},}%
+ \listcsxadd{cbx@quoterlist@\cbx@quoteekey}{\thefield{entrykey}}}%
+ \usebibmacro{cite:quoter}%
+ \csxdef{cbx@lastquoterkey}{\thefield{entrykey}}}}
+ {\multicitedelim}
+ {\iftoggle{cbx@iflastibid}
+ {\iftoggle{cbx@ifquoteepost}
+ {\let\postnotedelim=\quoteepostdelim}
+ {\iftoggle{cbx@ifquoterpost}
+ {\let\postnotedelim=\quoterpostdelim}
+ {}}}
+ {}%
+ \usebibmacro{cite:postnote}%
+ \global\toggletrue{cbx@iflastquote}}
+
+\newrobustcmd{\cbx@mkfullquote}{%
+ \AtNextCite{\citetrackerfalse}%
+ \toggletrue{cbx@fullquote}}
+
+\DeclareMultiCiteCommand{\quotecite}
+ [\cbx@qcwrapper\relax\mkbibautoformat]
+ {\cbx@quotecite}
+ {\cbx@qcdelim}
+\DeclareMultiCiteCommand{\fullquotecite}
+ [\cbx@qcwrapper\cbx@mkfullquote\mkbibautoformat]
+ {\cbx@quotecite}
+ {\cbx@qcdelim}
+
+\newrobustcmd{\mkbibautoformat}[1]{%
+ \cslet{cbx@autocite}{\autocite}%
+ \ifcsequal{cbx@autocite}{blx@acite@inline}
+ {\ifboolexpr{ test {\ifdefstring{\blx@bbxfile}{numeric}}
+ or test {\ifdefstring{\blx@bbxfile}{alphabetic}} }
+ {\mkbibbrackets{#1}}
+ {\mkbibparens{#1}}}
+ {\ifcsequal{cbx@autocite}{blx@acite@footnote}
+ {\iffootnote
+ {\ifboolexpr{ test {\ifdefstring{\blx@bbxfile}{numeric}}
+ or test {\ifdefstring{\blx@bbxfile}{alphabetic}} }
+ {\mkbibbrackets{#1}}
+ {\mkbibparens{#1}}}
+ {\mkbibfootnote{#1}}}
+ {\ifcsequal{cbx@autocite}{blx@acite@superscript}
+ {\mkbibsuperscript{#1}}
+ {#1}}}}
+
+
+\newrobustcmd{\cbx@qcwrapper}[3]{%
+ \global\toggletrue{cbx@isquote}%
+ \global\togglefalse{cbx@fullquote}%
+ #1#2{#3}%
+ \global\togglefalse{cbx@isquote}%
+ \global\togglefalse{cbx@iflastibid}%
+ \global\togglefalse{cbx@ifquoteepost}%
+ \global\togglefalse{cbx@ifquoterpost}}
+
+\newrobustcmd{\cbx@qcdelim}{%
+ \iftoggle{cbx@iflastibid}
+ {}
+ {\quotedelim}}
+%</audrey>
+
+% Feldformate anpassen
+\DeclareFieldFormat{url}{\url{#1}}
+\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
+
+\endinput \ No newline at end of file