Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to create a publications list (sorted by patents, journal papers, & book chapters) for my CV and seems that bibunits is useful for this. However, I can't get it work. Below is the latex code I am using in eclipse editor & viewing the pdf file. Help me please with simple explanation (I am new to LaTeX & don't know much about computer languages).

\documentclass{article}
\usepackage{bibunits}

\begin{document}
\begin{bibunit}[plain]
    some text \cite{p1} more text more citations !
    \putbib[texlit]
\end{bibunit}    
\end{document}
share|improve this question
    
Welcome to TeX.SE. –  Peter Grill Nov 18 '12 at 4:36

1 Answer 1

I am not sure about eclipse, but bibunut requires to call several times bibtex one for each (bib)unit, i.e., bibtex buX, where X is a number corresponding to a bibunit. After that one can have a final call to LaTeX.

You can open the terminal (prompt, command line) and then run

pdflatex file
bibtex bu1
...
bibtex buN
pdflatex file

Where file is the name of your LaTeX file.

share|improve this answer
    
Thanks Guido. It's working now. In TeXworks, I first ran file.tex with "pdfLaTeX+MakeIndex+BibTeX". Second, I ran the bu1,aux file with BibTeX. Then I ran the file.tex with "pdfLaTeX+MakeIndex+BibTeX". It's time consuming to do it manually. Is there a way to automate this task in TeXworks? –  Jay Nov 18 '12 at 8:13
    
If you don't have an index you do not have to run makeindex. Also after you run bibtex on the various bibunits, you do not have to run bibtex again. Definitely you can create a script to automate the workflow: a possibility would be to use arara. –  Guido Nov 18 '12 at 8:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.