Closed moewew closed 4 years ago
Sorry, to bother you again, I tried with
FUNCTION { format.names.loop } {
{ remaining.names.int #0 > }
{
names.str current.name.int "{vv~}{ll,}{~f.}{,~jj}" format.name$
duplicate$
'current.name.str :=
current.name.int #1 >
{
duplicate$
"others," =
{
pop$
add.space
bbl.etal
add.space
remaining.names.int #1 - 'remaining.names.int :=
}
{
swap$
names.separate.comma.bool
{ add.comma }
{ add.semicolon }
if$
swap$
*
}
if$
}
{ }
if$
remaining.names.int #1 - 'remaining.names.int :=
current.name.int #1 + 'current.name.int :=
}
while$
}
as in https://github.com/josephwright/achemso/commit/e183d869805269a35122afe67ba1041dc23f2768 and still get
The top-level auxiliary file: doesnsthwows.aux The style file: achemso-etal.bst Database file #1: doesnsthwows.bib achemso 2018/02/05 v3.11a ptr=1, stack= ---the literal stack isn't empty for entry yan2016nonlinear while executing---line 1702 of file achemso-etal.bst (There was 1 error message)```
with the MWE above.
I think the second add.space
could just be a *
.
Try now :)
Better ... no error now, but I get
Yan,~W.; Guo,~P.; Li,~Z. , \latin{et~al.} Nonlinear and robust statistical
in the .bbl
which causes a space before the comma
Even better now. I just noticed that the final add.space
seems superfluous now, since the .bbl
has two spaces with it.
And the output with semicolons is
Yan, W.; Guo, P.; Li, Z., et al.
which looks a bit weird, but then again "Yan, W.; Guo, P.; Li, Z.; et al." would also look massively weird.
https://doi.org/10.1021/bk-2006-STYG.ch014, p. 291 says
Some publications list the first 10 authors followed by a semicolon and et al.; check the guidelines.
@moewew I'm going to check properly over what the ACS do in these cases and refine the code
See https://tex.stackexchange.com/q/440148/35864
The MWE
Leaves BibTeX complaining
The problem seems to be in
https://github.com/josephwright/achemso/blob/121ac790b8d6751219619023cd2717ca82e98e49/achemso.dtx#L5119-L5157
specifically
https://github.com/josephwright/achemso/blob/121ac790b8d6751219619023cd2717ca82e98e49/achemso.dtx#L5129-L5133
which should probably be closer to
The patch
seemed to work for me.