I have a rule which worked with the old 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: showfile
commands:
- <arara> @{ isWindows( "cmd /c start", "xdg-open" ) } "@{ getBasename(file) }.@{format}"
arguments:
- identifier: format
flag: <arara> @{parameters.format}
default: pdf
According to New version of arara broke my custom rule I have changed it into:
!config
identifier: showfile
name: showfile
commands:
- command: <arara> @{ isWindows( "cmd /c start", "xdg-open" ) } "@{ getBasename(file) }.@{format}"
arguments:
- identifier: format
flag: <arara> @{parameters.format}
default: pdf
But if I run
arara main.tex
on a simple main.tex:
% arara: pdflatex
% arara: showfile
\documentclass{article}
\begin{document}
Test
\end{document}
I only get:
and the main.pdf is not shown.
The task remains appended, and if I close the command prompt windows, I get:
Processing 'main.tex' (size: 98 bytes, last modified: 12/15/2018
19:40:31), please wait.
(PDFLaTeX) PDFLaTeX engine .............................. SUCCESS
(showfile) Unnamed task ................................. SUCCESS
Total: 339.97 seconds
<<< Process finished (PID=9956). (Exit code 0)
================ READY ================

:)– Paulo Cereda Dec 15 '18 at 19:30