summaryrefslogtreecommitdiff
path: root/Build/source/texk/bibtex-x/tests/testwidth.bst
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-04-16 00:19:16 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-04-16 00:19:16 +0000
commit207a8a1821f51269f9b939749323a6d4bfe549f3 (patch)
tree029b00a89437ae20b2a2cc5f34fc088cfe644de2 /Build/source/texk/bibtex-x/tests/testwidth.bst
parent3102b74cc0d219f655cde4ef53ce3119a4307590 (diff)
bibtex-x: ver3.80, enhance width$, substring$, etc.
git-svn-id: svn://tug.org/texlive/trunk@63038 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/bibtex-x/tests/testwidth.bst')
-rw-r--r--Build/source/texk/bibtex-x/tests/testwidth.bst34
1 files changed, 34 insertions, 0 deletions
diff --git a/Build/source/texk/bibtex-x/tests/testwidth.bst b/Build/source/texk/bibtex-x/tests/testwidth.bst
new file mode 100644
index 00000000000..600ff28a74d
--- /dev/null
+++ b/Build/source/texk/bibtex-x/tests/testwidth.bst
@@ -0,0 +1,34 @@
+ENTRY {field}{}{}
+
+FUNCTION {output_entry} {
+ "\item " field width$ int.to.str$ * write$
+ " " field * 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}