BibTeX, biblatex and biberRun BibTeX from Notepad++

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Run BibTeX from Notepad++

Post by zach »

This is my third question posted to the board, and I must say I've been impressed with the quickness and accuracy of the responses. Thank you all very much.

My question this time: Does anyone know how to configure a script or run command to run BibTeX from within Notepad++? Currently, I have a run command to execute PDFLaTeX on the current file. But, that does not compile my bibliography. So, I have to switch to WinEDT to do that. However, I'd prefer to do all of my editing and compiling in Notepad++. Does anyone know how to do this?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Run BibTeX from Notepad++

Post by zach »

This problem has been solved, with the help of Jelmer Ypma. His page contains a script he wrote to integrate Notepad++ with LaTeX and BibTeX:

http://www.ucl.ac.uk/~uctpjyy/downloads.html

His code didn't work for me right out of the box. I had to modify the script to the code pasted below. I incorporated the PDFLaTex, BibTeX, PDFLaTeX, PDFLaTeX strategy that many people use for compiling documents. This script was simply saved and then called with a hotkey created in Notepad++.

I hope others will find this useful. If anyone needs a more detailed explanation, please let me know.

Code: Select all

cd "$(FULL_CURRENT_PATH)"
C:\...\pdflatex.exe -interaction=nonstopmode "$(FULL_CURRENT_PATH)"
C:\...\bibtex.exe "$(CURRENT_DIRECTORY)\$(NAME_PART)"
C:\...\pdflatex.exe -interaction=nonstopmode "$(FULL_CURRENT_PATH)"
C:\...\pdflatex.exe -interaction=nonstopmode "$(FULL_CURRENT_PATH)"
"C:\...\Adobe.exe" "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"
Post Reply