I have a rule which worked with the previous version of arara
:
!config
# Open the every <filename>.<format> that can be opened
# The default for <filename> is the current file.
# The default for <format> is pdf.
#
# Sample usage:
# - if myfile.tex is the current file, all these open myfile.pdf
# % arara: showfile
# % arara: showfile: {format: pdf}
# % arara: showfile: {filename: myfile, format: pdf}
# and both these open myfile.log:
# % arara: showfile: {format: log}
# % arara: showfile: {filename: myfile, format: log}
#
identifier: showfile
name: Display
commands:
- name: Show file
command: >
@{
prefix = isWindows( [ 'cmd', '/c', 'start' ], [ 'xdg-open' ] );
view = getBasename(reference) + '.' + format;
return getCommand(prefix, view);
}
arguments:
- identifier: format
flag: >
@{
return parameters.format;
}
default: pdf
Now, if I try it with prova.tex:
% arara: pdflatex
% arara: showfile
% arara: showfile: {format: log}
\documentclass{article}
\begin{document}
My rule does not work anymore
\end{document}
I get the error:
Impossible to find the file "prova.[pdf]"