3

My reference list is showed in 2 lists based on the entrytype of the bib reference.

I want the lists sorted numerically. Also, I want the citations in a sorted and compressed way. The problem is that I can get only one of them.

When I use biblatex in this way:

\usepackage[style=numeric,citestyle=numeric-comp,sorting=ynt,defernumbers=true,backend=biber]{biblatex}

the citations in the text and the reference lists stay:

With defernumbers=true, but mixed order in citations When I don't use defernumbers=true it gets:

\usepackage[style=numeric,citestyle=numeric-comp,sorting=ynt,backend=biber]{biblatex}

enter image description here I have googled a buch of similar issues, but none of them has solved this problem.

If it is a bug in biblatex, I see the only way is citing the references in a manually sorted way, since it looks that the references are being showed in a citation order when I use defernumbers=true.

Is there some charitable soul that could help me in avoiding a lot of time in manually solving this?

MWE with defernumbers=true:

\documentclass{article}
\usepackage[style=numeric,citestyle=numeric-comp,sorting=ynt,defernumbers=true,backend=biber]{biblatex}
\usepackage{filecontents}

\begin{filecontents}{jobname.bib}
    @inproceedings{Kim2010,
    author = {Kim, Duk Sang and Chuc, Nguyen Huu},
    title = {A flexible fingertip tactile sensor},
    year = {2010}
    }
    @article{Yang2010,
    author = {Yang, Y.-J. and Cheng, M.-Y.},
    title = {A 32 x 32 temperature and tactile sensing array using PI-copper films},
    year = {2010}
    }
    @article{Okuyama2012,
    title = {Miniature ultrasonic and tactile sensors for dexterous robot},
    author = {Okuyama, Masanori and Yamashita, Kaoru},
    year = {2012}
    }
    @inproceedings{Bimbo2012,
    author = {J. Bimbo and S. Rodriguez-Jimenez},
    title = {Object pose estimation and tracking by fusing visual and tactile information},
    year = {2012}
    }
\end{filecontents}

\addbibresource{jobname.bib}

\begin{document}

    Citations: \cite{Kim2010,Bimbo2012,Yang2010,Okuyama2012}
    \printbibliography[title={Article}, type=article]
    \printbibliography[title={Inproceedings}, type=inproceedings]

\end{document}
  • Welcome to TeX.SX! Nice example! – egreg May 20 '16 at 21:24
3

You need to tell biber how to sort the entries, see biblatex - Sort cites via number (split bibliography)

\documentclass{article}
\usepackage[style=numeric,citestyle=numeric-comp,sorting=ynt,defernumbers=true,backend=biber]{biblatex}

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map{
     \pertype{article}
     \step[fieldset=presort, fieldvalue = {A}]
    }
    \map{
      \pertype{inproceedings}
      \step[fieldset=presort, fieldvalue = {B}]
    }
  }
}

\usepackage{filecontents}

\begin{filecontents}{jobname.bib}
    @inproceedings{Kim2010,
    author = {Kim, Duk Sang and Chuc, Nguyen Huu},
    title = {A flexible fingertip tactile sensor},
    year = {2010}
    }
    @article{Yang2010,
    author = {Yang, Y.-J. and Cheng, M.-Y.},
    title = {A 32 x 32 temperature and tactile sensing array using PI-copper films},
    year = {2010}
    }
    @article{Okuyama2012,
    title = {Miniature ultrasonic and tactile sensors for dexterous robot},
    author = {Okuyama, Masanori and Yamashita, Kaoru},
    year = {2012}
    }
    @inproceedings{Bimbo2012,
    author = {J. Bimbo and S. Rodriguez-Jimenez},
    title = {Object pose estimation and tracking by fusing visual and tactile information},
    year = {2012}
    }
\end{filecontents}

\addbibresource{jobname.bib}

\begin{document}

Citations: \cite{Kim2010,Bimbo2012,Yang2010,Okuyama2012}
\printbibliography[title={Article}, type=article]
\printbibliography[title={Inproceedings}, type=inproceedings]

\end{document}

enter image description here

0

Great, Ulrike. Thanks for your time in answering it.

Based on your answer to my MWE, I couldn't solve a bit more specific problem. If you could help me in this more specific one...

I have 5 bibliographic lists:

  1. @Articles;
  2. @Inproceedings;
  3. @Books, @Inbooks and their variants;
  4. References with field "keyword = {review}";
  5. References with field "keyword = {other}".

They are being printed in the following order:

  \printbibliography[title={@Article}, type=article, notkeyword=review]
  \printbibliography[title={@Inproceedings}, type=inproceedings, notkeyword=review]
  \printbibliography[title={@Book, @Inbook and their variants}, nottype=article, nottype=collection, nottype=mvcollection, nottype=incollection, nottype=suppcollection, nottype=manual, nottype=misc, nottype=online, nottype=patent, nottype=periodical, nottype=suppperiodical, nottype=proceedings, nottype=mvproceedings, nottype=inproceedings, nottype=reference, nottype=mvreference, nottype=inreference, nottype=report, nottype=set, nottype=thesis, nottype=unpublished, nottype=xdata, notkeyword=review, notkeyword=other]
  \printbibliography[title={Secondary research (keywords=\{review\})}, keyword=review]
  \printbibliography[title={Other references (keywords=\{other\})}, keyword=other]

How am I supposed to get sorted citations in \DeclareSourcemap, since there are references with the field keywords={review} or keywords={other} that have the entrytype @article/@inproceedings/@book ?

The problem can be seen in: enter image description here

The MWE to this specific problem is:

\documentclass{article}
\usepackage[style=numeric,citestyle=numeric-comp,sorting=ynt,defernumbers=true,backend=biber]{biblatex}
\usepackage[utf8]{inputenc}
\usepackage{filecontents}

\begin{filecontents}{jobname.bib}
    @inproceedings{Kim2010,
    author = {Kim, Duk Sang and Chuc, Nguyen Huu},
    title = {A flexible fingertip tactile sensor},
    year = {2010}
    }
    @inbook{Gorges2010,
    author = {Gorges, Nicolas and Fritz, Peter},
    chapter = {Haptic Object Exploration Using Attention Cubes},
    title = {KI 2010: Advances in Artificial Intelligence: 33rd Annual German Conference on AI, Karlsruhe, Germany, September 21-24, 2010. Proceedings},
    year = {2010}
    }
    @article{Yang2010,
    author = {Yang, Y.-J. and Cheng, M.-Y.},
    title = {A 32 x 32 temperature and tactile sensing array using PI-copper films},
    year = {2010}
    }
    @article{Okuyama2012,
    title = {Miniature ultrasonic and tactile sensors for dexterous robot},
    author = {Okuyama, Masanori and Yamashita, Kaoru},
    year = {2012}
    }
    @book{Oliva2013,
    author = {Oliva, Jan and Volf, Jaromír},
    booktitle = {Conference Proceeding - 5th International Conference, TAE 2013: Trends in Agricultural Engineering 2013},
    title = {Tactile sensor indicated gripping force and slipping},
    year = {2013}
    }
    @inproceedings{Bimbo2012,
    author = {J. Bimbo and S. Rodriguez-Jimenez},
    title = {Object pose estimation and tracking by fusing visual and tactile information},
    year = {2012}
    }
    @article{Yousef2011,
    keywords = {review},
    author = {Hanna Yousef and Mehdi Boukallel and Kaspar Althoefer},
    title = {Tactile sensing for dexterous in-hand manipulation in robotics-A review},
    year = {2011}
    }
    @article{Argall2010,
    keywords = {review},
    title = {A survey of Tactile Human–Robot Interactions},
    year = {2010},
    author = {Brenna D. Argall and Aude G. Billard}
    }
    @book{gough2012introduction,
    keywords = {other},
    title = {An introduction to systematic reviews},
    author = {Gough, David and Oliver, Sandy and Thomas, James},
    year = {2012}
    }
    @book{boland2013doing,
    keywords = {other},
    title = {Doing a systematic review: a student's guide},
    author = {Boland, Angela and Cherry, M Gemma and Dickson, Rumona},
    year = {2013}
    }
\end{filecontents}

\addbibresource{jobname.bib}

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map{
      \pertype{article}
      \step[fieldset=presort, fieldvalue = {A}]
    }
    \map{ 
      \pertype{inproceedings}
      \step[fieldset=presort, fieldvalue = {B}]
    }
    \map{
      \pertype{inbook}
      \pertype{book}
      \step[fieldset=presort, fieldvalue = {C}]
    }
    %%%%%%%%%%%%%%%%%What else?
  }
}

\begin{document}

  Citations: \cite{Kim2010,Yousef2011,boland2013doing,Bimbo2012,Gorges2010,Argall2010,Yang2010,Okuyama2012,Oliva2013,gough2012introduction}
  \printbibliography[title={@Article}, type=article, notkeyword=review]
  \printbibliography[title={@Inproceedings}, type=inproceedings, notkeyword=review]
  \printbibliography[title={@Book, @Inbook and their variants}, nottype=article, nottype=collection, nottype=mvcollection, nottype=incollection, nottype=suppcollection, nottype=manual, nottype=misc, nottype=online, nottype=patent, nottype=periodical, nottype=suppperiodical, nottype=proceedings, nottype=mvproceedings, nottype=inproceedings, nottype=reference, nottype=mvreference, nottype=inreference, nottype=report, nottype=set, nottype=thesis, nottype=unpublished, nottype=xdata, notkeyword=review, notkeyword=other]
  \printbibliography[title={Secondary research (keywords=\{review\})}, keyword=review]
  \printbibliography[title={Other references (keywords=\{other\})}, keyword=other]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.