Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to split bibliography list into a list with @misc tags, where all url's references are and all other tags for offline reference list. How is it possible to do it? I have snippet of a template that should make it possible:

  \ifdefined\bibheadingonline
  \defbibheading{online}{\section*{\bibheadingonline}}
  \else
  \defbibheading{online}{\section*{Online References}}
  \fi
  \ifdefined\bibheadingoffline
   \defbibheading{offline}{\section*{\bibheadingoffline}}
  \else
   \defbibheading{offline}{\section*{Printed References}}
  \fi

  \defbibfilter{online}{%
    \( \type{online} \)}

  \defbibfilter{offline}{%
    \( \not \type{online} \)}

but it doesn't work for me. I am new in Latex so I am using a template which was defined not by myself.. I will be glad for any help. If needed, I can upload a part of my thesis for test purposes on a server. Btw. I am using MikeTex 2.9 with TeXnicCenter 2.0 Alpha 3

share|improve this question
2  
Welcome at tex.sx! The code snippets seem to require the biblatex package, and it may well be that your template doesn't use biblatex. You need to provide more information about the template you use. Note that you should try to add a minimal working example (MWE), not a part of your thesis. –  lockstep Jan 27 '12 at 21:26
2  
Note that if you are allowed to use (switch to) biblatex for your thesis, the answer to your question is very easy - splitting bibliographies by type is one of the package's standard features. –  lockstep Jan 27 '12 at 21:31
    
could you please provide a sample of sorting the bib through biblatex? It's to complicated to shorten my sample... –  Pamp Jan 27 '12 at 22:32

1 Answer 1

Here's a simple example of splitting a bibliography by type using biblatex. (I used the filecontents package to make the example compilable, but it is not necessary for the solution.)

\documentclass{article}

\usepackage[defernumbers=true]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@book{Knu86,
  author = {Knuth, Donald E.},
  year = {1986},
  title = {The \TeX book},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography[title={Books},type=book]

\printbibliography[title={Other References},nottype=book]

\end{document}

enter image description here

share|improve this answer
2  
+1, but I think the way the Pamp described it, it would be nottype=misc and type=misc (even though it might be better to use @online for online resources). –  doncherry Jan 28 '12 at 9:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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