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

25 Jui '19, 17:31

samcarter's gravatar image

samcarter
8.6k2817

Pourquoi ne pas créer de nouveaux mots clés? \documentclass{article} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @book{knuth, author = {Knuth, Donald E.}, title = {The {\TeX} book}, date = 1984, maintitle = {Computers \& Typesetting}, volume = {A}, publisher = {Addison-Wesley}, location = {Reading, Mass.}, langid = {english}, langidopts = {variant=american}, sortyear = {1984-1}, sorttitle = {Computers & Typesetting A}, indexsorttitle= {The TeXbook}, indextitle = {\protect\TeX book, The}, shorttitle = {\TeX book}, bibliography = {bib yes} } @article{einstein, author = {Einstein, A.}, title = {Die Grundlage der allgemeinen Relativitätstheorie}, journal = {Annalen der Physik}, volume = {354}, number = {7}, doi = {10.1002/andp.19163540702}, pages = {769--822}, year = {1916}, index= {idx yes} } \end{filecontents*} \addbibresource{\jobname.bib} \DeclareSourcemap{ % % declaring new field \maps[datatype=bibtex,overwrite=true]{ \map{ \step[fieldsource=index, final=true] \step[fieldset=usera, origfieldval, final=true] } \map{ \step[fieldsource=bibliography, final=true] \step[fieldset=userb, origfieldval, final=true] } } } \renewbibmacro*{finentry}{ \printfield{usera} \printfield{userb} \finentry } \begin{document} \nocite{*} \printbibliography \end{document}
cliquez ici pour masquer/afficher la révision 1

25 Jui '19, 17:30

samcarter's gravatar image

samcarter
8.6k2817

\documentclass{article} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @book{knuth, author = {Knuth, Donald E.}, title = {The {\TeX} book}, date = 1984, maintitle = {Computers \& Typesetting}, volume = {A}, publisher = {Addison-Wesley}, location = {Reading, Mass.}, langid = {english}, langidopts = {variant=american}, sortyear = {1984-1}, sorttitle = {Computers & Typesetting A}, indexsorttitle= {The TeXbook}, indextitle = {\protect\TeX book, The}, shorttitle = {\TeX book}, bibliography = {bib yes} } @article{einstein, author = {Einstein, A.}, title = {Die Grundlage der allgemeinen Relativitätstheorie}, journal = {Annalen der Physik}, volume = {354}, number = {7}, doi = {10.1002/andp.19163540702}, pages = {769--822}, year = {1916}, index= {idx yes} } \end{filecontents*} \addbibresource{\jobname.bib} \DeclareSourcemap{ % % declaring new field \maps[datatype=bibtex,overwrite=true]{ \map{ \step[fieldsource=index, final=true] \step[fieldset=usera, origfieldval, final=true] } \map{ \step[fieldsource=bibliography, final=true] \step[fieldset=userb, origfieldval, final=true] } } } \renewbibmacro*{finentry}{ \printfield{usera} \printfield{userb} \finentry } \begin{document} \nocite{*} \printbibliography \end{document}

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

×