%%% paramètres de la bibliographie %%%

% forcer l'impression de toutes les références non citées dans le texte
\nocite{*}

% titres des sections de la bibliographie
\defbibheading{france}{\section{Droit français}}
\defbibheading{europe}{\section{Droit européen}}

% titres de types de sources
\defbibheading{lois}{\paragraphe{Lois}}
\defbibheading{rapports}{\paragraphe{Rapports officiels}}
\defbibheading{jurisprudence}{\paragraphe{Jurisprudence}}
\defbibheading{generaux}{\paragraphe{Ouvrages généraux}}
\defbibheading{speciaux}{\paragraphe{Ouvrages speciaux}}
\defbibheading{theses}{\paragraphe{Thèses}}
\defbibheading{speciaux}{\paragraphe{Ouvrages spéciaux}}
\defbibheading{collectifs}{\paragraphe{Ouvrages collectifs}}
\defbibheading{articles}{\paragraphe{Articles}}

% titres pour la jurisprudence
\defbibheading{juris_ccel}{\souspara{Conseil constitutionnel}}
\defbibheading{juris_ce}{\souspara{Conseil d'État}}
\defbibheading{juris_cass}{\souspara{Cour de cassation}}
	\defbibheading{juris_cass_ass}{\alinea{Assemblée plénière}}
	\defbibheading{juris_cass_1civ}{\alinea{1\iere{} chambre civile}}
	\defbibheading{juris_cass_2civ}{\alinea{2\ieme{} chambre civile}}
	\defbibheading{juris_cass_3civ}{\alinea{3\ieme{} chambre civile}}
	\defbibheading{juris_cass_com}{\alinea{Chambre commerciale}}
	\defbibheading{juris_cass_soc}{\alinea{Chambre sociale}}
	\defbibheading{juris_cass_crim}{\alinea{Chambre criminelle}}
\defbibheading{juris_ca}{\souspara{Cours d'appel}}
\defbibheading{juris_tgi}{\souspara{Tribunaux de grande instance}}
\defbibheading{juris_ti}{\souspara{Tribunaux d'instance}}

% filtres de sélection
\defbibfilter{gen}{\(\type{book} \or \type{inbook}\) \and \not \keyword{special}}
\defbibfilter{spec}{\(\type{book} \or \type{inbook}\) \and \keyword{special}}
\defbibfilter{col}{\type{collection} \or \type{proceedings}}
\defbibfilter{art}{\type{incollection} \or \type{inproceedings} \or \type{article}}

%%% impression des différentes bibliographies %%%

\chapitre{Bibliographie}

\printbibheading[heading=france]

\printbibliography[heading=lois,type=legislation,keyword=french]
\printbibliography[heading=rapports,type=report,keyword=french]
\printbibheading[heading=jurisprudence]
	\newrefcontext[sorting=iymd]
	\printbibliography[heading=juris_ccel, type=jurisdiction, keyword=ccel]
	\printbibliography[heading=juris_ce, type=jurisdiction, keyword=ce]
	\printbibheading[heading=juris_cass]
		\printbibliography[heading=juris_cass_ass, type=jurisdiction, keyword=cassass]
		\printbibliography[heading=juris_cass_1civ, type=jurisdiction, keyword=cass1civ]
		\printbibliography[heading=juris_cass_2civ, type=jurisdiction, keyword=cass2civ]
		\printbibliography[heading=juris_cass_3civ, type=jurisdiction, keyword=cass3civ]
		\printbibliography[heading=juris_cass_com, type=jurisdiction, keyword=casscom]
		\printbibliography[heading=juris_cass_soc, type=jurisdiction, keyword=casssoc]
		\printbibliography[heading=juris_cass_crim, type=jurisdiction, keyword=casscrim]
	\printbibliography[heading=juris_ca, type=jurisdiction, keyword=ca]
	\printbibliography[heading=juris_tgi, type=jurisdiction, keyword=tgi]
	\printbibliography[heading=juris_ti, type=jurisdiction, keyword=ti]
	\endrefcontext % sorting=iymd
\printbibliography[heading=generaux, filter=gen, keyword=french]
\printbibliography[heading=theses, type=thesis, keyword=french]
\printbibliography[heading=speciaux, filter=spec, keyword=french]
\printbibliography[heading=collectifs, type=collection, keyword=french]
\printbibliography[heading=articles, filter=art, keyword=french]

\printbibheading[heading=europe]

\printbibliography[heading=lois, type=legislation, keyword=ue]
\printbibliography[heading=rapports, type=report, keyword=ue]
\newrefcontext[sorting=tymdi]
\printbibliography[heading=jurisprudence, type=jurisdiction, keyword=ue]
\endrefcontext % sorting=tymdi
\printbibliography[heading=generaux, filter=gen, keyword=ue]
\printbibliography[heading=speciaux, filter=spec, keyword=ue]
\printbibliography[heading=collectifs, filter=col, keyword=ue]
\printbibliography[heading=theses, type=thesis, keyword=ue]
\printbibliography[heading=articles, filter=art, keyword=ue]

