Debian Codegraph @

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

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