问题

问题

问题

我正在尝试切换到使用arara而不是非常复杂的makefile。我遇到了一个问题arara告诉我目录无效,我需要修复它。我遇到的主要问题是我无法弄清楚哪个目录无效。我帮助配置该工具来告诉我main.tex文件(或任何文件)的哪一行导致arara停止。

错误日志

Welcome to arara 7.0.3!
-----------------------------------------------------------------
20 Jun 2022 15:13:11.594 DEBUG - 
::: arara @ D:\Program Files\MiKTeX\scripts\arara
::: Java 17.0.1, Oracle Corporation
::: C:\Program Files\Java\jdk-17.0.1
::: Windows 10, amd64, 10.0
::: user.home @ C:\Users\me
::: CF @ [none]
-----------------------------------------------------------------
20 Jun 2022 15:13:11.606 INFO  - Processing "main.tex" (size: 2.9 kB, last modified: 2022-06-20 19:13:08), please wait.
20 Jun 2022 15:13:11.625 INFO  - I found a potential pattern in line 1: pdflatex { shell: yes, interaction: nonstopmode }
20 Jun 2022 15:13:11.625 INFO  - I found a potential pattern in line 2: biber
20 Jun 2022 15:13:11.626 INFO  - I found a potential pattern in line 3: makeglossaries
20 Jun 2022 15:13:11.626 INFO  - I found a potential pattern in line 4: pdflatex { shell: yes, interaction: nonstopmode }
20 Jun 2022 15:13:11.626 INFO  - I found a potential pattern in line 5: pdflatex { shell: yes, interaction: nonstopmode }
20 Jun 2022 15:13:11.627 ERROR - I spotted an invalid directive (1) in the provided file. Make sure to fix the directive and try again.
20 Jun 2022 15:13:11.629 INFO  - Total: 0.305 seconds

部分main.tex

% arara: pdflatex { shell: yes, interaction: nonstopmode } 
% arara: biber
% arara: makeglossaries
% arara: pdflatex { shell: yes, interaction: nonstopmode }
% arara: pdflatex { shell: yes, interaction: nonstopmode }


\documentclass[
  12pt,
  % final, % any \todo{<x>} commands are removed
  % print, % removes link color for print version
  % ngerman, % to switch language to German 
  english, % to switch language to English 
  nonumberlist % Removes numbering on the glossaries itself
]{thesis}    

答案1

你缺少冒号指令(不是目录):

% arara: pdflatex: { shell: yes, interaction: nonstopmode } 
% arara: biber
% arara: makeglossaries
% arara: pdflatex: { shell: yes, interaction: nonstopmode }
% arara: pdflatex: { shell: yes, interaction: nonstopmode }

相关内容