|
1 | 1 | %% Template: Template LaTeX |
2 | 2 | %% Documento: Estilo elsarticle numerado + url (doi, arxivId) [es] |
3 | | -%% Versión: 1.6 (23/08/2024) |
| 3 | +%% Versión: 1.7 (06/11/2025) |
4 | 4 | %% Codificación: UTF-8 |
5 | 5 | %% |
6 | 6 | %% Autor: Pablo Pizarro R. |
@@ -66,6 +66,7 @@ STRINGS { |
66 | 66 | longest.label |
67 | 67 | s |
68 | 68 | t |
| 69 | + shortlabel |
69 | 70 | } |
70 | 71 |
|
71 | 72 | % ----------------------------------------------------------------------------- |
@@ -244,16 +245,6 @@ FUNCTION {new.sentence.checka} { |
244 | 245 | if$ |
245 | 246 | } |
246 | 247 |
|
247 | | -FUNCTION {output.bibitem} { |
248 | | - newline$ |
249 | | - "\backrefparscanfalse" write$ |
250 | | - newline$ |
251 | | - "\bibitem{" write$ cite$ write$ "}" write$ |
252 | | - newline$ |
253 | | - "" |
254 | | - before.all 'output.state := |
255 | | -} |
256 | | - |
257 | 248 | FUNCTION {output.links} { |
258 | 249 | doi empty$ { |
259 | 250 | arxivId empty$ { |
@@ -516,6 +507,57 @@ FUNCTION {format.editors} { |
516 | 507 | } if$ |
517 | 508 | } |
518 | 509 |
|
| 510 | +FUNCTION {shortlabel.build} { |
| 511 | + author empty$ { |
| 512 | + editor empty$ { |
| 513 | + "" 'shortlabel := |
| 514 | + }{ |
| 515 | + editor num.names$ 'numnames := |
| 516 | + numnames #1 = { |
| 517 | + editor #1 "{vv~}{ll}" format.name$ 'shortlabel := |
| 518 | + }{ |
| 519 | + numnames #2 = { |
| 520 | + editor #1 "{vv~}{ll}" format.name$ 't := |
| 521 | + editor #2 "{vv~}{ll}" format.name$ 's := |
| 522 | + t " y " * s * 'shortlabel := |
| 523 | + }{ |
| 524 | + editor #1 "{vv~}{ll}" format.name$ " {\em et~al.}" * 'shortlabel := |
| 525 | + } if$ |
| 526 | + } if$ |
| 527 | + } if$ |
| 528 | + }{ |
| 529 | + author num.names$ 'numnames := |
| 530 | + numnames #1 = { |
| 531 | + author #1 "{vv~}{ll}" format.name$ 'shortlabel := |
| 532 | + }{ |
| 533 | + numnames #2 = { |
| 534 | + author #1 "{vv~}{ll}" format.name$ 't := |
| 535 | + author #2 "{vv~}{ll}" format.name$ 's := |
| 536 | + t " y " * s * 'shortlabel := |
| 537 | + }{ |
| 538 | + author #1 "{vv~}{ll}" format.name$ " {\em et~al.}" * 'shortlabel := |
| 539 | + } if$ |
| 540 | + } if$ |
| 541 | + } if$ |
| 542 | +} |
| 543 | + |
| 544 | +FUNCTION {output.bibitem} { |
| 545 | + newline$ |
| 546 | + "\backrefparscanfalse" write$ |
| 547 | + newline$ |
| 548 | + shortlabel.build |
| 549 | + "\bibitem[" write$ |
| 550 | + "\protect\citeauthoryear{" write$ |
| 551 | + shortlabel write$ |
| 552 | + "}{" write$ |
| 553 | + year empty$ { "" write$ } { year write$ } if$ |
| 554 | + "}]" write$ |
| 555 | + "{" write$ cite$ write$ "}" write$ |
| 556 | + newline$ |
| 557 | + "" |
| 558 | + before.all 'output.state := |
| 559 | +} |
| 560 | + |
519 | 561 | FUNCTION {format.in.ed.booktitle} { |
520 | 562 | booktitle empty$ { |
521 | 563 | "" |
|
0 commit comments