Apart from the fact I cannot read the document with the previous version anymore (this is addressed in another message), version 2.1 beta 2 seems to work fine here, on Windows XP SP3 FR 32-bit. The citation system works as good as I could wish it in my dreams. However there's now a '#' before the citation key, is it possible to remove it? I am used to [key] which is just fine enough. I might have Foot: now in front of it, which I guess I could tune, also.

pierre-philipp

Quoting Jürgen Spitzmüller 22/12/2013 16:33,
Jürgen Spitzmüller wrote:
How to tweak LyX to always produce \footcite instead of \cite?
\let\cite\footcite

With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use "standard" citation (not natbib), paste the following to Document > Settings > Local Format (hit "Validate" before applying):

CiteEngine default
        cite[]
        footcite[]
        nocite
End

CiteFormat default
        # translatable bits
        _notcited not cited
        _addtobib Add to bibliography only.
        _footcite Foot:

        # macros
        !open [
        !sep ,
        !close ]

        !startlink {!<a href='#LyXCite-%clean:key%'>!}
        !endlink {!</a>!}

        !cite %!startlink%{%label%[[%label%]]
[[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%

        !nextcite {%next%[[%!sep% %!cite%]]}
        !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
        !nextkey {%next%[[%!sep% %key%%!nextkey%]]}

        !textafter {%textafter%[[, %textafter%]]}

        # cite styles
        cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close%
footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close%
        nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
End



Regards,
Jürgen

Reply via email to