Ok I get it, the layout script was probably meant for 2.1, with witch it
works! Problem solved.
Thanks!
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