diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-17 22:11:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-17 22:11:53 +0000 |
commit | ad061cff36845f52688d6a879d2fa86145e6ea84 (patch) | |
tree | 4791ad25c71d68a06581428a88b530b39314af8c /Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex | |
parent | 277463648965be21e215d982f6623c11a2e154ee (diff) |
csplain (17apr15)
git-svn-id: svn://tug.org/texlive/trunk@36895 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex')
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex b/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex index 66d1890a422..050d83bbd40 100644 --- a/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex +++ b/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex @@ -1,5 +1,5 @@ % opmac-bib-iso690 ... the OPmac bib style for reading .bib databases -% Petr Olsak, Apr. 2014c (beta) +% Petr Olsak, Apr. 2015 (beta) % % The bibliography printing from .bib files by ISO 690 standard is defied here. % See the end of this file and the file opmac-bib.tex for more information. @@ -79,6 +79,15 @@ \ifx\sc\undefined \def\upper{\uppercase\expandafter}\else \def\upper#1{{\sc#1}}\fi \fi +% Preparing bib-mark (used when \nonumcitations is set): + +\def\setbibmark{% + \ifx\dobibmark\undefined \def\dobibmark{}\fi + \RetrieveFieldIn{bibmark}\tmp + \ifx\tmp\empty \RetrieveFieldIn{year}\tmp \edef\tmp{\dobibmark, \tmp}\fi + \bibmark=\expandafter{\tmp}% +} + % Multilinguals: English Czech Slovak \mtdef{bib.and} {, and } { a } {} @@ -132,6 +141,7 @@ \CreateField {issn} \CreateField {doi} \CreateField {url} +\CreateField {bibmark} % Sorting: @@ -204,9 +214,7 @@ } \sdef{print:END}{% \bprinta [note] {*.}{}% - \ifx\dobibmark\undefined \def\dobibmark{}\fi - \def\lowercase##1{##1}% - \edef\tmp{\bibmark ={\dobibmark, \RetrieveField{year}}}\tmp + \setbibmark } \def\bookgeneric#1{% \bprinta [howpublished] {[*].\ }{}% @@ -330,7 +338,7 @@ more information (abstract, for example). There are ``standard fields'' used in ancient bibTeX (author, title, editor, edition, etc., see http://en.wikipedia.org/wiki/BibTeX). The iso690 style introduces several ``non-standard'' fields: ednote, numbering, isbn, issn, doi, url, -citedate. They are documented here. +citedate, key, bibmark. They are documented here. Moreover, there are two optional special fields: @@ -781,6 +789,20 @@ cannot use these entries from the old databases without warnings and without some additional work in the .bib file. +The cite-marks (bibmark) used when \nonumcitations is set +--------------------------------------------------------- + +When \nonumcitations is set then \cite prints the cite-marks (called +bibmark) instead numbers. This style file autogenerates these marks in the +form "Lastname of the first author, comma, space, the year" if bibmark field +isn't declared. If you need to set an exception from this common format, +then you can use bibmark field. + +The OPmac trick http://petr.olsak.net/opmac-tricks-e.html#bibmark +describes how to redefine the algorithm for bibmark auto-generating when you +need the short form of the type [Au13]. + + Sorting ------- |