On 04/25/2013 09:34 AM, Csikos Bela wrote:
Jacob Bishop <[email protected]> írta:
1. How can I set options for the natbib package? The stuff that goes >>between
[], like \usepackage[options]{natbib}. As I see lyx adds only
'authoryear' or 'numbers' as options, but how can
I add other options, eg. 'merge'?
Although it seems strange (to me), you actually pass package options in
document -> settings under document class, there is a "class
options" frame,
and in that frame there is a textbox for custom options. That is where
you add them. This is documented in the LyX User's guide (in
help->user's guide) section B.1
Thank you, but I guess this is not correct.
In my opinion the option field you mention is not for adding/changing options
for a package loaded by \usepackage. It is for changing document class load
options, in my case it is article.cls (artlicle.layout in lyx).
Or is there a way I don't know of?
Class options are automatically passed to packages, if the class does
not recognize them.
As I see, currently I have two possibilities in lyx: either load natbib manually in the
preamble by the required options, and then lyx will not add the correct \citet and
\citep commands when citations are inserted. Or I can make lyx load natbib by checking
Document -> Settings -> Bibliography -> Natbib. In this case lyx will insert
correct \citet, \citep etc. citations but I can not customize natib options as needed.
If you want to load natbib manually, then put:
Format 31
Provides natbib 1
into Document>Settings>Local Layout, and proceed as normal. This tells
LyX not to load natbib itself.
Richard