GeneralNatbib doesn't print @misc and et al.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
BlazeAxtrius
Posts: 1
Joined: Tue Nov 24, 2015 5:06 am

Natbib doesn't print @misc and et al.

Post by BlazeAxtrius »

Hello,

I am using natbib and \bibliographystyle{plainnat}. However when I do that it just prints my @book and @incollection. It skpis the @misc.

I what to get:
F. Baader, et al. (2008). `Description Logics'. In F. van Harmelen, V. Lifschitz, & B. Porter (eds.), Handbook of Knowledge Representation, chap. 3, pp. 135{180. Elsevier.
However I instead of et al. I get all 3 names from my .bib file.
Here is my .bib file:

Code: Select all

@incollection{franz,
  author      = {Baader, Franz and Horrocks, Ian and Sattler, Ulrike},
  title       = {'{D}escription {L}ogics'},
  booktitle   = {\emph{F. van Harmelen, V. Lifschitz, \& B. Porter (eds.),} Handbook of Knowledge Representation},
  note        = {chap. 3, pp. 135-180. Elsevier.},
  year      = {2008}
}

@book{pascal,
    author    = {Hitzler, Pascal and Krotzsch, Markus and Rudolph, Sebastian},
    title     = {Foundations of Semantic Web Technologies},
    publisher = {Chapman \& Hall/CRC},
    year      = {2010}
}

@misc{w3c,
    author    = {W3C OWL Working Group (2009)},
    title     = {'{OWL} 2 {W}eb {O}ntology {L}anguage - {D}ocument {O}verview ({W}orking {D}raft 27 {M}arch 2009)'},
    howpublished       = {\url{http://www.w3.org/TR/owl2-overview/}},
    year      = {2009}
}
And here is my .tex file:

Code: Select all

\documentclass[a4paper, 11pt]{report}
\usepackage[top=15mm, bottom=15mm, left=35mm, right=20mm]{geometry}
\usepackage[round]{natbib}
\usepackage{hyperref}

\makeatletter
\def\@biblabel#1{}
\makeatother

\begin{document}

\bibliographystyle{plainnat}
\nocite{*}
\bibliography{cm1201_1515140}

\end{document}
My output should look like the uploaded picture. Instead I get all names, the year is at the end and also if you see that "chap. and pp." are in a "note"

Thank you in advance for the help.
Attachments
This is what I get with my code.
This is what I get with my code.
ref.png (29.56 KiB) Viewed 3086 times
This is what I want.
This is what I want.
reference.png (18.31 KiB) Viewed 3086 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Natbib doesn't print @misc and et al.

Post by Johannes_B »

There are a few thousand bibtex styles around, one might suit you already. I am not going to search through all of those. I scanned the most common ones, but nothing was really close.

Using the very modern but stable package biblatex, you can get your result more easily.

Code: Select all

\begin{filecontents}{\jobname.bib}
	@incollection{franz,
		author      = {Baader, Franz and Horrocks, Ian and Sattler, Ulrike},
		title       = {Description Logics},
		booktitle   = {Handbook of Knowledge Representation},
		editor      = {F. van Harmelen, V. Lifschitz, \& B. Porter},
		note        = {chap. 3, pp. 135-180. Elsevier.},
		date        = {2008}
	}

	@book{pascal,
		author      = {Hitzler, Pascal and Krotzsch, Markus and Rudolph, Sebastian},
		title       = {Foundations of Semantic Web Technologies},
		publisher   = {Chapman \& Hall/CRC},
		date        = {2010}
	}

	@misc{w3c,
		author      = {W3C OWL Working Group},
		title       = {'{OWL} 2 {W}eb {O}ntology {L}anguage - {D}ocument {O}verview ({W}orking {D}raft 27 {M}arch 2009)'},
		url         = {http://www.w3.org/TR/owl2-overview/},
		date        = {2009}
	}
\end{filecontents}
\documentclass[a4paper, 11pt]{report}
\usepackage[top=15mm, bottom=15mm, left=35mm, right=20mm]{geometry}
\usepackage[maxbibnames=1,style=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{hyperref}


\begin{document}

\nocite{*}
\printbibliography
\end{document}
Still a few things to do, nut that can be done by skimming the documentation.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply