Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 4

22 Sep '15, 09:51

Paul%20Gaborit's gravatar image

Paul Gaborit
2.0k16

Voici une solution (largement inspirée de [cette solution](http://tex.stackexchange.com/a/28555/14500)) qui nécessite un seul fichier `.bib` sans ajout particulier (j'ai repris l'exemple de fichier `.bib` fourni par Denis). Un test est effectué sur chacune des entrées citées pour savoir si on doit l'ajouter dans la categorie `AuthorMe`. Dans la version ci-dessous, le test compare le nom de l'auteur à `Me`. En cas d'homonymie sur le nom, il faudrait tester aussi le prénom. En cas d'homonymie parfaite (nom et prénom), il faut trouver un autre critère déterminant... \begin{refilecontents}{\jobname.bib} @Book{ another1, author = {Author 1, Another}, title = {Another's Book 1}, date = {1900-09-01} } @Book{ another2, author = {Author 2, Another}, title = {Another's Book 2}, date = {1900-09-02} } @Book{ another3, author = {Author 3, Another}, title = {Another's Book 3}, date = {1900-09-03} } % My work @Book{ mybook1, author = {Me, Myself}, title = {My Book 1}, date = {2015-09-01}, } @Book{ mybook2, author = {Me, Myself}, title = {My Book 2}, date = {2015-09-02}, } \end{filecontents} \documentclass[french]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[autostyle]{csquotes} \usepackage[backend=biber,defernumbers=true]{biblatex} \usepackage{babel} % \addbibresource{\jobname.bib} % \newcommand{\MeAuthor}{Me} \DeclareBibliographyCategory{AuthorMe} \DeclareIndexNameFormat{AuthorMe}{ \ifboolexpr{ test {\ifdefstring{\MeAuthor}{#1}}} {\addtocategory{AuthorMe}{\thefield{entrykey}}} {}} \AtDataInput{\indexnames[AuthorMe]{author}} \begin{document} % La bibliographie complète \nocite{*} \printbibliography \newpage % La bibliographie d'un seul auteur (Me) \printbibliography[category=AuthorMe,title=Biblio de Me] \end{document}
cliquez ici pour masquer/afficher la révision 3

22 Sep '15, 09:46

Paul%20Gaborit's gravatar image

Paul Gaborit
2.0k16

Voici une solution qui nécessite un seul fichier `.bib` sans ajout particulier (j'ai repris l'exemple de fichier `.bib` fourni par Denis). \begin{filecontents}{\jobname.bib} Un test est effectué sur chacune des entrées citées pour savoir si on doit l'ajouter dans la categorie `AuthorMe`. Dans la version ci-dessous, le test compare le nom de l'auteur à `Me`. En cas d'homonymie sur le nom, il faudrait tester aussi le prénom. En cas d'homonymie parfaite (nom et prénom), il faut trouver un autre critère déterminant... \begin{refilecontents}{\jobname.bib} @Book{ another1, author = {Author 1, Another}, title = {Another's Book 1}, date = {1900-09-01} } @Book{ another2, author = {Author 2, Another}, title = {Another's Book 2}, date = {1900-09-02} } @Book{ another3, author = {Author 3, Another}, title = {Another's Book 3}, date = {1900-09-03} } % My work @Book{ mybook1, author = {Me, Myself}, title = {My Book 1}, date = {2015-09-01}, } @Book{ mybook2, author = {Me, Myself}, title = {My Book 2}, date = {2015-09-02}, } \end{filecontents} \documentclass[french]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[autostyle]{csquotes} \usepackage[backend=biber,defernumbers=true]{biblatex} \usepackage{babel} % \addbibresource{\jobname.bib} % \newcommand{\MeAuthor}{Me} \DeclareBibliographyCategory{AuthorMe} \DeclareIndexNameFormat{AuthorMe}{ \ifboolexpr{ test {\ifdefstring{\MeAuthor}{#1}}} {\addtocategory{AuthorMe}{\thefield{entrykey}}} {}} \AtDataInput{\indexnames[AuthorMe]{author}} \begin{document} % La bibliographie complète \nocite{*} \printbibliography \newpage % La bibliographie d'un seul auteur (Me) \printbibliography[category=AuthorMe,title=Biblio de Me] \end{document}
cliquez ici pour masquer/afficher la révision 2

22 Sep '15, 02:27

Paul%20Gaborit's gravatar image

Paul Gaborit
2.0k16

cliquez ici pour masquer/afficher la révision 1

22 Sep '15, 02:26

Paul%20Gaborit's gravatar image

Paul Gaborit
2.0k16

C'est votre première visite ici ? Consultez la FAQ !

×