Preamble not found even though it's present in the config file
I'm trying the new 5.x version and when I run arara --preamble minimize_runs foo.tex
with the following config:
!config
# Define key to minimize number of runs.
# Note that we always use batchmode since arara sees pdftex exit code and stops
# without executing further directives only if the exit code of the command was
# not zero (independent of the visibility on the console).
# To use only 120 max lines on linux modify /usr/local/texlive/{year}/texmf.cnf
# as per https://tex.stackexchange.com/a/83608
preambles:
minimize_runs: |
% arara: pdflatex: {interaction: batchmode, synctex: yes, shell: yes,
% arara: --> options: ["-file-line-error"]}
% arara: biber if found('log', 'Please \\(re\\)run Biber on the file')
% arara: --> && found('bcf', 'citekey')
% arara: pdflatex: {interaction: batchmode, synctex: yes,
% arara: --> options: ["-file-line-error"]}
% arara: --> if found('log', 'Please \\(re\\)run Biber on the file')
% arara: --> && found('bcf', 'citekey')
% arara: pdflatex: {interaction: batchmode, synctex: yes, shell: yes,
% arara: --> options: ["-file-line-error"]}
% arara: --> if found('log', '(undefined references|Please rerun|Rerun to get)')
I get the following error:
__ _ _ __ __ _ _ __ __ _
/ _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
\__,_|_| \__,_|_| \__,_|
ERROR
I am sorry, but the preamble 'minimize_runs' could not be found.
Please make sure this key exists in the configuration file.
I tried changing the name of the preamble and used the twopdftex
example in page 44 of the manual but still get the same error.
I checked that the config file was being read (by adding some works before the !config
line) and correctly get:
java.lang.Exception: Configuration should start with !config
So I guess there is some problem with the parsing of the preambles
key.
Edited by Ben Frank