summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/base/cite-bib.opm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/optex/base/cite-bib.opm')
-rw-r--r--macros/luatex/optex/base/cite-bib.opm16
1 files changed, 14 insertions, 2 deletions
diff --git a/macros/luatex/optex/base/cite-bib.opm b/macros/luatex/optex/base/cite-bib.opm
index ff46c1deaa..4829b8b8f9 100644
--- a/macros/luatex/optex/base/cite-bib.opm
+++ b/macros/luatex/optex/base/cite-bib.opm
@@ -88,7 +88,7 @@
\_if *#1\_addcitelist{*}\_ea\_skiptorelax \_fi
\_ifcsname _bib:#1#2\_endcsname \_else
\_addcitelist{#1#2}%
- \_opwarning{The cite [#1#2] unknown. Try to TeX me again}\_openref
+ \_opwarning{\_noexpand\cite [#1#2] unknown. Try to TeX me again}\_openref
\_incr\_unresolvedrefs
\_addto\_savedcites{?,}\_def\_sortcitesA{}\_lastcitenum=0
\_ea\_gdef \_csname _bib:#1#2\_endcsname {}%
@@ -173,7 +173,7 @@
\_def\_nonumcitations{\_lastcitenum=0\_def\_sortcitesA{}\_def\_etalchar##1{$^{##1}$}%
\_def\_citelinkA##1{\_isdefined{_bim:##1}\_iftrue \_csname _bim:##1\_endcsname
- \_else ##1\_opwarning{\_noexpand\_nonumcitations + empty bibmark. Maybe bad BibTeX style}\_fi}
+ \_else ##1\_opwarning{\_noexpand\nonumcitations + empty bibmark. Maybe bad bib style}\_fi}
}
\_def\_citelinkA{}
@@ -233,6 +233,18 @@
\_def\_usebib{\_par \_opinput {usebib.opm} \_usebib}
\_def\usebib{\_usebib}
+ \_doc ------------------------------
+ \_forwardlink\`\nobibwarning` `[<list of bib-labels>]`
+ declares a list of bib labels
+ which are not fully declared in `.bib` file but we want to suppress the
+ warning about it. List of bib labels are comma separated case sensitive
+ list without spaces.
+ \_cod ------------------------------
+
+\_def\_nobibwarnlist{,}
+\_def\_nobibwarning[#1]{\_global\_addto\_nobibwarnlist{#1,}}
+\_public \nobibwarning ;
+
\_doc -----------------------------
The macros above works if all `\cite` (or similar) commands are used
before the `\usebib` command is used because `\usebib` prints only such