## #6 Natbib support

open
None
7
2009-02-20
2007-11-23
Anonymous
No

I really like the .bib parsing function, however I always use natbib and commands like \citep or \citet are not supported by the plugin.

I tried adding to definition.xml something like:

<cmd name="citep">
<arg label="Key" />
</cmd>

but evidently it's not enough.
I hope you can give me some more instruction and/or add this function in the future.

thanks and keep up with the good work!
fipm

## Discussion

• assigned_to: nobody --> m_zeising

• Logged In: YES
user_id=1016811
Originator: NO

Hi,

I'm working on the support for placeholders that can be used like

<cmd name="cite">
<arg label="Key">
<placeholder key="BibItems">
</arg>
</cmd>

You could then just copy the <placeholder> tag with the appropriate key to another command like "citep".

But this is more complicated than it seems and I'm afraid it will not be in the next release... but thanks for pointing this out!

Michael

• Logged In: NO

I'd like to add the wish to support the optional page (or whatever) -argument of \cite.

When I wan't to reference a certain page in a book (e.g. \cite[42]{Hitchhiker}), I don't get no help from the Plugin. Maybe you can include this into your plans?

• Hi Michael,

Is there any update on this functionality? I use Natbib heavily and it's a real pain to have to use \cite{} in the plugin, then go back and amend it to \citep or \citet.

Thanks for all your good work so far!

Mark

• Hi,

I'll add this as soon as possible. I don't have much time at the moment. Basically, you just have to add the commands to 'latex.xml' and reference the 'Bibitems' placeholder as its done for the 'cite' command (see http://gedit-latex.svn.sourceforge.net/viewvc/gedit-latex/GeditLaTeXPlugin/trunk/latex.xml?revision=323&view=markup\).

For the optional argument of 'cite' (page etc.) you just have to uncomment the according part in 'latex.xml'. It's commented out because I don't really use it...

Michael

• priority: 5 --> 7