]> git.lyx.org Git - lyx.git/blobdiff - lib/citeengines/basic.citeengine
Adapt citengine to current layout format.
[lyx.git] / lib / citeengines / basic.citeengine
index ae4a6039861c77aa7e7c0c214702e196cbd4d38a..5bccaf767e56bd2d775759d43d4354d7f0bed941 100644 (file)
@@ -3,11 +3,10 @@
 #   The basic citation capabilities provided by BibTeX.
 #   Mainly simple numeric styles primarily suitable for science and maths.
 # DescriptionEnd
-# Excludes: jurabib | natbib | biblatex | biblatex-natbib
 
 # Author: Julien Rioux <jrioux@lyx.org>
 
-Format 63
+Format 64
 
 # The framework (biblatex|bibtex)
 CiteFramework bibtex
@@ -27,6 +26,7 @@ DefaultBiblio  plain
 CiteEngine default
        cite[]
        nocite
+       keyonly
 End
 
 
@@ -34,6 +34,9 @@ End
 # CITE FORMAT
 #
 
+# Input standard format definitions for the bibliography
+Input stdciteformats.inc
+
 # The following defines how the commands are represented in the GUI
 # (inset button and citation dialog) as well as in XHTML, docbook and
 # plain text output.
@@ -47,6 +50,8 @@ CiteFormat default
        #
        _notcited not cited
        _addtobib Add to bibliography only.
+       _keyonly Key only.
+       _key Key
 
        #
        # 2. Macros re-used in the style definitions
@@ -54,6 +59,10 @@ CiteFormat default
        !open [
        !sep ,
        !close ]
+       # Modify scheme of the first author in the bibliography
+       !firstnameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
+       # Modify scheme of other authors in the bibliography
+       !othernameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
 
        # A link that lets us jump to the bibliography entry in LyXHTML
        # %clean:key% will be substituted by the cite key to give a unique id
@@ -81,4 +90,6 @@ CiteFormat default
        cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
        # "Add to bibliography only." (dialog) / "[ID] (not cited)" (button)
        nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
+       # Output only the key
+       keyonly {%dialog%[[%_keyonly%]][[%_key%: %key%%!nextkey%]]}
 End