X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fciteengines%2Fnatbib.citeengine;h=ec3628d227266622c45bf693de33474e1f8f5cfc;hb=d4e30ad88f2967a2e464fd3a54a52feeb25e72f1;hp=f3a0385094e59107457037441db6079c5626ee52;hpb=eba2f0479eb5af6b61d9a82e89daea253d9b6bf6;p=lyx.git diff --git a/lib/citeengines/natbib.citeengine b/lib/citeengines/natbib.citeengine index f3a0385094..ec3628d227 100644 --- a/lib/citeengines/natbib.citeengine +++ b/lib/citeengines/natbib.citeengine @@ -5,11 +5,10 @@ # numerical citations, annotations, capitalization of the `van' part of # author names, shortened and full author lists, and more. # DescriptionEnd -# Excludes: basic | jurabib | biblatex # Author: Julien Rioux -Format 63 +Format 64 Requires natbib @@ -45,6 +44,8 @@ MaxCiteNames 2 # # Note further: # +# * The LyXName "keyonly" has a special meaning: only the citation key, +# without any latex command, is output. # * Capitalization indicates that the command also has a capitalized # form (\Latexcmd vs. \latexcmd). These usually enforce upcasing of # name prefixes (von Goethe => Von Goethe). @@ -76,6 +77,7 @@ CiteEngine authoryear citeyear[] citeyearpar[][] nocite + keyonly End CiteEngine numerical @@ -87,6 +89,7 @@ CiteEngine numerical citeyearpar[][] citeyear nocite + keyonly End @@ -101,6 +104,10 @@ End # There are common definitions (default) and specific definitions for # either cite engine type (which overwrite existing defaults. # + +# Input standard format definitions for the bibliography +Input stdciteformats.inc + CiteFormat default # # MACROS @@ -110,6 +117,8 @@ CiteFormat default # _notcited not cited _addtobib Add to bibliography only. + _keyonly Key only. + _key Key # The following are handled by BiblioInfo _etal et al. _namesep , [[separate author names in citation, except for last name]] @@ -125,11 +134,11 @@ CiteFormat default !endlink {!!} # "Author et al." or "??" - !abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]} + !abbrvciteauthor {%abbrvciteauthor%[[%abbrvciteauthor%]][[??]]} # "Author, ..." or "??" - !fullauthor {%fullauthor%[[%fullauthor%]][[??]]} + !fullciteauthor {%fullciteauthor%[[%fullciteauthor%]][[??]]} # Handle starred command: abbr. or full author list - !makeauthor {%ifstar%[[%!fullauthor%]][[%!abbrvauthor%]]} + !makeauthor {%ifstar%[[%!fullciteauthor%]][[%!abbrvciteauthor%]]} # "prenote " !textbefore {%textbefore%[[%textbefore% ]]} # ", postnote" @@ -156,6 +165,8 @@ CiteFormat default citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!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 CiteFormat authoryear