... 你可能会觉得这是一个奇怪的问题,你是对的,但是有些功能并没有在 TeXworks 的 PDF 查看器中显示出来,工具提示例如。
我试过这个规则,它执行任意的命令行顺序。我添加了最后一行!
!config
# Console rule for arara
# author: Clemens Niederberger
# requires arara 3.0+
identifier: console
name: Console
command: <arara> @{command}
arguments:
- identifier: command
flag: <arara> @{parameters.command}
default: <arara> @{getBasename(file)}.pdf
它没有成功:
Running Console...
I'm sorry, but the command from the 'Console' task could not be
found. Are you sure the command 'testfile.pdf' is correct, or even
accessible from the system path?
C:\texlive\2013\bin\win32\runscript.tlu:650: command failed with exit code 1:
java.exe -jar c:/texlive/2013/texmf-dist/scripts/arara/arara.jar testfile.tex --verbose --log
答案1
好的,我们可以这样做(“但是”......)
% arara: console: { command: cmd /c start FILE.pdf}
这是为的windows
,我确信,Linux 有一个类似物。
这是可行的,这意味着它打开了 AdobeReader,“但是”它给出了:
! I can't write on file `FILE.pdf'.
(Press Enter to retry, or Control-Z to exit; default file extension is `.pdf')
Please type another file name for output:
我不知道我在这里能做得更好。所以我认为,作者应该假设;)
PS:使用原始console
规则:
!config
# Console rule for arara
# author: Clemens Niederberger
# requires arara 3.0+
identifier: console
name: Console
command: <arara> @{command}
arguments:
- identifier: command
flag: <arara> @{parameters.command}