summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-11 23:39:54 +0000
committerKarl Berry <karl@freefriends.org>2016-03-11 23:39:54 +0000
commit95214a443bff0d5cd0d653629cd2d1e15a093f07 (patch)
tree5bca84f3fd28f4423702ba377c6fb39cdf33a58b /Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex
parent58417e588769a2a532f99b57b67bc76e2e24901a (diff)
csplain (11mar16)
git-svn-id: svn://tug.org/texlive/trunk@40002 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex')
-rw-r--r--Master/texmf-dist/tex/csplain/opmac/opmac-bib.tex28
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