File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2570,7 +2570,29 @@ FUNCTION {electronic}
25702570}
25712571
25722572FUNCTION {preprint }
2573- { output.bibitem
2573+ { url empty$ not
2574+ { url 'entry.url :=
2575+ #1 'entry.is.electronic :=
2576+ #1 'is.pure.electronic :=
2577+ }
2578+ { eprint empty$
2579+ 'skip$
2580+ { archivePrefix empty$
2581+ { eprinttype field.or.null }
2582+ { archivePrefix }
2583+ if$
2584+ "l" change.case$ duplicate$ "arxiv" =
2585+ { "https://arxiv.org/abs/" swap$ * eprint * 'entry.url :=
2586+ #1 'entry.is.electronic :=
2587+ #1 'is.pure.electronic :=
2588+ }
2589+ 'pop$
2590+ if$
2591+ }
2592+ if$
2593+ }
2594+ if$
2595+ output.bibitem
25742596 output.translation
25752597 author empty$ not
25762598 { format.authors }
@@ -2632,7 +2654,8 @@ FUNCTION {misc}
26322654 { pop$
26332655 booktitle empty$ not
26342656 'incollection
2635- { eprint empty$ not archivePrefix empty$ not or
2657+ { archivePrefix empty$ not
2658+ eprinttype empty$ not or
26362659 'preprint
26372660 { publisher empty$ not
26382661 'monograph
Original file line number Diff line number Diff line change @@ -2560,7 +2560,29 @@ FUNCTION {electronic}
25602560}
25612561
25622562FUNCTION {preprint }
2563- { output.bibitem
2563+ { url empty$ not
2564+ { url 'entry.url :=
2565+ #1 'entry.is.electronic :=
2566+ #1 'is.pure.electronic :=
2567+ }
2568+ { eprint empty$
2569+ 'skip$
2570+ { archivePrefix empty$
2571+ { eprinttype field.or.null }
2572+ { archivePrefix }
2573+ if$
2574+ "l" change.case$ duplicate$ "arxiv" =
2575+ { "https://arxiv.org/abs/" swap$ * eprint * 'entry.url :=
2576+ #1 'entry.is.electronic :=
2577+ #1 'is.pure.electronic :=
2578+ }
2579+ 'pop$
2580+ if$
2581+ }
2582+ if$
2583+ }
2584+ if$
2585+ output.bibitem
25642586 output.translation
25652587 author empty$ not
25662588 { format.authors }
@@ -2622,7 +2644,8 @@ FUNCTION {misc}
26222644 { pop$
26232645 booktitle empty$ not
26242646 'incollection
2625- { eprint empty$ not archivePrefix empty$ not or
2647+ { archivePrefix empty$ not
2648+ eprinttype empty$ not or
26262649 'preprint
26272650 { publisher empty$ not
26282651 'monograph
Original file line number Diff line number Diff line change @@ -2560,7 +2560,29 @@ FUNCTION {electronic}
25602560}
25612561
25622562FUNCTION {preprint }
2563- { output.bibitem
2563+ { url empty$ not
2564+ { url 'entry.url :=
2565+ #1 'entry.is.electronic :=
2566+ #1 'is.pure.electronic :=
2567+ }
2568+ { eprint empty$
2569+ 'skip$
2570+ { archivePrefix empty$
2571+ { eprinttype field.or.null }
2572+ { archivePrefix }
2573+ if$
2574+ "l" change.case$ duplicate$ "arxiv" =
2575+ { "https://arxiv.org/abs/" swap$ * eprint * 'entry.url :=
2576+ #1 'entry.is.electronic :=
2577+ #1 'is.pure.electronic :=
2578+ }
2579+ 'pop$
2580+ if$
2581+ }
2582+ if$
2583+ }
2584+ if$
2585+ output.bibitem
25642586 output.translation
25652587 author empty$ not
25662588 { format.authors }
@@ -2622,7 +2644,8 @@ FUNCTION {misc}
26222644 { pop$
26232645 booktitle empty$ not
26242646 'incollection
2625- { eprint empty$ not archivePrefix empty$ not or
2647+ { archivePrefix empty$ not
2648+ eprinttype empty$ not or
26262649 'preprint
26272650 { publisher empty$ not
26282651 'monograph
You can’t perform that action at this time.
0 commit comments