Re: making \citep the default natbib citation style?

2010-03-16 Thread Justin Wood
I've done some more reading of natbib itself (the included pdf) -- it's
pretty clear that if natbib is set to *author-year* style, then the standard
\cite command behaves as \citet; if set to *numerical *style, \cite behaves
as \citep.

You can see this in LyX when using natbib under Document -> Settings ->
Bibliography: Citation style. If Natbib is chosen and set to author-year,
the LyX source code shows citations as \citet; if you change that setting to
numerical, the source code updates them to \citep. So I take this to mean
that LyX is using \cite, err, 'internally', and the source output reflects
the implementation in the natbib package.

Is it possible to control this in LyX somehow; to tell LyX to issue \citep
explicitly and never use \cite? Can a natbib .cfg or .sty file change the
behaviour? (Maybe this is all really a question for the natbib community?) I
feel like I must be missing something obvious.


Re: making \citep the default natbib citation style?

2010-03-14 Thread Justin Wood
Julien Rioux  writes:
> 
> For me (LyX 1.6.5 WinXp) LyX remembers the last citation format
> used and selects this one.

Yes you're quite right, it does for me too (on OS X and Win7).
But sometimes it doesn't behave consistently in my main document; maybe
there's something in there messing things up.

> Could it be an issue with this tool, then? Nevertheless,
> I suppose a default could be implemented.

LyZ issues the 'insert-citation' command via the LyX pipe. As best
I can tell, there is no way with this to instruct LyX to use a 
specific cite format or command. Is there?

Thanks for your help.






Re: making \citep the default natbib citation style?

2010-03-12 Thread Julien Rioux
Justin Wood  writes:
> However, when LyX initially inserts a citation from a *new* reference not
> previously used, it defaults to the *textual *citation format: natbib's *
> \citet* command. This is not what I need. I can of course change any such
> citation to parenthetical (\citep), or any of the other options, quite
> simply with the GUI, but I would dearly love to be able to specify which
> citation format is the *default*.

For me (LyX 1.6.5 WinXp) LyX remembers the last citation format used and selects
this one.

> PS - for the most part my citations are inserted via lyxpipe using this
> tasty little plugin for Zotero :
> LyZ

Could it be an issue with this tool, then? Nevertheless, I suppose a default
could be implemented.

--
Julien




making \citep the default natbib citation style?

2010-03-11 Thread Justin Wood
Hi all. The usual apologies for asking a dumb and/or tired question, but I
have hunted through the list archive and online in general to no avail.

[System: LyX 1.6.5 on Mac OS X 10.6.2]

I'm using natbib citation style, set to *author-year*, with a 3rd party
style file for Chicago
format.
This works perfectly. As is normal in Chicago -- unless mentioning the
author name(s) explicitly in the text -- I use the *parenthetical *citation
format of *(Jones, 2001)*, which is readily provided by natbib's
*\citep*command. So far so good.

However, when LyX initially inserts a citation from a *new* reference not
previously used, it defaults to the *textual *citation format: natbib's *
\citet* command. This is not what I need. I can of course change any such
citation to parenthetical (\citep), or any of the other options, quite
simply with the GUI, but I would dearly love to be able to specify which
citation format is the *default*. As a workaround I can redefine the \citet
command using something like: \renewcommand{\citet}{\citep}. That nicely
changes the citation style to parenthetical in any output file.

But there are two problems with that kludge. One, I can't then use \citet if
I genuinely want to in the same document for some reason. And two, it still
displays as textual in LyX itself -- which may or may not be a real issue,
depending on how pedantic you are (and I am).

So is there any way in the natbib configuration, in LyX itself, or with some
other LaTeX preamble, that I can change the default insert-citation to be
\citep?

Thanks! And big respect to the general LyX community for this excellent
tool.

PS - for the most part my citations are inserted via lyxpipe using this
tasty little plugin for Zotero :
LyZ
.
~:justin.wood :~ ≤ 350ppm
CO2-eq