BibTeX, biblatex and biber ⇒ \citet with natbib not working
\citet with natbib not working
...
\usepackage[sort,nonamebreak, sectionbib]{natbib}
...
\usepackage[dvips,dvipdfm,colorlinks=true,urlcolor=blue,citecolor=red,linkcolor=red,bookmarks=true]{hyperref}
...
but when I use \citet{} or \citep{}, I don't get the author name and date referencing. Anyone have any ideas why?
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\citet with natbib not working
your problem is not reproducible with this fragment of code.
This following example works well:
Code: Select all
\documentclass[ngerman,parskip=half]{scrreprt}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[sort,nonamebreak, sectionbib,square]{natbib}
\usepackage[dvips,dvipdfm,colorlinks=true,urlcolor=blue,citecolor=red,linkcolor=red,bookmarks=true]{hyperref}
\usepackage{filecontents}
\begin{filecontents}{book.bib}
@book{test,
author={Jon Doe},
title={Who is John Doe},
year={2009},
}
\end{filecontents}
\begin{document}
\cite{test}
\citep{test}
\citet{test}
\bibliographystyle{natdin}
\bibliography{book}
\end{document}
Marco

\citet with natbib not working

Code: Select all
\documentclass[10pt]{article}
\usepackage[sort&compress,square,comma,authoryear]{natbib}
\begin{document}
\cite{schnur02,scholze02,fastopt08,rotty87}
\cite{schnur02}
\cite{scholze02}
\citep{fastopt08}
\citet{rotty87}
\citet{tarantola87}
\citep{tarantola87}
\bibliographystyle{plain}
\bibliography{backmatter/reference_list}
\end{document}
Re: \citet with natbib not working
instead of
\bibliographystyle{plain}
I needed
\bibliographystyle{plainnat}
doh. how silly..
Re: \citet with natbib not working
I generate my bib file using BibDesk and the "cite" function works fine in TexShop.
I have similar problem to use "citep" and "citet" functions in TexShop.
If you know how to deal with this problem, please give me a hand.
Thanks.
The following is my code:
\documentclass[10pt]{article}
\usepackage{url}
\usepackage{times}
\usepackage[sort&compress,square,comma,authoryear]{natbib}
\begin{document}
:
:
\citep{Chapman:1993jx,Chapin:1995df}, ....\citet{Janzen:1998fc}...
:
:
\bibliographystyle{natbib}
\bibliography{sample}
\end{document}