I have bibtex file. I want to run only bibtex without pdflatex. I know that bibtex will use aux file which can be generated by pdflatex.But Is there any some other way to run bib file on .bst file. Because I want my bib file to be styled as .bst file template. So, how to run bib file to get reference with defined structure.(command something like: bibtex filename). I dont have tex file. Just I want to run only bibtex file. And I don't need citations,just the structured reference is more than enough. Pls help!
[Tex/LaTex] How to run bibtex without latex
bibtexpdftex
Related Solutions
An empty plainnat.bst
file is unusual. Double check the file; run in a terminal
kpsewhich plainnat.bst
to find the location of the file in your system and check the contents of that file. If, for some reason, it was accidentally deleted or overwritten, you can find the file in CTAN: plainnat.bst
If you don't know too much about editing BST files, perhaps the declaration of the different publication types is the least error-prone way. At the very end of your testplainnat.bst
-file you have functions for each doctype like:
FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
author format.key output
new.block
format.title "title" output.check
new.block
crossref missing$
{ journal emphasize "journal" output.check
eid empty$
{ format.vol.num.pages output }
{ format.vol.num.eid output }
if$
format.date "year" output.check
}
{ format.article.crossref output.nonnull
eid empty$
{ format.pages output }
{ format.eid output }
if$
}
if$
format.isbn output
format.issn output
format.doi output
format.url output
new.block
note output
fin.entry
}
So the interesting part is
format.isbn output
format.issn output
format.doi output
format.url output
new.block
A IF-ELSE-Statement for "use doi or url or issn" looks like:
format.isbn output
format.doi empty$
{
format.url output empty$
{
format.issn output empty$
}
{
format.url output
}
}
{
format.doi output
}
if$
new.block
I think you get the idea from this example. So basically it is
<value to test> empty$
{<run this cmd if empty>}
{<run this cmd if not empty>}
and a bit of nesting.
Of course you would need to repeat this for every doctype (like FUNCTION {book}
etc.), but this is easier to handle than changing the format.* functions themselves.
(And this from someone that finds it easy to change bst files but has real issues adapting a biblatex style).
Best Answer
Let us assume you have the following files/setup:
mybibstyle.bst
mybibliography.bib
Create a file
myfile.aux
containing the following:This is literally the output from compiling the following minimal example:
Now run
which reads
mybibliography.bib
,myfile.aux
andmybibstyle.bst
and creates the filemyfile.bbl
containing thethebibliography
environment based onmybibstyle.bst
.