Just for completeness, a very nice and free client for working with a bibtex database is JabRef, which is available for MacOS, Linux and Windows.
If you work with TeXShop and use bibtex, compiling your document is quite hard work: first you need to set the texmode to "LaTeX", compile it, set it to "bibtex", compile it, set it back to "LaTeX" compile it. Indeed, a lot to point and click. The following tip will add an entry to your TeXShop called "lat-bib-lat", which does exactly this procedure for you:
- Open "Terminal". This will give you the nerdy mysterious window with the cursor line.
- Type in (or copy this line, and do a ctrl+click at the cursor position and paste it) and press return afterwards
cd Library/TeXShop/Engines/This changes the console to the folder Library/TeXShop/Engines in your home folder.
- Create a file named lat-bib-lat.engine in that specific folder by casting the following command closed by the return key in the terminal window
vi lat-bib-lat.engineThis creates the file and opens it in a console text editor, so you will see nothing than a cursor with many tildes below.
- Press the "i"-key once. In the last line of the window "-Insert-" should appear (so you just switched the text editor to insert mode)
- Copy the following stuff and paste it by an ctrl + click at the cursor position in the Terminal
#!/bin/bashThis is a so-called script which does exactly what you want: execute latex, do bibtex and execute latex again.
for file in *.aux ; do
- Press the "Esc" key (which ends the insert mode) and write ":wq" (without quotation marks) followed by a keystroke of return which tells the editor to Write the file and Quit. You now should be back at the console as it was before the "vi"-command.
- Make the script executable with the command (press return at the end)
sudo chmod a+x lat-bib-lat.engineYou will be prompted for your password. Sudo is the command to become SUperuser and DO the following command. The command chmod a+x makes the file executable (x) for all.
- Restart TeXShop - you will now find an entry called lat-bib-lat. If you choose it, your document will be latexed, bibtexed and latexed again
Apparently you need two runs of pdflatex in order to get the correct citations, so the script does two calls of pdflatex after calling bibtex.
The lat-bib-lat.engine can be found in the drop-down menu where you can choose the profile to be run as can be seen here: