summaryrefslogtreecommitdiff
path: root/macros/optex/base/bib-simple.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-17 03:02:29 +0000
committerNorbert Preining <norbert@preining.info>2023-11-17 03:02:29 +0000
commitd91bb5cad66508ec34d77ea60c0a02c79308edef (patch)
tree69c363099e912a77d55b67d891020bcc1f407d80 /macros/optex/base/bib-simple.opm
parente0db3f0709a737e7258fd40a7cbfe9a461ea0756 (diff)
CTAN sync 202311170302
Diffstat (limited to 'macros/optex/base/bib-simple.opm')
-rw-r--r--macros/optex/base/bib-simple.opm12
1 files changed, 10 insertions, 2 deletions
diff --git a/macros/optex/base/bib-simple.opm b/macros/optex/base/bib-simple.opm
index e61e94d7e2..c70bb12be7 100644
--- a/macros/optex/base/bib-simple.opm
+++ b/macros/optex/base/bib-simple.opm
@@ -1,6 +1,6 @@
%% This is part of the OpTeX project, see http://petr.olsak.net/optex
-\_codedecl \_undefined {BIB style (simple) <2023-04-22>} % loaded on demand by \usebib
+\_codedecl \_undefined {BIB style (simple) <2023-09-13>} % loaded on demand by \usebib
\_ifx\_optexbibstyle\_undefined \_errmessage
{This file can be read by: \_string\usebib/? (simple) bibfiles command only}
@@ -39,7 +39,7 @@
\_edef\_tmp{\_ea\_createbibmark\_expanded{\_tmp;\_authlist;,;,;,;}\_fin}\_fi
\_bibmark=\_ea{\_tmp}%
}
-\_def\_createbibmark#1;#2,#3\_fin{#2, #1}
+\_def\_createbibmark#1;#2,#3\_fin{#2\_ifx^#1^\_else, #1\_fi}
\_def\_preurl{\_hfil\_break}
\_def\_Inclause{In:~}
@@ -156,6 +156,14 @@
\_bprinta [institution] {*.\ }{}%
\_bprintb [url] {\_preurl\_url{##1}. }{}%
}
+\_sdef{_print:online}{%
+ \_bprinta [!author] {*.\ }{}%
+ \_bprintb [title] {{\_em##1}\:\ }{}%
+ \_bprinta [howpublished] {*.\ }{}%
+ \_bprinta [institution] {*.\ }{}%
+ \_bprinta [series] {*.\ }{}%
+ \_bprintb [url] {\_preurl\_url{##1}. }{\_bibwarning}%
+}
\_sdef{_print:misc}{%
\_bprinta [!author] {*.\ }{}%
\_bprintb [title] {{\_em##1}\:\ }{}%