BibTeX, biblatex and biber\citep* does not work

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Lena91
Posts: 3
Joined: Fri Nov 06, 2015 6:22 pm

\citep* does not work

Post by Lena91 »

Hallo,

i am a beginner with latex, so sorry for the long example.

My problem:

I want to quote the first time with all names, the second and more just with the first author and e.g. (in German u.a. is fine)

I got this thing to work. *proud*

Now I also need all of the authors in round brackets (like \citet*).

But

Code: Select all

\parencite*{Huper.2007c}
\citep*[202]{Huper.2007c}
aren`t working.

Can someone help me?

Code: Select all

\documentclass[12pt,a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{url}
\usepackage[babel,german=quotes]{csquotes}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear,citestyle=authoryear,natbib=true,backend=biber, maxcitenames=1, maxbibnames=99]{biblatex}

%Namenssortierung Nachname Vorname
\DeclareNameAlias{sortname}{last-first}

%Doppelpunkt nach Jahreszahl
\renewcommand{\postnotedelim}{\addcolon\addspace}

%S. vor Seitenangabe entfernen
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\renewbibmacro*{chapter+pages}{%
   \printfield{chapter}%
   \setunit{\bibpagespunct}%
   \printfield{pages}%
   \newunit}
   
%Slash zwischen Autoren
\newcommand*{\bibmultinamedelim}{\addslash\space}%
\newcommand*{\bibfinalnamedelim}{\addslash\space}%

\renewcommand*{\multinamedelim}{/}
\renewcommand*{\finalnamedelim}{/}

\AtBeginBibliography{%
   \let\multinamedelim\bibmultinamedelim
   \let\finalnamedelim\bibfinalnamedelim
}
\renewcommand*{\labelnamepunct}{\addcolon\space}

\addbibresource{referenzen2.bib}   % benötigt referenzen.bib

\nocite{*}

\begin{document}


\citeauthor*{Huper.2007b} schrieben \citeyear{Huper.2007b} ein interessantes Buch über blablabla.\newline
\citeauthor{Huper.2007b} schrieben \citeyear{Huper.2007b} ein interessantes Buch über blablabla.\newline


ich will \citet*[223]{Huper.2007b} zitieren\newline
ich will \citet[223]{Huper.2007b} zitieren\newline
ich will \parencite{Huper.2007b} zitieren\newline

ich will \citet*{Huper.2007c} fanden herraus\newline
ich will \citet{Huper.2007c} zitieren\newline
ich will \parencite{Huper.2007c} fanden herraus\newline
ich will \citep[202]{Huper.2007c}\newline

ich will \citet[200]{Domenig.2007}\newline

%\makeatletter
%\renewcommand{\@cite}[2]{({#1\if@tempswa , #2\fi})}
%\renewcommand{\@biblabel}[1]{(#1)}
%\makeatother



% Literaturverzeichnis
\renewcommand{\refname}{Literatur- und Quellenverzeichnis}
\addcontentsline{toc}{section}{Literatur- und Quellenverzeichnis}

\printbibliography


\end{document}


The bib is called referenzen2.bib


Code: Select all


@book{Domenig.2007,
 year = {2007},
 title = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
 address = {Bern},
 publisher = {{Verlag Hans Huber}},
 editor = {Domenig, Dagmar}
}

@incollection{Huper.2007b,
 author = {H{\"u}per, Christa and Kerkow-Weil, Rosemarie},
 title = {{Schmerz im Migrationskontext}},
 publisher = {{Verlag Hans Huber}},
 editor = {Domenig, Dagmar},
 booktitle = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
 year = {2007},
 address = {Bern}
}

@incollection{Huper.2007c,
 author = {H{\"u}per5 Christa and Kerkow-Weil5 Rosemarie and Kerkow-Weil2 Rosemarie2 and Kerkow-Weil3W Rosemarie3},
 title = {{Schmerz im Migrationskontext}},
 publisher = {{Verlag Hans Huber}},
 editor = {Domenig, Dagmar},
 booktitle = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
 year = {2007},
 address = {Bern}
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

\citep* does not work

Post by cgnieder »

Hi and welcome to the forum!

Can you tell us what exactly isn't working?

I slightly modified your example using biblatex's example bib file (so I don't need a separate bib file) and added

Code: Select all

\citep*{companion}\par
\parencite*{companion}\par
\citep*[202]{companion}

\citep*{knuth:ct:a}\par
\parencite*{knuth:ct:a}\par
\citep*[202]{knuth:ct:a}

\citep*{knuth:ct:b}\par
\parencite*{knuth:ct:b}\par
\citep*[202]{knuth:ct:b}
which seem to work nicely:
biblatex.png
biblatex.png (56.37 KiB) Viewed 11729 times
My complete code:

Code: Select all

\documentclass[12pt,a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usepackage[
  style=authoryear,
  citestyle=authoryear,
  natbib=true,
  backend=biber,
  maxcitenames=1,
  maxbibnames=99]{biblatex}

%Namenssortierung Nachname Vorname
\DeclareNameAlias{sortname}{last-first}

%Doppelpunkt nach Jahreszahl
\renewcommand{\postnotedelim}{\addcolon\addspace}

%S. vor Seitenangabe entfernen
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\renewbibmacro*{chapter+pages}{%
   \printfield{chapter}%
   \setunit{\bibpagespunct}%
   \printfield{pages}%
   \newunit}
   
%Slash zwischen Autoren
\newcommand*{\bibmultinamedelim}{\addslash\space}%
\newcommand*{\bibfinalnamedelim}{\addslash\space}%

\renewcommand*{\multinamedelim}{/}
\renewcommand*{\finalnamedelim}{/}

\AtBeginBibliography{%
   \let\multinamedelim\bibmultinamedelim
   \let\finalnamedelim\bibfinalnamedelim
}
\renewcommand*{\labelnamepunct}{\addcolon\space}

\addbibresource{biblatex-examples.bib}   % benötigt referenzen.bib

\begin{document}


\citeauthor*{companion} schrieben \citeyear{companion} ein interessantes Buch
über blablabla.

\citeauthor{companion} schrieben \citeyear{companion} ein interessantes Buch
über blablabla.

ich will \citet*[223]{companion} zitieren\par
ich will \citet[223]{companion} zitieren\par
ich will \parencite{companion} zitieren

ich will \citet*{knuth:ct:a} fanden heraus\par
ich will \citet{knuth:ct:a} zitieren\par
ich will \parencite{knuth:ct:a} fanden heraus\par
ich will \citep[202]{knuth:ct:a}

ich will \citet[200]{knuth:ct:b}

\citep*{companion}\par
\parencite*{companion}\par
\citep*[202]{companion}

\citep*{knuth:ct:a}\par
\parencite*{knuth:ct:a}\par
\citep*[202]{knuth:ct:a}

\citep*{knuth:ct:b}\par
\parencite*{knuth:ct:b}\par
\citep*[202]{knuth:ct:b}


\printbibliography

\end{document}
Regards
site moderator & package author
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

\citep* does not work

Post by cgnieder »

Maybe I understand: do you either want \citeauthor also to be in parentheses or do you just want for all citations that maxcitenames=1 only is used the second time a work is cited?

Regards
site moderator & package author
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

\citep* does not work

Post by Johannes_B »

Somehow i overlooked this post yesterday.
Clemens, please note that this is a crosspost to goLaTeX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Lena91
Posts: 3
Joined: Fri Nov 06, 2015 6:22 pm

Re: \citep* does not work

Post by Lena91 »

Hey Clemens,

on the goLatex Website are some people who had some advice. I need to try that first, but i am on a ride right now.


To make my point clear:

It would be nice if the first time the authors are qouted, all the names are printed, the second time just the first author and e.g

The second thing is, that i want this option also for a citation in the brackets.

I need:


- 1. Time: Christa/Rosemarie/Rosemarie2/Rosemarie3 (2007: 21)
- 2./3./4./5.time: Christa u.a. (2007: 21)


- 1. Time: (Christa/Rosemarie/Rosemarie2/Rosemarie3, 2007: 21)
- 2./3./4./5.time: (Christa u.a., 2007: 21)


The third Option is not working.

Greetings Lena
Lena91
Posts: 3
Joined: Fri Nov 06, 2015 6:22 pm

Re: \citep* does not work

Post by Lena91 »

Thanks for helping, on Golatex was a nice solution i use now.
Post Reply