X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fciteengines%2Fbasic.citeengine;h=ed2b8a69e794b8e3158a8b73ec5f7e53b3faaa90;hb=e6395fd4eefe84a72f6a281c43f50865198e2e2d;hp=e16d466b1dc18abd88aa4140b24eb09b19816c02;hpb=298730215c21735f16e7278a5d5a4469fb0b9859;p=lyx.git diff --git a/lib/citeengines/basic.citeengine b/lib/citeengines/basic.citeengine index e16d466b1d..ed2b8a69e7 100644 --- a/lib/citeengines/basic.citeengine +++ b/lib/citeengines/basic.citeengine @@ -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 # Author: Julien Rioux -Format 62 +Format 93 # 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. @@ -42,10 +45,14 @@ CiteFormat default # # MACROS # - # 1. Translatable bits (need to be marked by _ prefix) + # 1. Translatable bits (need to be marked by _ prefix, if translated to the GUI language, + # or B_, if translated to the buffer language) + # Note that preceding and trailing spaces matter. # _notcited not cited _addtobib Add to bibliography only. + _keyonly Key only. + _key Key # # 2. Macros re-used in the style definitions @@ -53,6 +60,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 @@ -80,4 +91,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