summaryrefslogtreecommitdiff
path: root/biblio/bibtex/bibtex-x/tests/teststyle.bst
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-09-20 03:01:38 +0000
committerNorbert Preining <norbert@preining.info>2022-09-20 03:01:38 +0000
commit7907f67d07d36a7e20421a1ec3a0eceecac4aacd (patch)
tree7aae41d00037cc944480cecfa75b88048a672970 /biblio/bibtex/bibtex-x/tests/teststyle.bst
parentfe872ca5d5d1bb989da6b31802b8e0bfb0342e45 (diff)
CTAN sync 202209200301
Diffstat (limited to 'biblio/bibtex/bibtex-x/tests/teststyle.bst')
-rw-r--r--biblio/bibtex/bibtex-x/tests/teststyle.bst36
1 files changed, 36 insertions, 0 deletions
diff --git a/biblio/bibtex/bibtex-x/tests/teststyle.bst b/biblio/bibtex/bibtex-x/tests/teststyle.bst
new file mode 100644
index 0000000000..72f7525c7b
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/teststyle.bst
@@ -0,0 +1,36 @@
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field * " " *
+ field "u" change.case$ * " " *
+ field "l" change.case$ *
+ write$ newline$
+}
+
+FUNCTION {type} {output_entry}
+
+READ
+
+FUNCTION {set_sortkey} {
+ field 'sort.key$ :=
+}
+
+ITERATE {set_sortkey}
+
+SORT
+
+FUNCTION {output_beg} {
+ "\section*{Test result}" write$ newline$
+ "\begin{itemize}" write$ newline$
+}
+
+FUNCTION {output_end} {
+ "\end{itemize}" write$ newline$
+ "\endinput" write$ newline$
+}
+
+EXECUTE {output_beg}
+
+ITERATE {call.type$}
+
+EXECUTE {output_end}