BibTeX, biblatex and biberCustom style bibliography

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

Custom style bibliography

Post by riffat_1982 »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Custom style bibliography

Post by kaiserkarl13 »

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

Code: Select all

"journal" bibinfo.check
add.blank
or perhaps just

Code: Select all

journal " " *
You can insert a period before the blank by putting

Code: Select all

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.
Post Reply