Debian Codegraph @

texmf-dist/bibtex/bst/francais-bst/francaissc.bst

raw
1 %%
2 %% This is file `francaissc.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% francais-bst.mbs (with options: `babel,ay,nat,lang,vonx,nm-rev1,jnrlst,nmft,nmft-sc,nmand-rm,lab,lab-sc,and-rm,keyxyr,blkyear,dt-beg,yr-per,note-yr,tit-qq,qt-g,qx,trtit-b,vnum-nr,volp-com,pgsep-s,jwdpg,jwdvol,num-xser,numser,ser-vol,ser-ed,pg-bk,pre-pub,pre-edn,isbn,url-doi,edparxc,edby,blk-com,blknt,pp,ed,abr,ord,and-xcom,etal-xc,url,url-blk,nfss,')
8 %%
9 %% Copyright (C) 2012-2024 Vincent Goulet
10 %%
11 %% This file may be distributed and/or modified under the conditions
12 %% of the LaTeX Project Public License, either version 1.3c of this
13 %% license or (at your option) any later version. The latest version
14 %% of this license is in:
15 %%
16 %% https://www.latex-project.org/lppl.txt
17 %%
18 %% This work has the LPPL maintenance status `maintained'.
19 %%
20 %% The Current Maintainer of this work is Vincent Goulet
21 %% <[email protected]>.
22 %%
23 %% This work consists of the master bibliographic style file
24 %% francais-bst.mbs; the driver files francais.dbj and francaissc.dbj;
25 %% the derived files francais.bst, francaissc.bst, francaisbst.tex.
26 %%
27 % -------------------------------------------------------------------
28 % Name and version information of the main mbs file:
29 % \ProvidesFile{francais-bst.mbs}[2024/02/13 v2.0a (VG, PWD, AO, DPC)]
30 % For use with BibTeX version 0.99a or later
31 % -------------------------------------------------------------------
32 % This bibliography style file requires a file named francaisbst.tex
33 % containing the definitions of word commands like \bbleditor, etc.
34 % This is an author-year citation style bibliography. As such, it is
35 % non-standard LaTeX, and requires a special package file to function properly.
36 % Such a package is natbib.sty by Patrick W. Daly
37 % The form of the \bibitem entries is
38 % \bibitem[Jones et al.(1990)]{key}...
39 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
40 % The essential feature is that the label (the part in brackets) consists
41 % of the author names, as they should appear in the citation, with the year
42 % in parentheses following. There must be no space before the opening
43 % parenthesis!
44 % With natbib v5.3, a full list of authors may also follow the year.
45 % In natbib.sty, it is possible to define the type of enclosures that is
46 % really wanted (brackets or parentheses), but in either case, there must
47 % be parentheses in the label.
48 % The \cite command functions as follows:
49 % \citet{key} ==>> Jones et al. (1990)
50 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
51 % \citep{key} ==>> (Jones et al., 1990)
52 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
53 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
54 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
55 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., 1990, p. 32)
56 % \citeauthor{key} ==>> Jones et al.
57 % \citeauthor*{key} ==>> Jones, Baker, and Smith
58 % \citeyear{key} ==>> 1990
59 % -------------------------------------------------------------------
60
61 ENTRY
62 { address
63 author
64 booktitle
65 chapter
66 doi
67 edition
68 editor
69 eid
70 howpublished
71 institution
72 isbn
73 journal
74 key
75 language
76 month
77 note
78 number
79 organization
80 pages
81 publisher
82 school
83 series
84 title
85 type
86 url
87 volume
88 year
89 }
90 {}
91 { label extra.label sort.label short.list }
92 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
93 FUNCTION {init.state.consts}
94 { #0 'before.all :=
95 #1 'mid.sentence :=
96 #2 'after.sentence :=
97 #3 'after.block :=
98 }
99 STRINGS { s t}
100 FUNCTION {output.nonnull}
101 { 's :=
102 output.state mid.sentence =
103 { ", " * write$ }
104 { output.state after.block =
105 { add.period$ write$
106 newline$
107 "\newblock " write$
108 }
109 { output.state before.all =
110 'write$
111 { add.period$ " " * write$ }
112 if$
113 }
114 if$
115 mid.sentence 'output.state :=
116 }
117 if$
118 s
119 }
120 FUNCTION {output}
121 { duplicate$ empty$
122 'pop$
123 'output.nonnull
124 if$
125 }
126 FUNCTION {output.check}
127 { 't :=
128 duplicate$ empty$
129 { pop$ "empty " t * " in " * cite$ * warning$ }
130 'output.nonnull
131 if$
132 }
133 FUNCTION {fin.entry}
134 { add.period$
135 write$
136 newline$
137 }
138
139 FUNCTION {new.block}
140 { output.state before.all =
141 'skip$
142 { after.block 'output.state := }
143 if$
144 }
145 FUNCTION {new.sentence}
146 { output.state after.block =
147 'skip$
148 { output.state before.all =
149 'skip$
150 { after.sentence 'output.state := }
151 if$
152 }
153 if$
154 }
155 FUNCTION {add.blank}
156 { " " * before.all 'output.state :=
157 }
158
159 FUNCTION {date.block}
160 {
161 skip$
162 }
163
164 FUNCTION {not}
165 { { #0 }
166 { #1 }
167 if$
168 }
169 FUNCTION {and}
170 { 'skip$
171 { pop$ #0 }
172 if$
173 }
174 FUNCTION {or}
175 { { pop$ #1 }
176 'skip$
177 if$
178 }
179 FUNCTION {non.stop}
180 { duplicate$
181 "}" * add.period$
182 #-1 #1 substring$ "." =
183 }
184
185 FUNCTION {new.block.checkb}
186 { empty$
187 swap$ empty$
188 and
189 'skip$
190 'new.block
191 if$
192 }
193 FUNCTION {field.or.null}
194 { duplicate$ empty$
195 { pop$ "" }
196 'skip$
197 if$
198 }
199 FUNCTION {emphasize}
200 { duplicate$ empty$
201 { pop$ "" }
202 { "\emph{" swap$ * "}" * }
203 if$
204 }
205 FUNCTION {scaps}
206 { duplicate$ empty$
207 { pop$ "" }
208 { "\textsc{" swap$ * "}" * }
209 if$
210 }
211 FUNCTION {bib.name.font}
212 { scaps }
213 FUNCTION {bib.fname.font}
214 { bib.name.font }
215 FUNCTION {cite.name.font}
216 { scaps }
217 FUNCTION {tie.or.space.prefix}
218 { duplicate$ text.length$ #3 <
219 { "~" }
220 { " " }
221 if$
222 swap$
223 }
224
225 FUNCTION {capitalize}
226 { "\capitalize" swap$ * }
227
228 FUNCTION {space.word}
229 { " " swap$ * " " * }
230 % Here are the language-specific definitions for explicit words.
231 % Each function has a name bbl.xxx where xxx is the English word.
232 % The BABEL language selection is made here; definitions in francaisbst.tex.
233 FUNCTION {bbl.and}
234 { "\bbland{}"}
235
236 FUNCTION {bbl.etal}
237 { "\bbletal{}"}
238
239 FUNCTION {bbl.editors}
240 { "\bbleds{}" }
241
242 FUNCTION {bbl.editor}
243 { "\bbled{}" }
244
245 FUNCTION {bbl.edby}
246 { "\bbledby{}" }
247
248 FUNCTION {bbl.edition}
249 { "\bbledn{}" }
250
251 FUNCTION {bbl.volume}
252 { "\bblvol{}" }
253
254 FUNCTION {bbl.of}
255 { "\bblof{}" }
256
257 FUNCTION {bbl.number}
258 { "\bblno{}" }
259
260 FUNCTION {bbl.nr}
261 { "\bblno{}" }
262
263 FUNCTION {bbl.in}
264 { "\bblin{}" }
265
266 FUNCTION {bbl.pages}
267 { "\bblpp{}" }
268
269 FUNCTION {bbl.page}
270 { "\bblp{}" }
271
272 FUNCTION {bbl.chapter}
273 { "\bblchap{}" }
274
275 FUNCTION {bbl.techrep}
276 { "\bbltechrep{}" }
277
278 FUNCTION {bbl.mthesis}
279 { "\bblmthesis{}" }
280
281 FUNCTION {bbl.phdthesis}
282 { "\bblphdthesis{}" }
283
284 FUNCTION {bbl.first}
285 { "\bblfirsto{}" }
286
287 FUNCTION {bbl.second}
288 { "\bblsecondo{}" }
289
290 FUNCTION {bbl.third}
291 { "\bblthirdo{}" }
292
293 FUNCTION {bbl.fourth}
294 { "\bblfourtho{}" }
295
296 FUNCTION {bbl.fifth}
297 { "\bblfiftho{}" }
298
299 FUNCTION {bbl.st}
300 { "\bblst{}" }
301
302 FUNCTION {bbl.nd}
303 { "\bblnd{}" }
304
305 FUNCTION {bbl.rd}
306 { "\bblrd{}" }
307
308 FUNCTION {bbl.th}
309 { "\bblth{}" }
310
311 MACRO {jan} {"\bbljan{}"}
312
313 MACRO {feb} {"\bblfeb{}"}
314
315 MACRO {mar} {"\bblmar{}"}
316
317 MACRO {apr} {"\bblapr{}"}
318
319 MACRO {may} {"\bblmay{}"}
320
321 MACRO {jun} {"\bbljun{}"}
322
323 MACRO {jul} {"\bbljul{}"}
324
325 MACRO {aug} {"\bblaug{}"}
326
327 MACRO {sep} {"\bblsep{}"}
328
329 MACRO {oct} {"\bbloct{}"}
330
331 MACRO {nov} {"\bblnov{}"}
332
333 MACRO {dec} {"\bbldec{}"}
334
335 FUNCTION {eng.ord}
336 { duplicate$ "1" swap$ *
337 #-2 #1 substring$ "1" =
338 { bbl.th * }
339 { duplicate$ #-1 #1 substring$
340 duplicate$ "1" =
341 { pop$ bbl.st * }
342 { duplicate$ "2" =
343 { pop$ bbl.nd * }
344 { "3" =
345 { bbl.rd * }
346 { bbl.th * }
347 if$
348 }
349 if$
350 }
351 if$
352 }
353 if$
354 }
355
356 MACRO {acmcs} {"ACM Computing Surveys"}
357
358 MACRO {acta} {"Acta Informatica"}
359
360 MACRO {cacm} {"Communications of the ACM"}
361
362 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
363
364 MACRO {ibmsj} {"IBM Systems Journal"}
365
366 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
367
368 MACRO {ieeetc} {"IEEE Transactions on Computers"}
369
370 MACRO {ieeetcad}
371 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
372
373 MACRO {ipl} {"Information Processing Letters"}
374
375 MACRO {jacm} {"Journal of the ACM"}
376
377 MACRO {jcss} {"Journal of Computer and System Sciences"}
378
379 MACRO {scp} {"Science of Computer Programming"}
380
381 MACRO {sicomp} {"SIAM Journal on Computing"}
382
383 MACRO {tocs} {"ACM Transactions on Computer Systems"}
384
385 MACRO {tods} {"ACM Transactions on Database Systems"}
386
387 MACRO {tog} {"ACM Transactions on Graphics"}
388
389 MACRO {toms} {"ACM Transactions on Mathematical Software"}
390
391 MACRO {toois} {"ACM Transactions on Office Information Systems"}
392
393 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
394
395 MACRO {tcs} {"Theoretical Computer Science"}
396 FUNCTION {bibinfo.check}
397 { swap$
398 duplicate$ missing$
399 {
400 pop$ pop$
401 ""
402 }
403 { duplicate$ empty$
404 {
405 swap$ pop$
406 }
407 { swap$
408 pop$
409 }
410 if$
411 }
412 if$
413 }
414 FUNCTION {bibinfo.warn}
415 { swap$
416 duplicate$ missing$
417 {
418 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
419 ""
420 }
421 { duplicate$ empty$
422 {
423 swap$ "empty " swap$ * " in " * cite$ * warning$
424 }
425 { swap$
426 pop$
427 }
428 if$
429 }
430 if$
431 }
432 FUNCTION {format.url}
433 {
434 doi empty$
435 {
436 url
437 duplicate$ empty$
438 { pop$ "" }
439 { "\urlprefix\url{" swap$ * "}" * }
440 if$
441 }
442 {
443 doi
444 "\doiprefix\urldoi{" swap$ * "}" *
445 }
446 if$
447 }
448
449 INTEGERS { nameptr namesleft numnames }
450
451
452 STRINGS { bibinfo}
453
454 FUNCTION {format.names}
455 { 'bibinfo :=
456 duplicate$ empty$ 'skip$ {
457 's :=
458 "" 't :=
459 #1 'nameptr :=
460 s num.names$ 'numnames :=
461 numnames 'namesleft :=
462 { namesleft #0 > }
463 { s nameptr
464 duplicate$ #1 >
465 { "{f.~}{vv~}{ll}{, jj}" }
466 { "{vv~}{ll}{, f.}{, jj}" }
467 if$
468 format.name$
469 bib.name.font
470 bibinfo bibinfo.check
471 't :=
472 nameptr #1 >
473 {
474 namesleft #1 >
475 { ", " * t * }
476 {
477 s nameptr "{ll}" format.name$ duplicate$ "others" =
478 { 't := }
479 { pop$ }
480 if$
481 t "others" =
482 {
483 " " * bbl.etal bib.name.font *
484 }
485 {
486 bbl.and
487 space.word * t *
488 }
489 if$
490 }
491 if$
492 }
493 't
494 if$
495 nameptr #1 + 'nameptr :=
496 namesleft #1 - 'namesleft :=
497 }
498 while$
499 } if$
500 }
501 FUNCTION {format.names.ed}
502 {
503 'bibinfo :=
504 duplicate$ empty$ 'skip$ {
505 's :=
506 "" 't :=
507 #1 'nameptr :=
508 s num.names$ 'numnames :=
509 numnames 'namesleft :=
510 { namesleft #0 > }
511 { s nameptr
512 "{f.~}{vv~}{ll}{, jj}"
513 format.name$
514 bibinfo bibinfo.check
515 't :=
516 nameptr #1 >
517 {
518 namesleft #1 >
519 { ", " * t * }
520 {
521 s nameptr "{ll}" format.name$ duplicate$ "others" =
522 { 't := }
523 { pop$ }
524 if$
525 t "others" =
526 {
527
528 " " * bbl.etal *
529 }
530 {
531 bbl.and
532 space.word * t *
533 }
534 if$
535 }
536 if$
537 }
538 't
539 if$
540 nameptr #1 + 'nameptr :=
541 namesleft #1 - 'namesleft :=
542 }
543 while$
544 } if$
545 }
546 FUNCTION {format.key}
547 { empty$
548 { key field.or.null }
549 { "" }
550 if$
551 }
552
553 FUNCTION {format.authors}
554 { author "author" format.names
555 }
556 FUNCTION {get.bbl.editor}
557 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
558
559 FUNCTION {format.editors}
560 { editor "editor" format.names duplicate$ empty$ 'skip$
561 {
562 " " *
563 get.bbl.editor
564 "(" swap$ * ")" *
565 *
566 }
567 if$
568 }
569 FUNCTION {format.book.pages}
570 { pages "pages" bibinfo.check
571 duplicate$ empty$ 'skip$
572 { " " * bbl.pages * }
573 if$
574 }
575 FUNCTION {format.isbn}
576 { isbn "isbn" bibinfo.check
577 duplicate$ empty$ 'skip$
578 {
579 "ISBN " swap$ *
580 }
581 if$
582 }
583
584 FUNCTION {select.language}
585 { duplicate$ empty$
586 'pop$
587 { language empty$
588 'skip$
589 { "{\selectlanguage{" language * "}" * swap$ * "}" * }
590 if$
591 }
592 if$
593 }
594
595 FUNCTION {format.note}
596 {
597 note empty$
598 { "" }
599 { note #1 #1 substring$
600 duplicate$ "{" =
601 'skip$
602 { output.state mid.sentence =
603 { "l" }
604 { "u" }
605 if$
606 change.case$
607 }
608 if$
609 note #2 global.max$ substring$ * "note" bibinfo.check
610 }
611 if$
612 }
613
614 FUNCTION {format.title}
615 { title
616 duplicate$ empty$ 'skip$
617 { "t" change.case$ }
618 if$
619 "title" bibinfo.check
620 duplicate$ empty$ 'skip$
621 {
622 "\enquote{" swap$ *
623 "}, " *
624 select.language
625 }
626 if$
627 }
628 FUNCTION {end.quote.title}
629 { title empty$
630 'skip$
631 { before.all 'output.state := }
632 if$
633 }
634 FUNCTION {format.full.names}
635 {'s :=
636 "" 't :=
637 #1 'nameptr :=
638 s num.names$ 'numnames :=
639 numnames 'namesleft :=
640 { namesleft #0 > }
641 { s nameptr
642 "{vv~}{ll}" format.name$
643 cite.name.font
644 't :=
645 nameptr #1 >
646 {
647 namesleft #1 >
648 { ", " * t * }
649 {
650 s nameptr "{ll}" format.name$ duplicate$ "others" =
651 { 't := }
652 { pop$ }
653 if$
654 t "others" =
655 {
656 " " * bbl.etal cite.name.font *
657 }
658 {
659 bbl.and
660 space.word * t *
661 }
662 if$
663 }
664 if$
665 }
666 't
667 if$
668 nameptr #1 + 'nameptr :=
669 namesleft #1 - 'namesleft :=
670 }
671 while$
672 }
673
674 FUNCTION {author.editor.key.full}
675 { author empty$
676 { editor empty$
677 { key empty$
678 { cite$ #1 #3 substring$ }
679 'key
680 if$
681 }
682 { editor format.full.names }
683 if$
684 }
685 { author format.full.names }
686 if$
687 }
688
689 FUNCTION {author.key.full}
690 { author empty$
691 { key empty$
692 { cite$ #1 #3 substring$ }
693 'key
694 if$
695 }
696 { author format.full.names }
697 if$
698 }
699
700 FUNCTION {editor.key.full}
701 { editor empty$
702 { key empty$
703 { cite$ #1 #3 substring$ }
704 'key
705 if$
706 }
707 { editor format.full.names }
708 if$
709 }
710
711 FUNCTION {make.full.names}
712 { type$ "book" =
713 type$ "inbook" =
714 or
715 'author.editor.key.full
716 { type$ "proceedings" =
717 'editor.key.full
718 'author.key.full
719 if$
720 }
721 if$
722 }
723
724 FUNCTION {output.bibitem}
725 { newline$
726 "\bibitem[{" write$
727 label write$
728 ")" make.full.names duplicate$ short.list =
729 { pop$ }
730 { * }
731 if$
732 "}]{" * write$
733 cite$ write$
734 "}" write$
735 newline$
736 ""
737 before.all 'output.state :=
738 }
739
740 FUNCTION {if.digit}
741 { duplicate$ "0" =
742 swap$ duplicate$ "1" =
743 swap$ duplicate$ "2" =
744 swap$ duplicate$ "3" =
745 swap$ duplicate$ "4" =
746 swap$ duplicate$ "5" =
747 swap$ duplicate$ "6" =
748 swap$ duplicate$ "7" =
749 swap$ duplicate$ "8" =
750 swap$ "9" = or or or or or or or or or
751 }
752 FUNCTION {n.separate}
753 { 't :=
754 ""
755 #0 'numnames :=
756 { t empty$ not }
757 { t #-1 #1 substring$ if.digit
758 { numnames #1 + 'numnames := }
759 { #0 'numnames := }
760 if$
761 t #-1 #1 substring$ swap$ *
762 t #-2 global.max$ substring$ 't :=
763 numnames #5 =
764 { duplicate$ #1 #2 substring$ swap$
765 #3 global.max$ substring$
766 "\," swap$ * *
767 }
768 'skip$
769 if$
770 }
771 while$
772 }
773 FUNCTION {n.dashify}
774 {
775 n.separate
776 't :=
777 ""
778 { t empty$ not }
779 { t #1 #1 substring$ "-" =
780 { t #1 #2 substring$ "--" = not
781 { "--" *
782 t #2 global.max$ substring$ 't :=
783 }
784 { { t #1 #1 substring$ "-" = }
785 { "-" *
786 t #2 global.max$ substring$ 't :=
787 }
788 while$
789 }
790 if$
791 }
792 { t #1 #1 substring$ *
793 t #2 global.max$ substring$ 't :=
794 }
795 if$
796 }
797 while$
798 }
799
800 FUNCTION {word.in}
801 { bbl.in
802 " " * }
803
804 FUNCTION {format.date}
805 { year "year" bibinfo.check duplicate$ empty$
806 {
807 }
808 'skip$
809 if$
810 extra.label *
811 before.all 'output.state :=
812 after.sentence 'output.state :=
813 }
814 FUNCTION {format.btitle}
815 { title "title" bibinfo.check
816 duplicate$ empty$ 'skip$
817 {
818 emphasize
819 select.language
820 }
821 if$
822 }
823 FUNCTION {either.or.check}
824 { empty$
825 'pop$
826 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
827 if$
828 }
829 FUNCTION {format.bvolume}
830 { volume empty$
831 { "" }
832 { bbl.volume volume tie.or.space.prefix
833 "volume" bibinfo.check * *
834 series "series" bibinfo.check
835 duplicate$ empty$ 'pop$
836 { emphasize ", " * swap$ * }
837 if$
838 "volume and number" number either.or.check
839 }
840 if$
841 }
842 FUNCTION {format.number.series}
843 { volume empty$
844 { number empty$
845 { series field.or.null }
846 { series empty$
847 { number "number" bibinfo.check }
848 { output.state mid.sentence =
849 { bbl.number }
850 { bbl.number capitalize }
851 if$
852 number tie.or.space.prefix "number" bibinfo.check * *
853 bbl.in space.word *
854 series "series" bibinfo.check *
855 }
856 if$
857 }
858 if$
859 }
860 { "" }
861 if$
862 }
863 FUNCTION {is.num}
864 { chr.to.int$
865 duplicate$ "0" chr.to.int$ < not
866 swap$ "9" chr.to.int$ > not and
867 }
868
869 FUNCTION {extract.num}
870 { duplicate$ 't :=
871 "" 's :=
872 { t empty$ not }
873 { t #1 #1 substring$
874 t #2 global.max$ substring$ 't :=
875 duplicate$ is.num
876 { s swap$ * 's := }
877 { pop$ "" 't := }
878 if$
879 }
880 while$
881 s empty$
882 'skip$
883 { pop$ s }
884 if$
885 }
886
887 FUNCTION {convert.edition}
888 { extract.num "l" change.case$ 's :=
889 s "first" = s "1" = or
890 { bbl.first 't := }
891 { s "second" = s "2" = or
892 { bbl.second 't := }
893 { s "third" = s "3" = or
894 { bbl.third 't := }
895 { s "fourth" = s "4" = or
896 { bbl.fourth 't := }
897 { s "fifth" = s "5" = or
898 { bbl.fifth 't := }
899 { s #1 #1 substring$ is.num
900 { s eng.ord 't := }
901 { edition 't := }
902 if$
903 }
904 if$
905 }
906 if$
907 }
908 if$
909 }
910 if$
911 }
912 if$
913 t
914 }
915
916 FUNCTION {format.edition}
917 { edition duplicate$ empty$ 'skip$
918 {
919 convert.edition
920 output.state mid.sentence =
921 { "l" }
922 { "t" }
923 if$ change.case$
924 "edition" bibinfo.check
925 " " * bbl.edition *
926 }
927 if$
928 }
929 INTEGERS { multiresult }
930 FUNCTION {multi.page.check}
931 { 't :=
932 #0 'multiresult :=
933 { multiresult not
934 t empty$ not
935 and
936 }
937 { t #1 #1 substring$
938 duplicate$ "-" =
939 swap$ duplicate$ "," =
940 swap$ "+" =
941 or or
942 { #1 'multiresult := }
943 { t #2 global.max$ substring$ 't := }
944 if$
945 }
946 while$
947 multiresult
948 }
949 FUNCTION {format.pages}
950 { pages duplicate$ empty$ 'skip$
951 { duplicate$ multi.page.check
952 {
953 bbl.pages swap$
954 n.dashify
955 }
956 {
957 bbl.page swap$
958 }
959 if$
960 tie.or.space.prefix
961 "pages" bibinfo.check
962 * *
963 }
964 if$
965 }
966 FUNCTION {format.journal.pages}
967 { pages duplicate$ empty$ 'pop$
968 { swap$ duplicate$ empty$
969 { pop$ pop$ format.pages }
970 {
971 ", " *
972 swap$
973 n.dashify
974 pages multi.page.check
975 'bbl.pages
976 'bbl.page
977 if$
978 swap$ tie.or.space.prefix
979 "pages" bibinfo.check
980 * *
981 *
982 }
983 if$
984 }
985 if$
986 }
987 FUNCTION {format.journal.eid}
988 { eid "eid" bibinfo.check
989 duplicate$ empty$ 'pop$
990 { swap$ duplicate$ empty$ 'skip$
991 {
992 ", " *
993 }
994 if$
995 swap$ *
996 }
997 if$
998 }
999 FUNCTION {format.vol.num.pages}
1000 { volume field.or.null
1001 duplicate$ empty$ 'skip$
1002 {
1003 bbl.volume swap$ tie.or.space.prefix
1004 "volume" bibinfo.check
1005 * *
1006 }
1007 if$
1008 number "number" bibinfo.check duplicate$ empty$ 'skip$
1009 {
1010 swap$ duplicate$ empty$
1011 { "there's a number but no volume in " cite$ * warning$ }
1012 'skip$
1013 if$
1014 swap$
1015 ", " bbl.nr * number tie.or.space.prefix pop$ * swap$ *
1016 }
1017 if$ *
1018 eid empty$
1019 { format.journal.pages }
1020 { format.journal.eid }
1021 if$
1022 }
1023
1024 FUNCTION {format.chapter.pages}
1025 { chapter empty$
1026 'format.pages
1027 { type empty$
1028 { bbl.chapter }
1029 { type "l" change.case$
1030 "type" bibinfo.check
1031 }
1032 if$
1033 chapter tie.or.space.prefix
1034 "chapter" bibinfo.check
1035 * *
1036 pages empty$
1037 'skip$
1038 { ", " * format.pages * }
1039 if$
1040 }
1041 if$
1042 }
1043
1044 FUNCTION {format.booktitle}
1045 {
1046 booktitle "booktitle" bibinfo.check
1047 emphasize
1048 }
1049 FUNCTION {format.in.ed.booktitle}
1050 { format.booktitle duplicate$ empty$ 'skip$
1051 {
1052 format.bvolume duplicate$ empty$ 'pop$
1053 { ", " swap$ * * }
1054 if$
1055 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1056 {
1057 bbl.edby
1058 " " * swap$ *
1059 swap$
1060 "," *
1061 " " * swap$
1062 * }
1063 if$
1064 word.in swap$ *
1065 }
1066 if$
1067 }
1068 FUNCTION {format.thesis.type}
1069 { type duplicate$ empty$
1070 'pop$
1071 { swap$ pop$
1072 "t" change.case$ "type" bibinfo.check
1073 }
1074 if$
1075 }
1076 FUNCTION {format.tr.number}
1077 { number "number" bibinfo.check
1078 type duplicate$ empty$
1079 { pop$ bbl.techrep }
1080 'skip$
1081 if$
1082 "type" bibinfo.check
1083 swap$ duplicate$ empty$
1084 { pop$ "t" change.case$ }
1085 { tie.or.space.prefix * * }
1086 if$
1087 }
1088 FUNCTION {format.article.crossref}
1089 {
1090 word.in
1091 " \cite{" * crossref * "}" *
1092 }
1093 FUNCTION {format.book.crossref}
1094 { volume duplicate$ empty$
1095 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1096 pop$ word.in
1097 }
1098 { bbl.volume
1099 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1100 }
1101 if$
1102 " \cite{" * crossref * "}" *
1103 }
1104 FUNCTION {format.incoll.inproc.crossref}
1105 {
1106 word.in
1107 " \cite{" * crossref * "}" *
1108 }
1109 FUNCTION {format.org.or.pub}
1110 { 't :=
1111 ""
1112 address empty$ t empty$ and
1113 'skip$
1114 {
1115 t empty$
1116 { address "address" bibinfo.check *
1117 }
1118 { t *
1119 address empty$
1120 'skip$
1121 { ", " * address "address" bibinfo.check * }
1122 if$
1123 }
1124 if$
1125 }
1126 if$
1127 }
1128 FUNCTION {format.publisher.address}
1129 { publisher "publisher" bibinfo.warn format.org.or.pub
1130 }
1131
1132 FUNCTION {format.organization.address}
1133 { organization "organization" bibinfo.check format.org.or.pub
1134 }
1135
1136 FUNCTION {article}
1137 { output.bibitem
1138 format.authors "author" output.check
1139 author format.key output
1140 format.date "year" output.check
1141 date.block
1142 format.title "title" output.check
1143 end.quote.title
1144 crossref missing$
1145 {
1146 journal
1147 "journal" bibinfo.check
1148 emphasize
1149 "journal" output.check
1150 format.vol.num.pages output
1151 }
1152 { format.article.crossref output.nonnull
1153 format.pages output
1154 }
1155 if$
1156 format.url output
1157 new.sentence
1158 format.note output
1159 fin.entry
1160 }
1161 FUNCTION {book}
1162 { output.bibitem
1163 author empty$
1164 { format.editors "author and editor" output.check
1165 editor format.key output
1166 add.blank
1167 }
1168 { format.authors output.nonnull
1169 crossref missing$
1170 { "author and editor" editor either.or.check }
1171 'skip$
1172 if$
1173 }
1174 if$
1175 format.date "year" output.check
1176 date.block
1177 format.btitle "title" output.check
1178 crossref missing$
1179 { format.bvolume output
1180 format.edition output
1181 format.number.series output
1182 format.publisher.address output
1183 }
1184 {
1185 format.book.crossref output.nonnull
1186 }
1187 if$
1188 format.isbn output
1189 format.book.pages output
1190 format.url output
1191 new.sentence
1192 format.note output
1193 fin.entry
1194 }
1195 FUNCTION {booklet}
1196 { output.bibitem
1197 format.authors output
1198 author format.key output
1199 format.date "year" output.check
1200 date.block
1201 format.title "title" output.check
1202 end.quote.title
1203 howpublished "howpublished" bibinfo.check output
1204 address "address" bibinfo.check output
1205 format.isbn output
1206 format.book.pages output
1207 format.url output
1208 new.sentence
1209 format.note output
1210 fin.entry
1211 }
1212
1213 FUNCTION {inbook}
1214 { output.bibitem
1215 author empty$
1216 { format.editors "author and editor" output.check
1217 editor format.key output
1218 }
1219 { format.authors output.nonnull
1220 crossref missing$
1221 { "author and editor" editor either.or.check }
1222 'skip$
1223 if$
1224 }
1225 if$
1226 format.date "year" output.check
1227 date.block
1228 format.btitle "title" output.check
1229 crossref missing$
1230 {
1231 format.number.series output
1232 format.publisher.address output
1233 format.bvolume output
1234 format.chapter.pages "chapter and pages" output.check
1235 format.edition output
1236 }
1237 {
1238 format.chapter.pages "chapter and pages" output.check
1239 format.book.crossref output.nonnull
1240 }
1241 if$
1242 crossref missing$
1243 { format.isbn output }
1244 'skip$
1245 if$
1246 format.url output
1247 new.sentence
1248 format.note output
1249 fin.entry
1250 }
1251
1252 FUNCTION {incollection}
1253 { output.bibitem
1254 format.authors "author" output.check
1255 author format.key output
1256 format.date "year" output.check
1257 date.block
1258 format.title "title" output.check
1259 end.quote.title
1260 crossref missing$
1261 { format.in.ed.booktitle "booktitle" output.check
1262 format.number.series output
1263 format.publisher.address output
1264 format.edition output
1265 format.chapter.pages output
1266 format.isbn output
1267 }
1268 { format.incoll.inproc.crossref output.nonnull
1269 format.chapter.pages output
1270 }
1271 if$
1272 format.url output
1273 new.sentence
1274 format.note output
1275 fin.entry
1276 }
1277 FUNCTION {inproceedings}
1278 { output.bibitem
1279 format.authors "author" output.check
1280 author format.key output
1281 format.date "year" output.check
1282 date.block
1283 format.title "title" output.check
1284 end.quote.title
1285 crossref missing$
1286 { format.in.ed.booktitle "booktitle" output.check
1287 format.number.series output
1288 publisher empty$
1289 { format.organization.address output }
1290 { organization "organization" bibinfo.check output
1291 format.publisher.address output
1292 }
1293 if$
1294 format.bvolume output
1295 format.pages output
1296 format.isbn output
1297 }
1298 { format.incoll.inproc.crossref output.nonnull
1299 format.pages output
1300 }
1301 if$
1302 format.url output
1303 new.sentence
1304 format.note output
1305 fin.entry
1306 }
1307 FUNCTION {conference} { inproceedings }
1308 FUNCTION {manual}
1309 { output.bibitem
1310 format.authors output
1311 author format.key output
1312 format.date "year" output.check
1313 date.block
1314 format.btitle "title" output.check
1315 organization "organization" bibinfo.check output
1316 address "address" bibinfo.check output
1317 format.edition output
1318 format.url output
1319 new.sentence
1320 format.note output
1321 fin.entry
1322 }
1323
1324 FUNCTION {mastersthesis}
1325 { output.bibitem
1326 format.authors "author" output.check
1327 author format.key output
1328 format.date "year" output.check
1329 date.block
1330 format.btitle
1331 "title" output.check
1332 bbl.mthesis format.thesis.type output.nonnull
1333 school "school" bibinfo.warn output
1334 address "address" bibinfo.check output
1335 format.url output
1336 new.sentence
1337 format.note output
1338 fin.entry
1339 }
1340
1341 FUNCTION {misc}
1342 { output.bibitem
1343 format.authors output
1344 author format.key output
1345 format.date "year" output.check
1346 date.block
1347 format.title output
1348 end.quote.title
1349 howpublished "howpublished" bibinfo.check output
1350 format.url output
1351 new.sentence
1352 format.note output
1353 fin.entry
1354 }
1355 FUNCTION {phdthesis}
1356 { output.bibitem
1357 format.authors "author" output.check
1358 author format.key output
1359 format.date "year" output.check
1360 date.block
1361 format.btitle
1362 "title" output.check
1363 bbl.phdthesis format.thesis.type output.nonnull
1364 school "school" bibinfo.warn output
1365 address "address" bibinfo.check output
1366 format.url output
1367 new.sentence
1368 format.note output
1369 fin.entry
1370 }
1371
1372 FUNCTION {proceedings}
1373 { output.bibitem
1374 format.editors output
1375 editor format.key output
1376 format.date "year" output.check
1377 date.block
1378 format.btitle "title" output.check
1379 format.bvolume output
1380 format.number.series output
1381 publisher empty$
1382 { format.organization.address output }
1383 { organization "organization" bibinfo.check output
1384 format.publisher.address output
1385 }
1386 if$
1387 format.isbn output
1388 format.url output
1389 new.sentence
1390 format.note output
1391 fin.entry
1392 }
1393
1394 FUNCTION {techreport}
1395 { output.bibitem
1396 format.authors "author" output.check
1397 author format.key output
1398 format.date "year" output.check
1399 date.block
1400 format.btitle
1401 "title" output.check
1402 format.tr.number output.nonnull
1403 institution "institution" bibinfo.warn output
1404 address "address" bibinfo.check output
1405 format.url output
1406 new.sentence
1407 format.note output
1408 fin.entry
1409 }
1410
1411 FUNCTION {unpublished}
1412 { output.bibitem
1413 format.authors "author" output.check
1414 author format.key output
1415 format.date "year" output.check
1416 date.block
1417 format.title "title" output.check
1418 end.quote.title
1419 format.url output
1420 new.sentence
1421 format.note "note" output.check
1422 fin.entry
1423 }
1424
1425 FUNCTION {default.type} { misc }
1426 READ
1427 FUNCTION {sortify}
1428 { purify$
1429 "l" change.case$
1430 }
1431 INTEGERS { len }
1432 FUNCTION {chop.word}
1433 { 's :=
1434 'len :=
1435 s #1 len substring$ =
1436 { s len #1 + global.max$ substring$ }
1437 's
1438 if$
1439 }
1440 FUNCTION {format.lab.names}
1441 { 's :=
1442 "" 't :=
1443 s #1 "{vv~}{ll}" format.name$
1444 cite.name.font
1445 s num.names$ duplicate$
1446 #2 >
1447 { pop$
1448 " " * bbl.etal cite.name.font *
1449 }
1450 { #2 <
1451 'skip$
1452 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1453 {
1454 " " * bbl.etal cite.name.font *
1455 }
1456 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1457 cite.name.font
1458 * }
1459 if$
1460 }
1461 if$
1462 }
1463 if$
1464 }
1465
1466 FUNCTION {author.key.label}
1467 { author empty$
1468 { key empty$
1469 { cite$ #1 #3 substring$ }
1470 'key
1471 if$
1472 }
1473 { author format.lab.names }
1474 if$
1475 }
1476
1477 FUNCTION {author.editor.key.label}
1478 { author empty$
1479 { editor empty$
1480 { key empty$
1481 { cite$ #1 #3 substring$ }
1482 'key
1483 if$
1484 }
1485 { editor format.lab.names }
1486 if$
1487 }
1488 { author format.lab.names }
1489 if$
1490 }
1491
1492 FUNCTION {editor.key.label}
1493 { editor empty$
1494 { key empty$
1495 { cite$ #1 #3 substring$ }
1496 'key
1497 if$
1498 }
1499 { editor format.lab.names }
1500 if$
1501 }
1502
1503 FUNCTION {calc.short.authors}
1504 { type$ "book" =
1505 type$ "inbook" =
1506 or
1507 'author.editor.key.label
1508 { type$ "proceedings" =
1509 'editor.key.label
1510 'author.key.label
1511 if$
1512 }
1513 if$
1514 'short.list :=
1515 }
1516
1517 FUNCTION {calc.label}
1518 { calc.short.authors
1519 short.list
1520 "("
1521 *
1522 year duplicate$ empty$
1523 short.list key field.or.null = or
1524 { pop$ "" }
1525 'skip$
1526 if$
1527 *
1528 'label :=
1529 }
1530
1531 FUNCTION {sort.format.names}
1532 { 's :=
1533 #1 'nameptr :=
1534 ""
1535 s num.names$ 'numnames :=
1536 numnames 'namesleft :=
1537 { namesleft #0 > }
1538 { s nameptr
1539 "{ll{ }}{ f{ }}{ jj{ }}"
1540 format.name$ 't :=
1541 nameptr #1 >
1542 {
1543 " " *
1544 namesleft #1 = t "others" = and
1545 { "zzzzz" 't := }
1546 'skip$
1547 if$
1548 t sortify *
1549 }
1550 { t sortify * }
1551 if$
1552 nameptr #1 + 'nameptr :=
1553 namesleft #1 - 'namesleft :=
1554 }
1555 while$
1556 }
1557
1558 FUNCTION {sort.format.title}
1559 { 't :=
1560 "A " #2
1561 "An " #3
1562 "The " #4 t chop.word
1563 chop.word
1564 chop.word
1565 sortify
1566 #1 global.max$ substring$
1567 }
1568 FUNCTION {author.sort}
1569 { author empty$
1570 { key empty$
1571 { "to sort, need author or key in " cite$ * warning$
1572 ""
1573 }
1574 { key sortify }
1575 if$
1576 }
1577 { author sort.format.names }
1578 if$
1579 }
1580 FUNCTION {author.editor.sort}
1581 { author empty$
1582 { editor empty$
1583 { key empty$
1584 { "to sort, need author, editor, or key in " cite$ * warning$
1585 ""
1586 }
1587 { key sortify }
1588 if$
1589 }
1590 { editor sort.format.names }
1591 if$
1592 }
1593 { author sort.format.names }
1594 if$
1595 }
1596 FUNCTION {editor.sort}
1597 { editor empty$
1598 { key empty$
1599 { "to sort, need editor or key in " cite$ * warning$
1600 ""
1601 }
1602 { key sortify }
1603 if$
1604 }
1605 { editor sort.format.names }
1606 if$
1607 }
1608 FUNCTION {presort}
1609 { calc.label
1610 label sortify
1611 " "
1612 *
1613 type$ "book" =
1614 type$ "inbook" =
1615 or
1616 'author.editor.sort
1617 { type$ "proceedings" =
1618 'editor.sort
1619 'author.sort
1620 if$
1621 }
1622 if$
1623 #1 entry.max$ substring$
1624 'sort.label :=
1625 sort.label
1626 *
1627 " "
1628 *
1629 title field.or.null
1630 sort.format.title
1631 *
1632 #1 entry.max$ substring$
1633 'sort.key$ :=
1634 }
1635
1636 ITERATE {presort}
1637 SORT
1638 STRINGS { last.label next.extra }
1639 INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label }
1640 FUNCTION {initialize.extra.label.stuff}
1641 { #0 int.to.chr$ 'last.label :=
1642 "" 'next.extra :=
1643 #0 'last.extra.num :=
1644 "a" chr.to.int$ #1 - 'last.extra.num.blank :=
1645 last.extra.num.blank 'last.extra.num.extended :=
1646 #0 'number.label :=
1647 }
1648 FUNCTION {forward.pass}
1649 { last.label label =
1650 { last.extra.num #1 + 'last.extra.num :=
1651 last.extra.num "z" chr.to.int$ >
1652 { "a" chr.to.int$ 'last.extra.num :=
1653 last.extra.num.extended #1 + 'last.extra.num.extended :=
1654 }
1655 'skip$
1656 if$
1657 last.extra.num.extended last.extra.num.blank >
1658 { last.extra.num.extended int.to.chr$
1659 last.extra.num int.to.chr$
1660 * 'extra.label := }
1661 { last.extra.num int.to.chr$ 'extra.label := }
1662 if$
1663 }
1664 { "a" chr.to.int$ 'last.extra.num :=
1665 "" 'extra.label :=
1666 label 'last.label :=
1667 }
1668 if$
1669 number.label #1 + 'number.label :=
1670 }
1671 FUNCTION {reverse.pass}
1672 { next.extra "b" =
1673 { "a" 'extra.label := }
1674 'skip$
1675 if$
1676 extra.label 'next.extra :=
1677 extra.label
1678 duplicate$ empty$
1679 'skip$
1680 { "{\natexlab{" swap$ * "}}" * }
1681 if$
1682 'extra.label :=
1683 label extra.label * 'label :=
1684 }
1685 EXECUTE {initialize.extra.label.stuff}
1686 ITERATE {forward.pass}
1687 REVERSE {reverse.pass}
1688 FUNCTION {bib.sort.order}
1689 { sort.label
1690 " "
1691 *
1692 year field.or.null sortify
1693 *
1694 " "
1695 *
1696 title field.or.null
1697 sort.format.title
1698 *
1699 #1 entry.max$ substring$
1700 'sort.key$ :=
1701 }
1702 ITERATE {bib.sort.order}
1703 SORT
1704 FUNCTION {begin.bib}
1705 { preamble$ empty$
1706 'skip$
1707 { preamble$ write$ newline$ }
1708 if$
1709 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1710 write$ newline$
1711 "\let\enquote\frquote"
1712 write$ newline$
1713 "\providecommand{\natexlab}[1]{#1}"
1714 write$ newline$
1715 "\providecommand{\url}[1]{\texttt{#1}}"
1716 write$ newline$
1717 "\providecommand{\urlprefix}{}"
1718 write$ newline$
1719 "\providecommand{\doiprefix}{doi: }"
1720 write$ newline$
1721 "\expandafter\ifx\csname href\endcsname\relax"
1722 write$ newline$
1723 " \providecommand{\urldoi}[1]{#1}\else"
1724 write$ newline$
1725 " \providecommand{\urldoi}[1]{\href{https://doi.org/#1}{#1}}\fi"
1726 write$ newline$
1727 "\providecommand{\selectlanguage}[1]{\relax}"
1728 write$ newline$
1729 "\input{francaisbst.tex}" write$ newline$
1730 "\newcommand{\Capitalize}[1]{\uppercase{#1}}" write$ newline$
1731 "\newcommand{\capitalize}[1]{\expandafter\Capitalize#1}" write$ newline$
1732 }
1733 EXECUTE {begin.bib}
1734 EXECUTE {init.state.consts}
1735 ITERATE {call.type$}
1736 FUNCTION {end.bib}
1737 { newline$
1738 "\end{thebibliography}" write$ newline$
1739 }
1740 EXECUTE {end.bib}
1741 %% End of customized bst file
1742 %%
1743 %% End of file `francaissc.bst'.