我想arara
知道是否可以在指令中传递通配符指令。
当我使用 bibunits 时,我希望对我的 bu*.aux 文件进行动态编译,因为当我注释掉不同的部分时,文件的数量会不断变化。
除了将 arara 指向一个自定义脚本,该脚本用于调用bibtex
所有生成的文件的 for 循环之外bu*.aux
,arara 是否具有我忽略的允许这样做的功能/工具?即我认为这与这个问题类似: Arara 规则使用通配符删除文件和删除外部/辅助文件?但是,我不确定是否可以修改自定义例程(该例程提供用户指定的要清理的文件扩展名列表)以适用于 bibunits 文件。我在 MWE arara 编译序列中注释掉了链接问题中的行,我想知道如何编写一条规则来处理类似的逻辑。
% arara: xelatex: {synctex: yes}
% arara: bibtex: { files: [ bu1, bu2] }
% !arara: bibtex: { files: [ bu*] }
% !clean: { extensions: [aux, bbl, bcl, blg <and more>] }
% arara: xelatex: {synctex: yes}
% arara: xelatex: {synctex: yes}
\documentclass[10pt]{article}
\usepackage[numbers,square,comma,sort&compress]{natbib}
\usepackage{bibunits} % This package must be loaded after natbib
\defaultbibliographystyle{plain}% removes URL additions
\renewcommand{\bibsection}{\section*{\bibname}\markboth{\leftmark}{\bibname}}
\usepackage{filecontents}
\begin{filecontents*}{TopicOne.bib}
@inproceedings{entry1,
author = {Author name},
address = {address},
booktitle = {A book},
title = {The book title},
year = {2015},
}
\end{filecontents*}
\begin{filecontents*}{TopicTwo.bib}
@article{entry2,
author = {Author name},
journal = {A Journal},
title = {The article title},
year = {2013},
}
\end{filecontents*}
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
\section{Topic One}
Real text that descibes the scope of the forthcoming bibliography would be here:
\bibliography{TopicOne}
\begin{bibunit}
\nocite{*}
\putbib[TopicOne]
\end{bibunit}
\section{Topic Two}
Real text that descibes the scope of the forthcoming bibliography would be here for the next topic:
\bibliography{TopicTwo}
\begin{bibunit}
\nocite{*}
\putbib[TopicTwo]
\end{bibunit}
\end{document}