
Tengo un problema al compilar bibunits. Incluso el ejemplo más sencillo (bastante similar al publicado en la documentación oficial de este paquete) no funciona:
\documentclass[english,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{bibunits}
\begin{document}
\begin{bibunit}[plain]
I want to cite two works, the first one~\cite{Dub1} and the second one~\cite{Dub2}.
\putbib[mybib]
\end{bibunit}
\begin{bibunit}[alpha]
I want to cite only work, that is~\cite{Har}.
\putbib[mybib]
\end{bibunit}
\end{document}
Hay 3 errores:
I found no \citation commands---while reading file bibunittest1.aux
I found no \bibdata command---while reading file bibunittest1.aux
I found no \bibstyle command---while reading file bibunittest1.aux
Además, si quiero hacer algo como eso:
\documentclass[english,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\begin{document}
I want to cite two works, the first one~\cite{Dub1} and the second one~\cite{Dub2}.
I want to cite only work, that is~\cite{Har}.
\bibliographystyle{plain}
\bibliography{mybib}
\end{document}
Entonces, sin usar el paquete, todo está bien. Estaré muy agradecido por tu ayuda.
Respuesta1
Perdón por mi inglés. No soy un hablante nativo.
Para compilar su documento necesita ejecutar 5 procesos diferentes (consulte la documentación de bibunits
, página 2): latex bibunittest1, bibtex bu1, bibtex bu2, latex bibunittest1, latex bibunittest1. Utilizo TeXMaker y QuickBuild Wisard (haciendo clic consecutivamente en LaTeX, BiBTeX, BiBTeX, LaTeX, LaTeX) para producir la siguiente cadena:
latex -interaction=nonstopmode %.tex|bibtex %|bibtex %|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex
Luego reemplacé manualmente los signos de dos por ciento con bu1
y bu2
:
latex -interaction=nonstopmode %.tex|bibtex bu1|bibtex bu2|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex
Este comando ha producido exitosamente un .dvi
archivo.