And anstatt & bei Zitationen
Vielleicht sollten die Damen und Herren darauf hingewiesen werden, dass "und" und "&" irgendwie dasselbe heißen sollen und dass es etwas unsinnig ist, vor das eine keine Komma zu setzen und vor das andere schon.
Ja, das geht, aber es ist mit etwas Aufwand verbunden und es kann sein, dass ich etwas übersehen habe.
Wir brauchen (zumindest für biblatex-apa 6.9 für andere Versionen ist es unter Umständen überflüssig, schaden kann es nie)
dann fügen wir das Komma zu den "&"s manuell hinzu
Also
Oder wir gehen das andersherum an und entfernen alle Vorkommen von \finalandcomma, wo es mit \bibstring{and} vorkommt und lassen es ein Komma werden
Aber auch da müssen dann ein paar Sondefälle beachtet werden.
Ja, das geht, aber es ist mit etwas Aufwand verbunden und es kann sein, dass ich etwas übersehen habe.
Wir brauchen (zumindest für biblatex-apa 6.9 für andere Versionen ist es unter Umständen überflüssig, schaden kann es nie)
\DefineBibliographyExtras{ngerman}{\def\finalandcomma{}}
\makeatletter \DeclareCiteCommand{\amptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{textcite}} {} {\usebibmacro{textcite:postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand*{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{citeyear}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\nptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \global\booltrue{cbx:np}% \usebibmacro{textcite}% \global\boolfalse{cbx:np}}% {} {\iffieldundef{postnote} {} {\nameyeardelim \printfield{postnote}}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{prenote}} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}% \global\let\blx@related@loop\@empty} {\thefield{entrytype}}} {\multicitedelim} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcitebib} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \list{} {\setlength{\leftmargin}{\bibhang}% \setlength{\itemindent}{-\leftmargin}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}\item} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}} {\thefield{entrytype}}\finentry} {\item} {\endlist \usebibmacro{cite:post}} \AtBeginBibliography{\renewcommand*{\finalnamedelim}{% \ifthenelse{\value{listcount}>\maxprtauth} {} {\ifthenelse{\value{liststop}>2} {\addcomma\addspace\&\space} {\addspace\&\space}}}} \makeatother
\documentclass[ngerman]{scrartcl} \usepackage{babel} \usepackage{csquotes} \usepackage[backend=biber,style=apa]{biblatex} \DeclareLanguageMapping{ngerman}{ngerman-apa} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @article{Jovanovic2015, author = {Jovanovic, Aleksander and Jankovic, Anita and Jovanovic, Snezana Markovic and Peric, Vladan and Biljana, Vitosevic}, journal = {International Journal of Education and Development using Information and Communication Technology}, pages = {138--152}, title = {{When going hybrid is not enough: Statistical analysis of effectiveness of blended courses piloted within Tempus BLATT Project}}, volume = {11}, year = {2015} } @article{Chen2014, author = {Chen, Bryan H and Chiou, Hua-Huei}, journal = {Interactive Learning Environments}, pages = {485--496}, title = {{Learning style, sense of community and learning effectiveness in hybrid learning environment}}, volume = {22}, year = {2014} } \end{filecontents} \DefineBibliographyStrings{german}{andothers = {et\addabbrvspace al\adddot}} \DefineBibliographyExtras{ngerman}{\def\finalandcomma{\foooo}} \DeclareCiteCommand{\amptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{textcite}} {} {\usebibmacro{textcite:postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand*{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{citeyear}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\nptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \global\booltrue{cbx:np}% \usebibmacro{textcite}% \global\boolfalse{cbx:np}}% {} {\iffieldundef{postnote} {} {\nameyeardelim \printfield{postnote}}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{prenote}} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}% \global\let\blx@related@loop\@empty} {\thefield{entrytype}}} {\multicitedelim} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcitebib} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \list{} {\setlength{\leftmargin}{\bibhang}% \setlength{\itemindent}{-\leftmargin}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}\item} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}} {\thefield{entrytype}}\finentry} {\item} {\endlist \usebibmacro{cite:post}} \AtBeginBibliography{\renewcommand*{\finalnamedelim}{% \ifthenelse{\value{listcount}>\maxprtauth} {} {\ifthenelse{\value{liststop}>2} {\addcomma\addspace\&\space} {\addspace\&\space}}}} \addbibresource{\jobname.bib} \begin{document} \parencite{Jovanovic2015,Chen2014} \parencite{Jovanovic2015,Chen2014} \citereset \amptextcite{Jovanovic2015,Chen2014} \amptextcite{Jovanovic2015,Chen2014} \citereset \textcite{Jovanovic2015,Chen2014} \textcite{Jovanovic2015,Chen2014} \printbibliography \end{document}
\DefineBibliographyExtras{ngerman}{\def\finalandcomma{\addcomma}} \renewcommand*{\finalnamedelim}{\addspace\bibstring{and}\space} \renewcommand*{\finallistdelim}{\addspace\bibstring{and}\space} \renewcommand*{\textcitedelim}{% \iffinalcitedelim {\addspace\bibstring{and}} {\iftextcitepunct{\addsemicolon}{\addcomma}}% \space} \renewbibmacro*{name:andothers}{% \ifboolexpr{ test {\ifnumequal{\value{listcount}}{\value{liststop}}} and test \ifmorenames } {\andothersdelim\bibstring{andothers}} {}}
\documentclass[ngerman]{scrartcl} \usepackage{babel} \usepackage{csquotes} \usepackage[backend=biber,style=apa]{biblatex} \DeclareLanguageMapping{ngerman}{ngerman-apa} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @article{Jovanovic2015, author = {Jovanovic, Aleksander and Jankovic, Anita and Jovanovic, Snezana Markovic and Peric, Vladan and Biljana, Vitosevic}, journal = {International Journal of Education and Development using Information and Communication Technology}, pages = {138--152}, title = {{When going hybrid is not enough: Statistical analysis of effectiveness of blended courses piloted within Tempus BLATT Project}}, volume = {11}, year = {2015} } @article{Chen2014, author = {Chen, Bryan H and Chiou, Hua-Huei}, journal = {Interactive Learning Environments}, pages = {485--496}, title = {{Learning style, sense of community and learning effectiveness in hybrid learning environment}}, volume = {22}, year = {2014} } \end{filecontents} \DefineBibliographyStrings{german}{andothers = {et\addabbrvspace al\adddot}} \DefineBibliographyExtras{ngerman}{\def\finalandcomma{\addcomma}} \DeclareCiteCommand{\amptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \finalandcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{textcite}} {} {\usebibmacro{textcite:postnote}% \usebibmacro{cite:post}} \renewcommand*{\finalnamedelim}{\addspace\bibstring{and}\space} \renewcommand*{\finallistdelim}{\addspace\bibstring{and}\space} \renewcommand*{\textcitedelim}{% \iffinalcitedelim {\addspace\bibstring{and}} {\iftextcitepunct{\addsemicolon}{\addcomma}}% \space} \renewbibmacro*{name:andothers}{% \ifboolexpr{ test {\ifnumequal{\value{listcount}}{\value{liststop}}} and test \ifmorenames } {\andothersdelim\bibstring{andothers}} {}} \addbibresource{\jobname.bib} \begin{document} \parencite{Jovanovic2015,Chen2014} \parencite{Jovanovic2015,Chen2014} \citereset \amptextcite{Jovanovic2015,Chen2014} \amptextcite{Jovanovic2015,Chen2014} \citereset \textcite{Jovanovic2015,Chen2014} \textcite{Jovanovic2015,Chen2014} \printbibliography \end{document}
danke dir. wow. bin etwas erdrückt 
Habe die 2. Variante verwendet - etwas weniger code
Ich habe mehrere files die ich einem Hauptfile zusammenführe mit "include"
Wenn ich dieses File kompiliere, dann funktioniert alles wunderbar!!!
Aber seitdem ich den code von dir eingefügt habe, kann ich nicht mehr von einem anderen File aus kompilieren (zB irgendein Inhaltsfile)
Dann bekomme ich die Meldungen wie im Anhang.
Verwende übrigens Texstudio
Habe schon mit einem von der Fakultät geredet. Das ist bei uns so weil das "und" im Satz steht und dazu gehört. Also ich muss mich daran halten. Leider.

Habe die 2. Variante verwendet - etwas weniger code

Ich habe mehrere files die ich einem Hauptfile zusammenführe mit "include"
Wenn ich dieses File kompiliere, dann funktioniert alles wunderbar!!!
Aber seitdem ich den code von dir eingefügt habe, kann ich nicht mehr von einem anderen File aus kompilieren (zB irgendein Inhaltsfile)
Dann bekomme ich die Meldungen wie im Anhang.
Verwende übrigens Texstudio
Habe schon mit einem von der Fakultät geredet. Das ist bei uns so weil das "und" im Satz steht und dazu gehört. Also ich muss mich daran halten. Leider.
- Dateianhänge
-
- Bildschirmfoto 2016-06-15 um 17.21.46.png (292.42 KiB) 3282 mal betrachtet
In meinem ersten Minimalbeispiel hatte ich
stehen, da muss natürlich
hin, sorry.
Dann sollten beide Vorschläge dieselbe Ausgabe liefern. Natürlich kannst Du \textcite und \parencite weiterhin verwenden. Ich wollte mit meiner Warnung nur ausdrücken, dass Du vielleicht etwas auf die Kommas achten musst, nicht das durch die vielen Modifikationen irgendwo eins auftaucht, wo es nicht hingehört, oder es irgendwo verschwindet, wo es hin soll.
Welche der beiden Vorschläge Du verwendest, ist Dir selbst überlassen. Konzeptionell finde ich eigentlich die erste Version besser. Im Grunde sagen wir dort, dass nie ein Komma vor "und" gehört, dass wir vor den "&"s aber ein Komma möchten (wenn wir mehr als zwei Glieder haben). Da das "&" aber an einigen Stellen vorkommt, haufen wir dafür einiges an Code an.
In der zweiten Version löschen wir das Oxford-Komma (\finalandcomma) manuell aus allen Positionen heraus, wo es vor \bibstring{and} (also einem "und") auftaucht. Bei den "&"s bleibt es. Da wir das Oxford-Komma dann aktivieren, bekommen wir nur noch vor "&"s ein Komma. Diesen Ansatz finde ich nicht so schön, denn wir tun quasi so, als fänden wir ein Oxford-Komma gut, löschen es dann aber an ganz vielen Stellen, an denen es sonst auftauchen würde. Er hat aber den Vorteil, hier etwas kürzer zu sein und so etwas weniger einschüchternd zu wirken.
\DefineBibliographyExtras{ngerman}{\def\finalandcomma{\foooo}}
\DefineBibliographyExtras{ngerman}{\def\finalandcomma{}}
Dann sollten beide Vorschläge dieselbe Ausgabe liefern. Natürlich kannst Du \textcite und \parencite weiterhin verwenden. Ich wollte mit meiner Warnung nur ausdrücken, dass Du vielleicht etwas auf die Kommas achten musst, nicht das durch die vielen Modifikationen irgendwo eins auftaucht, wo es nicht hingehört, oder es irgendwo verschwindet, wo es hin soll.
Welche der beiden Vorschläge Du verwendest, ist Dir selbst überlassen. Konzeptionell finde ich eigentlich die erste Version besser. Im Grunde sagen wir dort, dass nie ein Komma vor "und" gehört, dass wir vor den "&"s aber ein Komma möchten (wenn wir mehr als zwei Glieder haben). Da das "&" aber an einigen Stellen vorkommt, haufen wir dafür einiges an Code an.
In der zweiten Version löschen wir das Oxford-Komma (\finalandcomma) manuell aus allen Positionen heraus, wo es vor \bibstring{and} (also einem "und") auftaucht. Bei den "&"s bleibt es. Da wir das Oxford-Komma dann aktivieren, bekommen wir nur noch vor "&"s ein Komma. Diesen Ansatz finde ich nicht so schön, denn wir tun quasi so, als fänden wir ein Oxford-Komma gut, löschen es dann aber an ganz vielen Stellen, an denen es sonst auftauchen würde. Er hat aber den Vorteil, hier etwas kürzer zu sein und so etwas weniger einschüchternd zu wirken.
Ja super. es funktioniert auch. Aber nur wenn ich die Hauptdatei kompiliere. Die anderen included-Dateien kann ich nicht mehr kompilieren. ist jetzt nicht ganz schlimm, aber komfortabel war es schon - vor allem bei größeren Dokumenten, weil ich dann in der Vorschau gleich an der richtigen Stelle war.
Hier mal mein Bsp: Ist was falsch weil es nur aus dem Hauptfile funktioniert
Hier mal mein Bsp: Ist was falsch weil es nur aus dem Hauptfile funktioniert
\documentclass[ 11pt, % Schriftgröße %DIV10, ngerman, % für Umlaute, Silbentrennung etc. a4paper, % Papierform oneside, % einseitiges Dokument titlepage, % es wird eine guteseite verwendet parskip=half, % Abstand zwischen Absätzen (halbe Zeile) headings=normal, % Größe der Überschriften verkleinern listof=totoc, % Verzeichnisse im Inhaltsverzeichnis aufführen bibliography=totoc, % Literaturverzeichnis im Inhaltsverzeichnis aufführen index=totoc, % Index im Inhaltsverzeichnis aufführen %captions=tableheading, % Beschriftung von Tabellen unterhalb ausgeben %tablecaptionabove, final % Status des Dokuments (final/draft) ]{scrartcl} \usepackage[backend=biber, %% Hilfsprogramm "biber" (statt "biblatex" oder "bibtex") style=apa, %% Zitierstil (siehe Dokumentation) natbib=true, %% Bereitstellen von natbib-kompatiblen Zitierkommandos hyperref=true, %% hyperref-Paket verwenden, um Links zu erstellen firstinits=true, %maxcitenames=6, ]{biblatex} \DeclareLanguageMapping{ngerman}{ngerman-apa} %%%%%%%%%%%%%%% Komma vor dem &, aber kein Komma vor "und" \DefineBibliographyStrings{german}{andothers = {et\addabbrvspace al\adddot}} \DefineBibliographyExtras{ngerman}{\def\finalandcomma{}} \DeclareCiteCommand{\amptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{textcite}} {} {\usebibmacro{textcite:postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand*{\parencite}[\mkbibparens] {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{citeyear}} {} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\nptextcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \global\booltrue{cbx:np}% \usebibmacro{textcite}% \global\boolfalse{cbx:np}}% {} {\iffieldundef{postnote} {} {\nameyeardelim \printfield{postnote}}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcite} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \usebibmacro{prenote}} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}% \global\let\blx@related@loop\@empty} {\thefield{entrytype}}} {\multicitedelim} {\usebibmacro{postnote}% \usebibmacro{cite:post}} \DeclareCiteCommand{\fullcitebib} {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space}% \list{} {\setlength{\leftmargin}{\bibhang}% \setlength{\itemindent}{-\leftmargin}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}\item} {\usedriver {\DeclareNameAlias{sortname}{default}% \global\boolfalse{bbx:parens}% \global\boolfalse{bbx:volseen}% \global\boolfalse{bbx:titleinauthpos}% \global\boolfalse{bbx:editorinauthpos}% \global\boolfalse{bbx:in}} {\thefield{entrytype}}\finentry} {\item} {\endlist \usebibmacro{cite:post}} \AtBeginBibliography{\renewcommand*{\finalnamedelim}{% \ifthenelse{\value{listcount}>\maxprtauth} {} {\ifthenelse{\value{liststop}>2} {\addcomma\addspace\&\space} {\addspace\&\space}}}} %%%%%%%%%%%%% \begin{document} \parencite{Jovanovic2015,Chen2014} \parencite{Jovanovic2015,Chen2014} \citereset \amptextcite{Jovanovic2015,Chen2014} \amptextcite{Jovanovic2015,Chen2014} \citereset \textcite{Jovanovic2015,Chen2014} \textcite{Jovanovic2015,Chen2014} \include{Inhalt/01Einleitung} \printbibliography \end{document}
Zuletzt geändert von tomseno am Mi 15. Jun 2016, 17:50, insgesamt 1-mal geändert.
Wenn es nur um die Bibliographie geht, dann musst Du in Deinem Code oben den \AtBeginBibliography{\renewcommand*{\finalnamedelim}-Block durch
ersetzen. Da kommt dann die Abfrage weg, ob wir zwei Namen haben und es wird immer ein Komma ausgegeben.
Wenn Du das auf einmal auch in den Zitaten brauchst, ist das Vorgehen ähnlich \renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space} würde jeweils zu
\AtBeginBibliography{% \renewcommand*{\finalnamedelim}{% \ifthenelse{\value{listcount}>\maxprtauth} {} {\addcomma\addspace\&\space}}}
Wenn Du das auf einmal auch in den Zitaten brauchst, ist das Vorgehen ähnlich \renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \addcomma\fi\addspace\&\space} würde jeweils zu
\renewcommand{\finalnamedelim}{\addcomma\space\&\space}