1

Where is the function for add.period in apacite?. I checked apacite.bst, but didn't find any function for add.period. but it is used throughout the bst. Where did it came from?

1 Answer 1

2

It's important to note that it's not add.period, but add.period$. The final $ indicates that it's a BibTeX built-in function. Page 33 of Tame the BeaST (texdoc tamethebeast) explains add.period$:

𝓢 <code>add.period$</code> -> adds a period at the end of string 𝓢, except if 𝓢 already ends with a period, or an exclamation or question mark (after removing right braces)

where 𝓢 is a string.

And, if you're interested in the implementation:

enter image description here

4
  • 1
    Got it!. Didn't find this PDF . I checked with texdoc bibtex. But Gotta another PDF :)
    – Samjith
    Commented May 14, 2019 at 11:18
  • 1
    @TVMBoy texdoc bibtex brings up the BibTeX documentation, which is more of a utilisation guide. The reference to BibTeX programming, in my opinion, is Tame the BeaST (texdoc tamethebeast). Commented May 14, 2019 at 11:22
  • Yeh!. Got it!. thanks
    – Samjith
    Commented May 14, 2019 at 11:35
  • 1
    btxhak also documents the built-ins, but the list in tamethebeast might be more convenient.
    – moewe
    Commented May 14, 2019 at 13:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .