[Tex/LaTex] How to run bibtex without latex

bibtexpdftex

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!

Best Answer

Let us assume you have the following files/setup:

  • mybibstyle.bst

  • mybibliography.bib

Create a file myfile.aux containing the following:

\relax 
\citation{*}
\bibstyle{mybibstyle}
\bibdata{mybibliography}

This is literally the output from compiling the following minimal example:

\documentclass{article}
\begin{document}
\nocite{*}
\bibliographystyle{mybibstyle}
\bibliography{mybibliography}
\end{document}

Now run

bibtex myfile

which reads mybibliography.bib, myfile.aux and mybibstyle.bst and creates the file myfile.bbl containing the thebibliography environment based on mybibstyle.bst.