我将文件更改为我的参考xelatx.yaml
:
!config
identifier: xelatex
name: XeLaTeX
authors:
- Paulo
commands:
- name: XeLaTeX engine
command: >
@{
if (isEmpty(directory)) {
return getCommand('xelatex', interaction, shell,
synctex, options, reference);
}
else {
return getCommandWithWorkingDirectory(directory, 'xelatex',
interaction, shell, synctex, options, reference);
}
}
arguments:
- identifier: interaction
flag: >
@{
if ([ 'batchmode', 'nonstopmode', 'scrollmode',
'errorstopmode' ].contains(parameters.interaction)) {
return '--interaction='.concat(parameters.interaction);
}
else {
throwError('The provided interaction value is not valid.');
}
}
- identifier: shell
flag: >
@{
isTrue(parameters.shell, '--shell-escape', '--no-shell-escape')
}
- identifier: synctex
flag: >
@{
isTrue(parameters.synctex, '--synctex=1', '--synctex=0')
}
- identifier: options
flag: >
@{
if (isList(parameters.options)) {
return parameters.options;
}
else {
throwError('I was expecting a list of options.');
}
}
- identifier: directory
flag: >
@{
return parameters.directory;
}
我的 TeX 文件中的标题:
% arara: xelatex: {
% arara: --> shell: yes,
% arara: --> synctex: yes,
% arara: --> directory: subdir,
% arara: --> files: [ dok-ext-01.tex,dok-ext-01.tex,dok-ext-01.tex,
% arara: --> dok-ext-02.tex, dok-ext-02.tex,dok-ext-02.tex,
% arara: --> dok-ext-03.tex, dok-ext-03.tex, dok-ext-03.tex
% arara: --> ]
% arara: --> }
% arara: xelatex: {
% arara: --> shell: yes,
% arara: --> synctex: yes,
% arara: --> files: [maintex, main.tex, main.tex] }
我有
XeLaTeX 引擎故障
我无法解决这个问题。
答案1
啊,路途艰辛。:)
您已经接近找到解决方案了!替换reference
为reference.getName()
,它应该可以再次工作:
!config
identifier: xelatex
name: XeLaTeX
authors:
- Paulo
commands:
- name: XeLaTeX engine
command: >
@{
if (isEmpty(directory)) {
return getCommand('xelatex', interaction, shell,
synctex, options, reference.getName());
}
else {
return getCommandWithWorkingDirectory(directory, 'xelatex',
interaction, shell, synctex, options, reference.getName());
}
}
arguments:
- identifier: interaction
flag: >
@{
if ([ 'batchmode', 'nonstopmode', 'scrollmode',
'errorstopmode' ].contains(parameters.interaction)) {
return '--interaction='.concat(parameters.interaction);
}
else {
throwError('The provided interaction value is not valid.');
}
}
- identifier: shell
flag: >
@{
isTrue(parameters.shell, '--shell-escape', '--no-shell-escape')
}
- identifier: synctex
flag: >
@{
isTrue(parameters.synctex, '--synctex=1', '--synctex=0')
}
- identifier: options
flag: >
@{
if (isList(parameters.options)) {
return parameters.options;
}
else {
throwError('I was expecting a list of options.');
}
}
- identifier: directory
flag: >
@{
return parameters.directory;
}
希望能帮助到你!