\citep still doesn't work

2,332 views
Skip to first unread message

Vanessa

unread,
Jul 8, 2010, 6:36:01 PM7/8/10
to LaTeX Users Group
Greetings,

I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
post about \citep not working for someone, and I have a similar
problem.

-I have compiled LaTex + BibTex + LaTex + LaTex.
-All .bst files are with the .tex file.
-Both \citep and \citet commands result in (?) or (??), but the
bibliography prints. Everything compiled fine last week when I last
worked on the file, but it is acting up today and has me stumped.
-I have received the following BibTex error messages, which I have
interpreted to be minor and OK to ignore:

***************
This is BibTeX, Version 0.99c (TeX Live 2009)
The top-level auxiliary file: CC_060710.aux
The style file: spbasic.bst
Database file #1: CIBA-ClimaticChange.bib
Warning--entry type for "IPCC:2000kl" isn't style-file defined
--line 188 of file CIBA-ClimaticChange.bib
Warning--entry type for "IPCC:2001oz" isn't style-file defined
--line 228 of file CIBA-ClimaticChange.bib
Warning--empty booktitle in IPCC:2001rw
Warning--empty booktitle in IPCC:2007xr
(There were 4 warnings)

***************

Here are what I believe are the relevant commands in my tex file:

\usepackage{graphicx}
\usepackage{bbding}
\usepackage{natbib}

\begin{document}
... \citep{Moss:2008lh,Schneider:2002fk}

% BibTeX users please use
\bibliographystyle{spbasic} % basic style, author-year citations
\bibliography{CIBA-ClimaticChange} % name your BibTeX data base

\end{document}

Anyone have suggestions to alleviate the problem? The file spbasic.bst
specifically notes:
%% For use with the natbib package (see below). Default is author-year
citations. %%
%% When citations are numbered, please use \usepackage[numbers]
{natbib}. %%

Thanks for your help,
Vanessa

Vanessa

unread,
Jul 8, 2010, 7:33:56 PM7/8/10
to LaTeX Users Group
As an update, I realized that if I tell TeXShop to plow through the
errors (use the command "r"), the file compiles and all (?) and (??)
are filled in. Still a mystery to me why TeXShop pauses in the first
place.

-Vanessa

Peter Flynn

unread,
Jul 9, 2010, 6:40:10 AM7/9/10
to latexus...@googlegroups.com
On Fri, Jul 9, 2010 at 12:33 AM, Vanessa <vschw...@gmail.com> wrote:
As an update, I realized that if I tell TeXShop to plow through the
errors (use the command "r"), the file compiles and all (?) and (??)
are filled in. Still a mystery to me why TeXShop pauses in the first
place.

-Vanessa

On Jul 8, 6:36 pm, Vanessa <vschwei...@gmail.com> wrote:
> Greetings,
>
> I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
> post about \citep not working for someone, and I have a similar
> problem.
>
> -I have compiled LaTex + BibTex + LaTex + LaTex.
> -All .bst files are with the .tex file.
> -Both \citep and \citet commands result in (?) or (??), but the

More to the point, does the bibliographystyle you are using require you to have a support package as well? It sounds as if you are missing the relevant \usepackage which some bibliographystyles require.

///Peter

Paul Johnson

unread,
Jul 10, 2010, 12:59:48 AM7/10/10
to latexus...@googlegroups.com
On Thu, Jul 8, 2010 at 5:36 PM, Vanessa <vschw...@gmail.com> wrote:
> Greetings,
>
> I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
> post about \citep not working for someone, and I have a similar
> problem.
>
> -I have compiled LaTex + BibTex + LaTex + LaTex.

I have a very difficult time understanding why LaTeX newbies choose to
go at LaTeX the hard way. if you are getting started, it is much
easier to start with LyX as the graphical editor interface. It can
create tex files for you, and you can study them, see how they work.
It now has a "view tex source" option where tex syntax pops up on the
screen as you type in the gui interface. They have a very rich
collection of working examples on their wiki and their email list has
always been very helpful for me.

In your case, I have to say there are many moving parts in a
Latex/biblio setup that can fail. I usually use "natbib" in my biblio
documents, and I've seen compiles fail when the natbib edition is out
of date.

Some time ago, I wrote a simple how to about using LyX for
bibliography, maybe it will help you see what has to happen. Here's
the writeup

http://pj.freefaculty.org/latex/biblioexample.pdf

The files that are used to create that are here:

http://pj.freefaculty.org/latex/LyXBibTeXExample.tar.gz

If you installed LyX, you could run that, or export it to pure latex
so you'd have a full working example with biblio.

pj

--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

Peter Flynn

unread,
Jul 10, 2010, 10:14:25 AM7/10/10
to latexus...@googlegroups.com
On Sat, Jul 10, 2010 at 5:59 AM, Paul Johnson <paulj...@gmail.com> wrote:
On Thu, Jul 8, 2010 at 5:36 PM, Vanessa <vschw...@gmail.com> wrote:
> Greetings,
>
> I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
> post about \citep not working for someone, and I have a similar
> problem.
>
> -I have compiled LaTex + BibTex + LaTex + LaTex.

I have a very difficult time understanding why LaTeX newbies choose to
go at LaTeX the hard way.  if you are getting started, it is much
easier to start with LyX as the graphical editor interface.

If all you want to do is produce the document, and you do not want to learn about LaTeX and automation, this is a good way to start.

But if you want to learn about document structuring and formatting, in order to make life easier in future, I'm afraid I have to disagree very strongly.
 
It can create tex files for you, and you can study them, see how they work.

All you can see is how LyX works. There are many things LyX does which are not the same as the way you would do them when writing your own LaTeX.

When you restrict your interaction to a synchronous typographic interface, you sacrifice two things: (a) the opportunity to learn how it works, so that you can do better next time; and (b) the opportunity to do or automate things that simply cannot be done through such an interface.

This is true at many levels: you sacrifice both (a) and (b) when you use Word instead of LaTeX; you sacrifice them when you use a CMS instead of writing HTML; and you sacrifice them when you use LaTeX instead of XML. It's a matter of choice, based on how much time you have to learn new stuff, and how much you actually want or need to learn about documents, instead of just writing them.
 
It now has a "view tex source" option where tex syntax pops up on the
screen as you type in the gui interface.  They have a very rich
collection of working examples on their wiki and their email list has
always been very helpful for me.

Yes, their online resources are excellent.

In your case, I have to say there are many moving parts in a
Latex/biblio setup that can fail.  I usually use "natbib" in my biblio
documents, and I've seen compiles fail when the natbib edition is out
of date.

Valuable advice, but in Vanessa's case we haven't yet heard back about whether the style needed a package as well. There is no \citep or \citet built into LaTeX, so if they cause an error message, it means the package that loads those commands hasn't been used.

///Peter

Vanessa

unread,
Jul 15, 2010, 5:36:26 AM7/15/10
to LaTeX Users Group
Thank you, all, for your feedback.

I started using LaTex due to frustration with Word. The requirements
of my thesis were too much for Word to handle, and it would crash
pretty often. I am now working on a journal submission that provides
me the opportunity to learn LaTex (the author guidelines are very
specific and require following either a LaTex template or a Word
template).

Unfortunately, I am now getting frustrated with LaTex because my
working paper has some fairly sophisticated tables that were easy to
make in Word but are not at all intuitive in LaTex. I should give Lyx
a whirl before I give up and revert to Word (at least for this paper).
I am under some time pressure, which is why I might give up so easily.

-Vanessa

On Jul 10, 10:14 am, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Sat, Jul 10, 2010 at 5:59 AM, Paul Johnson <pauljoh...@gmail.com> wrote:
> > On Thu, Jul 8, 2010 at 5:36 PM, Vanessa <vschwei...@gmail.com> wrote:
> > > Greetings,
>
> > > I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
> > > post about \citep not working for someone, and I have a similar
> > > problem.
>
> > > -I have compiled LaTex + BibTex + LaTex + LaTex.
>
> > I have a very difficult time understanding why LaTeX newbies choose to
> > go at LaTeX the hard way.  if you are getting started, it is much
> > easier to start with LyX as the graphical editor interface.
>
> If all you want to do is produce the document, and you do not want to learn
> about LaTeX and automation, this is a good way to start.
>
> But if you want to learn about document structuring and formatting, in order
> to make life easier in future, I'm afraid I have to disagree very strongly.
>
> > It can create tex files for you, and you can study them, see how they work.
>
> All you can see is how *LyX* works. There are many things LyX does which are

Peter Flynn

unread,
Jul 15, 2010, 8:30:49 AM7/15/10
to latexus...@googlegroups.com
On Thu, Jul 15, 2010 at 10:36 AM, Vanessa <vschw...@gmail.com> wrote:
Thank you, all, for your feedback.

I started using LaTex due to frustration with Word. The requirements
of my thesis were too much for Word to handle, and it would crash
pretty often. I am now working on a journal submission that provides
me the opportunity to learn LaTex (the author guidelines are very
specific and require following either a LaTex template or a Word
template).

Which journal is this for, and do they provide a style package for it?

Unfortunately, I am now getting frustrated with LaTex because my
working paper has some fairly sophisticated tables that were easy to
make in Word but are not at all intuitive in LaTex.

Can you post an example (Word file) so we can see?
 
I should give Lyx
a whirl before I give up and revert to Word (at least for this paper).
I am under some time pressure, which is why I might give up so easily. 

Let's see if we can get the tables working.

///Peter
 

r

unread,
Jul 19, 2010, 4:39:41 AM7/19/10
to LaTeX Users Group


On 8 July, 23:36, Vanessa <vschwei...@gmail.com> wrote:
> Greetings,
>
> I am a new LaTex (TeXShop) and BibTex (BibDesk) user. I found an old
> post about \citep not working for someone, and I have a similar
> problem.
>
> -I have compiled LaTex + BibTex + LaTex + LaTex.
> -All .bst files are with the .tex file.
> -Both \citep and \citet commands result in (?) or (??), but the
> bibliography prints. Everything compiled fine last week when I last
> worked on the file, but it is acting up today and has me stumped.
> -I have received the following BibTex error messages, which I have
> interpreted to be minor and OK to ignore:
>
> ***************
> This is BibTeX, Version 0.99c (TeX Live 2009)
> The top-level auxiliary file: CC_060710.aux
> The style file: spbasic.bst
> Database file #1: CIBA-ClimaticChange.bib
> Warning--entry type for "IPCC:2000kl" isn't style-file defined
> --line 188 of file CIBA-ClimaticChange.bib
> Warning--entry type for "IPCC:2001oz" isn't style-file defined
> --line 228 of file CIBA-ClimaticChange.bib

These errors suggest to me that the entries in the bibliography file
are at fault, perhaps a typing error such as forgetting to add a comma
(,) at the end of a line?

> Warning--empty booktitle in IPCC:2001rw
> Warning--empty booktitle in IPCC:2007xr
> (There were 4 warnings)
>
> ***************
>
> Here are what I believe are the relevant commands in my tex file:
>
> \usepackage{graphicx}
> \usepackage{bbding}
> \usepackage{natbib}
>
I used the package command:
\usepackage[round]{natbib}

That might help?

r

unread,
Jul 19, 2010, 4:41:19 AM7/19/10
to LaTeX Users Group


On 15 July, 10:36, Vanessa <vschwei...@gmail.com> wrote:
> Thank you, all, for your feedback.
>
> I started using LaTex due to frustration with Word. The requirements
> of my thesis were too much for Word to handle, and it would crash
> pretty often. I am now working on a journal submission that provides
> me the opportunity to learn LaTex (the author guidelines are very
> specific and require following either a LaTex template or a Word
> template).
>
> Unfortunately, I am now getting frustrated with LaTex because my
> working paper has some fairly sophisticated tables that were easy to

The package 'longtable' might help.

David L

unread,
Aug 20, 2010, 11:01:06 AM8/20/10
to LaTeX Users Group
Peter,

This worked; I had the same problem and found that adding
\usepackage{natbib}
to my preamble solved the problem

Thanks,

David

On Jul 9, 5:40 am, Peter Flynn <anglebrac...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages