BibTeX, biblatex and biberBibTeX style formatting not working

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
alex2747
Posts: 18
Joined: Mon Apr 05, 2010 10:39 pm

BibTeX style formatting not working

Post by alex2747 »

Hi,

I have tried to do some bibtex formatting myself, but without much of success. However, as far as I understood, the following below should give a well-formatted string as output (with format.eprint, using the fields eprint, archivePrefix and primaryClass). But when I run bibtex on my file, it just prints out nothing, although each of these fields (eprint, archivePrefix and primaryClass) are defined. Maybe I am doing something basically wrong, missing a * or a '?

I would appreciate any help on the issue.

Thanks
Alex

Code: Select all

FUNCTION {format.archive}
{
  archivePrefix empty$
      { "" }
      { archivePrefix ":" *}
  if$            
}

FUNCTION {format.primaryClass}
{
  primaryClass empty$
      { "" }
      { " [" primaryClass * "]" *}
  if$            
}

FUNCTION {format.eprint}
{ eprint empty$
     { "" }
     {format.archive eprint * format.primaryClass * }
  if$    
}
Last edited by alex2747 on Fri Aug 27, 2010 12:52 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Re: BibTeX style formatting not working

Post by olofos »

The functions look correct bu do not output anything, they just put a string on the stack. To output this string to the .bbl file you need to use the write$ function. Since you only posted a short snippet, I can't tell if you actually did that. To find the actual error I would need to see the full style file.

Olof
alex2747
Posts: 18
Joined: Mon Apr 05, 2010 10:39 pm

Re: BibTeX style formatting not working

Post by alex2747 »

Hi,

thanks for looking at that snippet, to assure it looks correct.
I made some more tests myself and found out, that the fields 'archivePrefix' and 'primaryClass' were not defined at the beginning of the bst file (because I had no idea that this is required). By doing so, I got it to work.

Thanks,
Alex

P.S. Do you have maybe one or two links to where I can find explained examples on how to develop the personal bst file? That would be very helpful... :)
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

BibTeX style formatting not working

Post by localghost »

Marking a topic as solved means to edit the initial post and not the last one as clearly described in the Board Rules.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

BibTeX style formatting not working

Post by olofos »

I don't know on any complete examples (apart from any style file that comes with your TeX distribution), but for as a reference for the language I like »Tame the BeaST« and of course the original documentation by Oren Patashnik, which is available in the TeX distribution under the name »btxhak« (on TeX Live you find it by running "texdoc btxhak").
Post Reply