From 7907f67d07d36a7e20421a1ec3a0eceecac4aacd Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 20 Sep 2022 03:01:38 +0000 Subject: CTAN sync 202209200301 --- biblio/bibtex/bibtex-x/tests/testcase.bst | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 biblio/bibtex/bibtex-x/tests/testcase.bst (limited to 'biblio/bibtex/bibtex-x/tests/testcase.bst') diff --git a/biblio/bibtex/bibtex-x/tests/testcase.bst b/biblio/bibtex/bibtex-x/tests/testcase.bst new file mode 100644 index 0000000000..deb8ab4b5c --- /dev/null +++ b/biblio/bibtex/bibtex-x/tests/testcase.bst @@ -0,0 +1,44 @@ +% BibTeX test style file +% Copyright 2022 TANAKA Takuji +% You may freely use, modify and/or distribute this file. + +ENTRY {field}{}{} + +FUNCTION {output_entry} { + "\item[~] " field * + write$ newline$ + "\item[u] " field "u" change.case$ * + write$ newline$ + "\item[l] " field "l" change.case$ * + write$ newline$ + "\item[t] " field "t" change.case$ * + write$ newline$ +} + +FUNCTION {type} {output_entry} + +READ + +FUNCTION {set_sort_key} { + field 'sort.key$ := +} + +ITERATE {set_sort_key} + +SORT + +FUNCTION {output_bgn} { + "\section*{Test result}" write$ newline$ + "\begin{itemize}" write$ newline$ +} + +FUNCTION {output_end} { + "\end{itemize}" write$ newline$ + "\endinput" write$ newline$ +} + +EXECUTE {output_bgn} + +ITERATE {call.type$} + +EXECUTE {output_end} -- cgit v1.2.3