BibTeX, biblatex and biberDifferent Citation Styles

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

Different Citation Styles

Post by Buchling »

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:

Code: Select all

\begin{filecontents}{men.bib}
@ARTICLE{Lewis2009,
  author = {Dustin A. Lewis},
  title = {Unrecognized Victims: Sexual Violence Against Men in Conflict Settings
	Under International Law},
  journal = {Wisconsin International Law Journal},
  year = {2009},
  volume = {27},
  pages = {1--49},
  keywords = {book},
  shorttitle = {2009},
  number = {1}
}

@BOOK{ICRC2008,
  title = {How is the Term \enquote{Armed Conflict} Defined in International
	Humanitarian Law? Opinion Paper},
  author = {{International Committee of the Red Cross}},
  keywords = {book},
  shorttitle = {2008},
  shortauthor = {ICRC},
  date = {2008-03-17},
  url = {http://www.icrc.org/eng/assets/files/other/opinion-paper-armed-conflict.pdf},
  urldate = {2013-02-05}
}

@MISC{DisabilityConvention,
  title = {Convention on the Rights of Persons with Disabilities},
  keywords = {treaty},
  howpublished = {adopted and opened for signature, ratification and accession 13 December
	2006, entered into force 3 May 2008},
  note = {2515 UNTS 3},
  addendum = {UN Doc. A/Res/61/106},
  year = {2008},
  shorttitle = {Disability Convention}
}

@ONLINE{NGOsearch,
  title = {Non-governmental Organizations Search},
  url = {http://www.google.com/cse/home?cx=012681683249965267634%3Aq4g16p05-ao},
  urldate = {2013-01-30},
  keywords = {online}
}

\end{filecontents}

\documentclass[a4paper,12pt,bibtotoc,british]{scrartcl}
\usepackage[british]{babel}
\usepackage[utf8]{inputenc} %Zeichencodierung
\usepackage[style=english]{csquotes} % ermöglicht Befehl \enquote{} für Zitate
\usepackage[T1]{fontenc}
\usepackage{lmodern} % schönere Schrift

\usepackage[backend=biber,citestyle=verbose-ibid,bibstyle=verbose,dashed=false,block=none,dateabbrev=false, alldates=long,pagetracker=true,citetracker=constrict,ibidtracker=constrict]{biblatex}
\nocite{*} %Ausgabe aller Bibliographieeinträge
\bibliography{men}%

\DeclareSortingScheme{ytn}{
 \sort[direction=descending]{\field{year}}
 \sort{\field{title}}
 \sort{\field{name}}
}

\defbibenvironment{year} %Definition einer eigenen Umgebung für Jahr -> Eintrag
  {\list
     {\printfield{year}}
     {\setlength{\labelwidth}{8.5mm}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}}   
  {\endlist}
  {\item}

\defbibheading{book}{\subsection*{Monographs and Articles}}
\defbibheading{treaty}{\subsection*{Treaties and Statutes}}
\defbibheading{declaration}{\subsection*{Declarations, Resolutions and Recommendations}}
\defbibheading{domestic}{\subsection*{Domestic Law}}
\defbibheading{intcase}{\subsection*{International Case Law}}
\defbibheading{natcase}{\subsection*{National Case Law}}
\defbibheading{other}{\subsection*{Other Documents}}
\defbibheading{online}{\subsection*{Internet Sources}}


\begin{document}

\section*{Bibliography}

\printbibliography[sorting=nty,heading=book,keyword=book]
\printbibliography[sorting=ytn,env=year,heading=treaty,keyword=treaty]
\printbibliography[sorting=ytn,env=year,heading=declaration,keyword=declaration]
\printbibliography[sorting=ytn,env=year,heading=domestic,keyword=domestic]
\printbibliography[sorting=ytn,env=year,heading=intcase,keyword=intcase]
\printbibliography[sorting=ytn,env=year,heading=natcase,keyword=natcase]
\printbibliography[sorting=nty,heading=other,keyword=other]
\printbibliography[sorting=nty,heading=online,keyword=online]

\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

Recommended reading 2024:

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

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

Post Reply