On 19/02/2013 9:11 AM, Richard Heck wrote:
On 02/18/2013 12:43 PM, stefano franchi wrote:
On Mon, Feb 18, 2013 at 10:02 AM, Richard Heck <rgh...@lyx.org
<mailto:rgh...@lyx.org>> wrote:
On 02/18/2013 10:28 AM, stefano franchi wrote:
Currently, support of biblatex's citation commands is very
minimal. In particular, there is no direct support for
\citetitle, \autocite, and so on. The former, in particular, I
use all the times, andit would be really convenient to avoid
entering it as ERT (not to speak of the convenience to have it
appear in the list of citations, the better readability of the
document, and so on).
Unless these macros have special handling, it should be possible to
define them in a biblatex.module based on, say, jurabib.module or
natbib.module (the authoryear part of it).
I'd like to take a stab at this, but I never touched Lyx code,
and would appreciate if someone could direct me to the right
place. Or to the right neighborhood. In fact, I'm not even
sure touching the code is necessary. Perhaps, modifying the
biblatex's module would be enough? It does not seem likely
(biblatex.module simply defers to natbib), but I maybe wrong.
At least for the macros part, that stuff is in modules now, so no
compilation necessary.
It's possible that the only other thing we really need is some
indication in the citation module of how the database info is to
be output. I'll be happy to help with that if it looks worth doing.
The document settings now have a entry for bibliography style. This
stuff needs to be output to the preamble for biblatex, right? Something
like that should be added for the .bib file, too. So there is still some
code to write on this front.
I took a look at the 2.1 natbib.module and it seems it should be
possible to model a biblatex.module from it. However, there may be
some difficulties with all the various styles that biblatex supports.
We'll probably need separate modules for each of the various styles.
Modularization makes this easy to do, whereas the old way this would
mean hard-coding style after style after style.
At any rate, I will look into it a bit further. I see that the
customization manual has some info on the format of the CiteFormat
block. I don't not see any info on the CiteEngine block, though. I
suppose it's a new 2.1 feature related to the modularization of the
bibtex machinery you mentioned?
Yes. Probably we should get on someone to write the docs.
rh
Indeed!
--
Julien