summaryrefslogtreecommitdiff
path: root/biblio/bibtex/bibtex-x/tests/testwidth.bst
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/bibtex/bibtex-x/tests/testwidth.bst')
-rw-r--r--biblio/bibtex/bibtex-x/tests/testwidth.bst38
1 files changed, 38 insertions, 0 deletions
diff --git a/biblio/bibtex/bibtex-x/tests/testwidth.bst b/biblio/bibtex/bibtex-x/tests/testwidth.bst
new file mode 100644
index 0000000000..2af9d8c388
--- /dev/null
+++ b/biblio/bibtex/bibtex-x/tests/testwidth.bst
@@ -0,0 +1,38 @@
+% BibTeX test style file
+% Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+% You may freely use, modify and/or distribute this file.
+
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field width$ int.to.str$ * write$
+ " " field * 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}