I made the custom bibliography using latex makebst that gives output as desired
Vergara-Buenaventura, A. and Castro-Ruiz, C. (2020). Use of mouthwashes
against covid-19 in dentistry. British Journal of Oral and Maxillofacial
Surgery 58:924–927.
I want to add period after the name of journal. How should I edit stylefile ( .BST file) to include period at theend of journal name.
LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Custom style bibliography
-
- Posts: 684
- Joined: Tue Mar 25, 2008 5:02 pm
Custom style bibliography
What you are asking for is highly unusual, which is why makebst doesn't ask you whether you want a period after the journal title.
If you really want that, you can find the function "article" in your BST file and there should be a line that says something like
or perhaps just
You can insert a period before the blank by putting
before the "add.blank" line. In the second example, replace " " with ". "
Note that BibTeX is a stack-based language, meaning doing something like 2 + 2 = 4 would be coded as "2 2 + write$ newline$"; similarly, writing "hello, world!" could be coded as ' "hello" " " * "world" * "!" * write$ newline$' or perhaps '"hello" " " "world" "!" * * * write$ newline$'
If it needs to be more complicated than that or you have trouble, check out
tamethebeast (Tame the BeaST: The B to X of BibTeX) by Nicolas Markey.
If you really want that, you can find the function "article" in your BST file and there should be a line that says something like
"journal" bibinfo.check add.blank
or perhaps just
journal " " *
You can insert a period before the blank by putting
add.period$ write$
before the "add.blank" line. In the second example, replace " " with ". "
Note that BibTeX is a stack-based language, meaning doing something like 2 + 2 = 4 would be coded as "2 2 + write$ newline$"; similarly, writing "hello, world!" could be coded as ' "hello" " " * "world" * "!" * write$ newline$' or perhaps '"hello" " " "world" "!" * * * write$ newline$'
If it needs to be more complicated than that or you have trouble, check out

Return to “BibTeX, biblatex and biber”
Who is online
Users browsing this forum: No registered users and 5 guests