Git Product home page Git Product logo

Comments (5)

amelieled avatar amelieled commented on September 18, 2024

This is a ME:

  • test.tex:
\documentclass[a4paper,french]{book}
%% Préambule
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[backend=biber, style=alphabetic]{biblatex}
\usepackage[french]{babel}
\usepackage{hyperref}
\addbibresource{test.bib}

\DeclareBibliographyCategory{sek} 
\DeclareBibliographyCategory{prim}

\newcommand*{\citeprim}[2][]{\addtocategory{prim}{#2}\cite[#1]{#2}}
\newcommand*{\citesek}[2][]{\addtocategory{sek}{#2}\cite[#1]{#2}}

%% Fin préambule
\begin{document}

\chapter{Prim}

		\citeprim{Demoule2009}
		
		\citeprim{besse2014}

	\printbibliography[category=prim]

	
\chapter{sek}

		\citesek{besse2014}

	\printbibliography[category=sek]

\end{document}
  • test.bib:
@article{besse2014,
Author = {Besse, Marie},
Journal = {La Recherche},
Number = {484},
Pages = {42--46},
Title = {Il y a 5000 ans, une mystérieuse unité européenne},
Date = {2014-02},
Url = {https://www.academia.edu/},
Urldate = {2014-06-09}
}
@book{leroi-gourhan2005,
title = {Dictionnaire de la Préhistoire},
editor = {Leroi-Gourhan, André},
publisher = {Presses universitaires de France},
year = {2005},
address = {Paris},
pagetotal = {1277},
series = {Quadrige}
}
@inbook{gaucher2005,
title = {L'Âge du bronze},
author = {Gaucher, Gilles},
booktitle = {Dictionnaire de la Préhistoire},
editor = {Leroi-Gourhan, André"},
publisher = {Presses universitaires de France},
year = {2005},
address = {Paris},
series = {Quadrige},
pages = {577--578}
}
@proceedings{Demoule2009,
Editor = {Demoule, Jean-Paul and Landes, Christian},
Eventdate = {2008-02-14/2008-02-15},
Eventtitle = {Actes du colloque \enquote{La fabrique de
l'archéologie en France}},
Location = {Paris},
Pagetotal = {301},
Publisher = {La Découverte},
Title = {La fabrique de l'archéologie en France},
Venue = {Paris},
Year = {2009}
}
  • Compilation process:
    1. pdflatex test.tex
    2. biber test
    3. pdflatex test.tex
    4. pdflatex test.tex

from biblatex.

amelieled avatar amelieled commented on September 18, 2024

So there is the same problem in multibiband biblatex.

from biblatex.

zepinglee avatar zepinglee commented on September 18, 2024

You can use the refsection (see § 3.8.4 in documentation) rather than category. In this example, the package option refsection=chapter is most helpful.

\documentclass[a4paper,french]{book}
%% Préambule
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=alphabetic, refsection=chapter]{biblatex}
\addbibresource{test.bib}
\usepackage{hyperref}

%% Fin préambule
\begin{document}

\chapter{Prim}
\cite{Demoule2009}
\cite{besse2014}
\printbibliography

\chapter{sek}
\cite{besse2014}
\printbibliography

\end{document}

from biblatex.

amelieled avatar amelieled commented on September 18, 2024

Hi @zepinglee ,
Thank you for your quick answer!
In fact, I would like something more sophisticated: I would like a subdivided bibliography at the end of each chapter (not just one bibliography by chapter).

\documentclass[a4paper,french]{book}
%% Préambule
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[backend=biber, style=alphabetic]{biblatex}
\usepackage[french]{babel}
\usepackage{hyperref}
\addbibresource{test.bib}

\usepackage{titlesec}

\DeclareBibliographyCategory{sek}
\DeclareBibliographyCategory{sekbis}
\DeclareBibliographyCategory{prim}
\DeclareBibliographyCategory{primbis}

\newcommand*{\citeprim}[2][]{\addtocategory{prim}{#2}\cite[#1]{#2}}
\newcommand*{\citeprimbis}[2][]{\addtocategory{primbis}{#2}\cite[#1]{#2}}
\newcommand*{\citesek}[2][]{\addtocategory{sek}{#2}\cite[#1]{#2}}
\newcommand*{\citesekbis}[2][]{\addtocategory{sekbis}{#2}\cite[#1]{#2}}

%% Fin préambule
\begin{document}

\chapter{Prim}

		\citeprim{Demoule2009}

		\citeprimbis{leroi-gourhan2005}

		\citeprimbis{gaucher2005}

		\citeprim{besse2014}

		\printbibliography[category=prim, title=Toto] 
		\printbibliography[category=primbis, title=Titi]

\chapter{sek}

		\citesekbis{besse2014}
		
		\citesek{gaucher2005}

		\printbibliography[title=Tutu,category=sek]
		\printbibliography[title=Tata, category=sekbis]

\end{document}

from biblatex.

amelieled avatar amelieled commented on September 18, 2024

Hey!
What's up about my issue? The problem is clear for you?

from biblatex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.