LaTeX forum ⇒ BibTeX, biblatex and biber\citep* does not work Topic is solved

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

\citep* does not work

Postby Lena91 » Fri Nov 06, 2015 6:34 pm

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
  1. \parencite*{Huper.2007c}
  2. \citep*[202]{Huper.2007c}


aren`t working.

Can someone help me?


  1. \documentclass[12pt,a4paper]{scrartcl}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[ngerman]{babel}
  4. \usepackage[babel,german=quotes]{csquotes}
  5. \usepackage{url}
  6. \usepackage[babel,german=quotes]{csquotes}
  7. \usepackage[ngerman]{babel}
  8. \usepackage[style=authoryear,citestyle=authoryear,natbib=true,backend=biber, maxcitenames=1, maxbibnames=99]{biblatex}
  9.  
  10. %Namenssortierung Nachname Vorname
  11. \DeclareNameAlias{sortname}{last-first}
  12.  
  13. %Doppelpunkt nach Jahreszahl
  14. \renewcommand{\postnotedelim}{\addcolon\addspace}
  15.  
  16. %S. vor Seitenangabe entfernen
  17. \DeclareFieldFormat{postnote}{#1}
  18. \DeclareFieldFormat{multipostnote}{#1}
  19. \renewbibmacro*{chapter+pages}{%
  20. \printfield{chapter}%
  21. \setunit{\bibpagespunct}%
  22. \printfield{pages}%
  23. \newunit}
  24.  
  25. %Slash zwischen Autoren
  26. \newcommand*{\bibmultinamedelim}{\addslash\space}%
  27. \newcommand*{\bibfinalnamedelim}{\addslash\space}%
  28.  
  29. \renewcommand*{\multinamedelim}{/}
  30. \renewcommand*{\finalnamedelim}{/}
  31.  
  32. \AtBeginBibliography{%
  33. \let\multinamedelim\bibmultinamedelim
  34. \let\finalnamedelim\bibfinalnamedelim
  35. }
  36. \renewcommand*{\labelnamepunct}{\addcolon\space}
  37.  
  38. \addbibresource{referenzen2.bib} % benötigt referenzen.bib
  39.  
  40. \nocite{*}
  41.  
  42. \begin{document}
  43.  
  44.  
  45. \citeauthor*{Huper.2007b} schrieben \citeyear{Huper.2007b} ein interessantes Buch über blablabla.\newline
  46. \citeauthor{Huper.2007b} schrieben \citeyear{Huper.2007b} ein interessantes Buch über blablabla.\newline
  47.  
  48.  
  49. ich will \citet*[223]{Huper.2007b} zitieren\newline
  50. ich will \citet[223]{Huper.2007b} zitieren\newline
  51. ich will \parencite{Huper.2007b} zitieren\newline
  52.  
  53. ich will \citet*{Huper.2007c} fanden herraus\newline
  54. ich will \citet{Huper.2007c} zitieren\newline
  55. ich will \parencite{Huper.2007c} fanden herraus\newline
  56. ich will \citep[202]{Huper.2007c}\newline
  57.  
  58. ich will \citet[200]{Domenig.2007}\newline
  59.  
  60. %\makeatletter
  61. %\renewcommand{\@cite}[2]{({#1\if@tempswa , #2\fi})}
  62. %\renewcommand{\@biblabel}[1]{(#1)}
  63. %\makeatother
  64.  
  65.  
  66.  
  67. % Literaturverzeichnis
  68. \renewcommand{\refname}{Literatur- und Quellenverzeichnis}
  69. \addcontentsline{toc}{section}{Literatur- und Quellenverzeichnis}
  70.  
  71. \printbibliography
  72.  
  73.  
  74. \end{document}
  75.  



The bib is called referenzen2.bib



  1. @book{Domenig.2007,
  2. year = {2007},
  3. title = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
  4. address = {Bern},
  5. publisher = {{Verlag Hans Huber}},
  6. editor = {Domenig, Dagmar}
  7. }
  8.  
  9. @incollection{Huper.2007b,
  10. author = {H{\"u}per, Christa and Kerkow-Weil, Rosemarie},
  11. title = {{Schmerz im Migrationskontext}},
  12. publisher = {{Verlag Hans Huber}},
  13. editor = {Domenig, Dagmar},
  14. booktitle = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
  15. year = {2007},
  16. address = {Bern}
  17. }
  18.  
  19. @incollection{Huper.2007c,
  20. author = {H{\"u}per5 Christa and Kerkow-Weil5 Rosemarie and Kerkow-Weil2 Rosemarie2 and Kerkow-Weil3W Rosemarie3},
  21. title = {{Schmerz im Migrationskontext}},
  22. publisher = {{Verlag Hans Huber}},
  23. editor = {Domenig, Dagmar},
  24. booktitle = {{Transkulturelle Kompetenz. Lehrbuch f{\"u}r Pflege-, Gesundheits- und Sozialberufe}},
  25. year = {2007},
  26. address = {Bern}
  27. }

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sat Nov 07, 2015 3:54 pm

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

  1. \citep*{companion}\par
  2. \parencite*{companion}\par
  3. \citep*[202]{companion}
  4.  
  5. \citep*{knuth:ct:a}\par
  6. \parencite*{knuth:ct:a}\par
  7. \citep*[202]{knuth:ct:a}
  8.  
  9. \citep*{knuth:ct:b}\par
  10. \parencite*{knuth:ct:b}\par
  11. \citep*[202]{knuth:ct:b}


which seem to work nicely:

biblatex.png
biblatex.png (56.37 KiB) Viewed 5439 times


My complete code:
  1. \documentclass[12pt,a4paper]{scrartcl}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[ngerman]{babel}
  4. \usepackage[babel,german=quotes]{csquotes}
  5. \usepackage[
  6. style=authoryear,
  7. citestyle=authoryear,
  8. natbib=true,
  9. backend=biber,
  10. maxcitenames=1,
  11. maxbibnames=99]{biblatex}
  12.  
  13. %Namenssortierung Nachname Vorname
  14. \DeclareNameAlias{sortname}{last-first}
  15.  
  16. %Doppelpunkt nach Jahreszahl
  17. \renewcommand{\postnotedelim}{\addcolon\addspace}
  18.  
  19. %S. vor Seitenangabe entfernen
  20. \DeclareFieldFormat{postnote}{#1}
  21. \DeclareFieldFormat{multipostnote}{#1}
  22. \renewbibmacro*{chapter+pages}{%
  23. \printfield{chapter}%
  24. \setunit{\bibpagespunct}%
  25. \printfield{pages}%
  26. \newunit}
  27.  
  28. %Slash zwischen Autoren
  29. \newcommand*{\bibmultinamedelim}{\addslash\space}%
  30. \newcommand*{\bibfinalnamedelim}{\addslash\space}%
  31.  
  32. \renewcommand*{\multinamedelim}{/}
  33. \renewcommand*{\finalnamedelim}{/}
  34.  
  35. \AtBeginBibliography{%
  36. \let\multinamedelim\bibmultinamedelim
  37. \let\finalnamedelim\bibfinalnamedelim
  38. }
  39. \renewcommand*{\labelnamepunct}{\addcolon\space}
  40.  
  41. \addbibresource{biblatex-examples.bib} % benötigt referenzen.bib
  42.  
  43. \begin{document}
  44.  
  45.  
  46. \citeauthor*{companion} schrieben \citeyear{companion} ein interessantes Buch
  47. über blablabla.
  48.  
  49. \citeauthor{companion} schrieben \citeyear{companion} ein interessantes Buch
  50. über blablabla.
  51.  
  52. ich will \citet*[223]{companion} zitieren\par
  53. ich will \citet[223]{companion} zitieren\par
  54. ich will \parencite{companion} zitieren
  55.  
  56. ich will \citet*{knuth:ct:a} fanden heraus\par
  57. ich will \citet{knuth:ct:a} zitieren\par
  58. ich will \parencite{knuth:ct:a} fanden heraus\par
  59. ich will \citep[202]{knuth:ct:a}
  60.  
  61. ich will \citet[200]{knuth:ct:b}
  62.  
  63. \citep*{companion}\par
  64. \parencite*{companion}\par
  65. \citep*[202]{companion}
  66.  
  67. \citep*{knuth:ct:a}\par
  68. \parencite*{knuth:ct:a}\par
  69. \citep*[202]{knuth:ct:a}
  70.  
  71. \citep*{knuth:ct:b}\par
  72. \parencite*{knuth:ct:b}\par
  73. \citep*[202]{knuth:ct:b}
  74.  
  75.  
  76. \printbibliography
  77.  
  78. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sat Nov 07, 2015 3:58 pm

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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Nov 07, 2015 4:04 pm

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

Postby Lena91 » Sat Nov 07, 2015 9:21 pm

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

Postby Lena91 » Sun Nov 08, 2015 8:14 pm

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


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 1 guest