[OS X TeX] TeXShop and Bibunits engine
Joshua Smith
joshua.smith at ucsf.edu
Mon May 14 19:51:53 EDT 2007
On May 14, 2007, at 4:19 PM, Peter Dyballa wrote:
> #!/bin/tcsh
> foreach auxfile (bu*.aux)
> set afile = "`basename $auxfile .aux`"
> echo bibtex $afile
> bibtex "$afile"
> end
>
> should work, even if the file names have spaces (without you can
> remove the QUOTATION MARKs).
I tried put these lines into an engine, but they seem to only process
bu1.aux. In the console, I only get:
bibtex bu1
This is BibTeX, Version 0.99c (Web2C 7.5.6)
The top-level auxiliary file: bu1.aux
The style file: plain.bst
Database file #1: sample.bib
For a sample TeX document, I have:
\documentclass{article}
\usepackage{bibunits}
\begin{document}
\section{First}
\begin{bibunit}
Article 1 \cite{Abbott:2004}. Article 2 \cite{AbousleimanEtAl:1996}
\putbib
\end{bibunit}
\section{Second}
\begin{bibunit}
Article 3 \cite{Akin:1982}
\putbib
\end{bibunit}
\end{document}
where the bib file contains:
@ARTICLE{Abbott:2004,
author = "N. Joan Abbott",
title = "Evidence for Bulk Flow of Brain Interstitial Fluid:
Significance for Physiology and Pathology",
journal = "Neurochemistry International",
volume = "45",
pages = "545--562",
year = "2004",
}
@ARTICLE{AbousleimanEtAl:1996,
author = "Y. Abousleiman and A. H.-D. Cheng and L. Cui and E.
Detournay and J.-C. Roegiers",
title = "Mandel's Problem Revisited",
journal = "G\'eotechnique",
volume = "46",
pages = "187--195",
year = "1996",
}
@BOOK{Akin:1982,
author = "J. E. Akin",
title = "Application and Implementation of Finite Element Methods",
publisher = "Academic Press",
address = "London",
year = "1982",
}
Thanks,
Josh
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list