<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Aux2bib</id>
	<title>Aux2bib - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Aux2bib"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Aux2bib&amp;action=history"/>
	<updated>2026-05-13T18:44:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Aux2bib&amp;diff=1228&amp;oldid=prev</id>
		<title>Adk44: Created page with &quot;&#039;&#039;&#039;aux2bib&#039;&#039;&#039; is part of the bibtools package, which you can obtain [https://ctan.org/pkg/bibtools here]. As you might be able to guess from the name, it takes a .aux file fro...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Aux2bib&amp;diff=1228&amp;oldid=prev"/>
		<updated>2019-05-13T09:32:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;aux2bib&amp;#039;&amp;#039;&amp;#039; is part of the bibtools package, which you can obtain [https://ctan.org/pkg/bibtools here]. As you might be able to guess from the name, it takes a .aux file fro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;aux2bib&amp;#039;&amp;#039;&amp;#039; is part of the bibtools package, which you can obtain [https://ctan.org/pkg/bibtools here]. As you might be able to guess from the name, it takes a .aux file from a latex compilation and creates a new bib file called references.bib which contains only the entries required by the corresponding .tex file. In this case, I&amp;#039;m going to consider a tex files called FILE.tex located at ~/test/FILE.tex&lt;br /&gt;
&lt;br /&gt;
Once you extract the perl scripts you need to make them executable using &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod +x aux2bib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You also need to copy the style files the script uses to the directory containing your tex file. While in the bibtools directory,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp subset* ~/test&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
There is one possible issue that you could run into when your document uses multiple bib files. If you have the same reference in more than one of those bib files, bibtex will throw a warning. This isn&amp;#039;t a problem for the latex compilation as it just continues, but the aux2bib script requires bibtex to exit flawlessly. A good way to check this is just to run bibtex yourself before aux2bib, i.e. for FILE.tex&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bibtex FILE.tex&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
should exit without ANY problems. If you do have multiple references, you can just delete one of the duplicates and all will be well.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve made references.bib, make sure you change its name to something more suitable and also change the bibliography environment in your .tex file to point at it!&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE: You may have problems running the script because of a &amp;#039;bad interpreter&amp;#039;. This just means it can&amp;#039;t find perl so just use&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
perl aux2bib FILE.aux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adk44</name></author>
	</entry>
</feed>