diff options
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex')
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex b/Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex index a2f542d97a0..d5c90b9733d 100644 --- a/Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex +++ b/Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex @@ -1,6 +1,6 @@ % opmac-bib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Petr Olsak, version Apr. 2015 (beta) +% Petr Olsak, version Jan. 2016 (beta) % This is module for OPmac macros, see http://petr.olsak.net/opmac.html % The command: @@ -82,12 +82,13 @@ } \def\lb@readentry#1#2#3,{% space before key have to be ingnored \def\lb@temp{#2#3}% we need case sensitive keys + \def\lb@next{\expandafter\lb@gotoat\lb@gobbletoeoe}% \lb@ifcs\lb@temp{requested}% {\let\lb@entrykey\lb@temp - \lb@defcs\lb@entrykey{fields}{}% - \lowercase{\lb@addfield{entrytype}{#1}}% - \let\lb@next\lb@analyzeentry}% - {\def\lb@next{\expandafter\lb@gotoat\lb@gobbletoeoe}}% + \lb@ifcs\lb@entrykey{fields}{}% + {\lb@defcs\lb@entrykey{fields}{}% + \lowercase{\lb@addfield{entrytype}{#1}}% + \let\lb@next\lb@analyzeentry}}{}% \lb@next } \let\lb@compareA=\lb@compare @@ -214,6 +215,15 @@ bibliographics references (only those declared by by \cite[] or \nocite[] in the text). The formatting of such references is defined in the style file. The usage is mentioned in OPmac documentation too. +The principle "first entry wins" is used. Suppose + + \usebib/s (simple) local,global + +If an entry with the same label is declared in local.bib and in +global.bib too then the first wins. So, you can set an exceptions in your +local.bib file for your document, for example. + + Notes for style writers: ------------------------ @@ -308,4 +318,12 @@ If you need (for example) to place the autocitations before other citations, then you can mark your entries in .bib file by sortedby = "@", because this character is sorted before A. + +History: +-------- + +Apr. 2014: released +Jan. 2016: "first entry wins" implemented + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of the opmac-bib.tex |