Allan Rae wrote: > On Fri, 5 Apr 2002, Herbert Voss wrote: > > >>Allan Rae wrote: >> >> >>>>to let the inset know what to do with the label I put all >>>>information in the option part: before, after, label. >>>>for example a line from a lyx file: >>>> >>>>\citet[<\before>also<\end_before><\after>Page >>>>57ff<\end_after><\natbib>Bry and Afflerbach (1968)]{bry-afflerbach} >>>> >>>> >>>Can't you just generate the <natbib> part on the fly as it is read in? >>>You know it is a \citet after all. >>> >> >>why is it a \citet? what about the others? >> > > Maybe I'm missing something but aren't \citep, \citealt etc all saved > to the lyx file as: > \citep[blah]{key} > > and so on? Then you have all the info you need to recreate the natbib > string you want to save into the .lyx file.
there are 7 different commands, for example one: the lyx-format: \begin_inset LatexCommand \citealp[<\before>see<\end_before><\after>page 1ff<\end_after><\natbib>Wright, 1978; Wright, 1963; Wood, 1961]{wright-78-book,wright-63,wood-61} \end_inset the tex-format: \citealp[see][page 1ff]{wright-78-book,wright-63,wood-61} > I don't have a problem with the <before> and <after> sections only the > part you labelled <natbib>. I have a problem with saving data that is > easily regeneratable. JMarc may have concerns about the <before> and > <after> handling but I don't. > > As I see it: > We know natbib support is turned on/off. > We know what \cite format the user wants. > We know the key. > We know the bibtex file to search. > Therefore, we can reconstruct the label string just the same way it > was generated originally. We don't need to save the part you > labelled <natbib>. this is a kind of overhead! for three words I start a search in a database ... and how do I know in the inset what bibtex-file I use? Herbert -- http://www.lyx.org/help/