LaTeX forum ⇒ BibTeX, biblatex and biberCustom style bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Posts: 4
Joined: Sat May 20, 2023 10:32 am

Custom style bibliography

Postby riffat_1982 » Sun May 21, 2023 9:05 pm

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

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.

Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook
Posts: 684
Joined: Tue Mar 25, 2008 5:02 pm

Custom style bibliography

Postby kaiserkarl13 » Fri May 26, 2023 4:05 pm

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
"journal" bibinfo.check

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 tamethebeast (Tame the BeaST: The B to X of BibTeX) by Nicolas Markey.

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 5 guests