On 01/21/2012 09:49 PM, Richard Heck wrote:
On 01/10/2012 09:19 PM, Julien Rioux wrote:
Looking for your comments!
The approach looks very good to me, though the patch is so
huge---unavoidably so, to be sure---that it's hard to have much to say
about the details.
Can you say a bit about the format of the CiteFormat entries? I take it
you are reusing the RefStyle formats a bit here.
Richard
Hi Richard,
I'm not sure what RefStyle formats are. What I'm reusing is the
CiteFormat block since it allows templating and extracting information
from citation entries. It was already part of the layout syntax so I
could avoid rewriting a bunch of stuff.
This CiteFormat infrastructure is used to provide e.g. the little
preview of a citation entry in the Citation dialog, with templates for
"article", "book" and so on... In this new patch I add templates for
"cite" "citep" "citet" "citeyear" etc. and use those in the GUI. To the
CiteFormat block I added an argument, either authoryear or numerical, so
that different templates are used reflecting e.g. the output of the
latex command \citep which depends on the natbib option used.
The nice thing about having everything (well, almost) in the layout file
is that customization is flexible and relatively easy. If you wrote a
module that added a citation style \bibtexkey to actually output the
BibTeX key itself in the PDF, you would also add a template in the
CiteFormat block so that the UI reflects this. We can also add a number
of the yet unsupported jurabib citation styles and so on.
Cheers,
Julien