LaTeX forum ⇒ BibTeX, biblatex and biberDifferent Citation Styles

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Buchling
Posts: 16
Joined: Thu Jan 24, 2013 2:14 pm

Different Citation Styles

Postby Buchling » Tue Feb 05, 2013 3:34 pm

Hey all,

This might be a bit tricky and as far as I understood the biblatex manual, it's not possible but I thought it wouldn't hurt to ask...

My minimal working example:
  1. \begin{filecontents}{men.bib}
  2. @ARTICLE{Lewis2009,
  3. author = {Dustin A. Lewis},
  4. title = {Unrecognized Victims: Sexual Violence Against Men in Conflict Settings
  5. Under International Law},
  6. journal = {Wisconsin International Law Journal},
  7. year = {2009},
  8. volume = {27},
  9. pages = {1--49},
  10. keywords = {book},
  11. shorttitle = {2009},
  12. number = {1}
  13. }
  14.  
  15. @BOOK{ICRC2008,
  16. title = {How is the Term \enquote{Armed Conflict} Defined in International
  17. Humanitarian Law? Opinion Paper},
  18. author = {{International Committee of the Red Cross}},
  19. keywords = {book},
  20. shorttitle = {2008},
  21. shortauthor = {ICRC},
  22. date = {2008-03-17},
  23. url = {http://www.icrc.org/eng/assets/files/other/opinion-paper-armed-conflict.pdf},
  24. urldate = {2013-02-05}
  25. }
  26.  
  27. @MISC{DisabilityConvention,
  28. title = {Convention on the Rights of Persons with Disabilities},
  29. keywords = {treaty},
  30. howpublished = {adopted and opened for signature, ratification and accession 13 December
  31. 2006, entered into force 3 May 2008},
  32. note = {2515 UNTS 3},
  33. addendum = {UN Doc. A/Res/61/106},
  34. year = {2008},
  35. shorttitle = {Disability Convention}
  36. }
  37.  
  38. @ONLINE{NGOsearch,
  39. title = {Non-governmental Organizations Search},
  40. url = {http://www.google.com/cse/home?cx=012681683249965267634%3Aq4g16p05-ao},
  41. urldate = {2013-01-30},
  42. keywords = {online}
  43. }
  44.  
  45. \end{filecontents}
  46.  
  47. \documentclass[a4paper,12pt,bibtotoc,british]{scrartcl}
  48. \usepackage[british]{babel}
  49. \usepackage[utf8]{inputenc} %Zeichencodierung
  50. \usepackage[style=english]{csquotes} % ermöglicht Befehl \enquote{} für Zitate
  51. \usepackage[T1]{fontenc}
  52. \usepackage{lmodern} % schönere Schrift
  53.  
  54. \usepackage[backend=biber,citestyle=verbose-ibid,bibstyle=verbose,dashed=false,block=none,dateabbrev=false, alldates=long,pagetracker=true,citetracker=constrict,ibidtracker=constrict]{biblatex}
  55. \nocite{*} %Ausgabe aller Bibliographieeinträge
  56. \bibliography{men}%
  57.  
  58. \DeclareSortingScheme{ytn}{
  59. \sort[direction=descending]{\field{year}}
  60. \sort{\field{title}}
  61. \sort{\field{name}}
  62. }
  63.  
  64. \defbibenvironment{year} %Definition einer eigenen Umgebung für Jahr -> Eintrag
  65. {\list
  66. {\printfield{year}}
  67. {\setlength{\labelwidth}{8.5mm}%
  68. \setlength{\leftmargin}{\labelwidth}%
  69. \setlength{\labelsep}{\biblabelsep}%
  70. \addtolength{\leftmargin}{\labelsep}%
  71. \setlength{\itemsep}{\bibitemsep}%
  72. \setlength{\parsep}{\bibparsep}}}
  73. {\endlist}
  74. {\item}
  75.  
  76. \defbibheading{book}{\subsection*{Monographs and Articles}}
  77. \defbibheading{treaty}{\subsection*{Treaties and Statutes}}
  78. \defbibheading{declaration}{\subsection*{Declarations, Resolutions and Recommendations}}
  79. \defbibheading{domestic}{\subsection*{Domestic Law}}
  80. \defbibheading{intcase}{\subsection*{International Case Law}}
  81. \defbibheading{natcase}{\subsection*{National Case Law}}
  82. \defbibheading{other}{\subsection*{Other Documents}}
  83. \defbibheading{online}{\subsection*{Internet Sources}}
  84.  
  85.  
  86. \begin{document}
  87.  
  88. \section*{Bibliography}
  89.  
  90. \printbibliography[sorting=nty,heading=book,keyword=book]
  91. \printbibliography[sorting=ytn,env=year,heading=treaty,keyword=treaty]
  92. \printbibliography[sorting=ytn,env=year,heading=declaration,keyword=declaration]
  93. \printbibliography[sorting=ytn,env=year,heading=domestic,keyword=domestic]
  94. \printbibliography[sorting=ytn,env=year,heading=intcase,keyword=intcase]
  95. \printbibliography[sorting=ytn,env=year,heading=natcase,keyword=natcase]
  96. \printbibliography[sorting=nty,heading=other,keyword=other]
  97. \printbibliography[sorting=nty,heading=online,keyword=online]
  98.  
  99. \end{document}

Now, as you can see, I have different bibliographies, defined by keywords. Is there a possibility to have citestyle=verbose-ibid for most of them but authortitle-ibid or authoryear-ibid for those entries with the keyword book?

Cheers, Buchling

Tags:

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 4 guests