다양한 문서를 생성하는 데 사용되는 preamble.tex를 입력 파일로 사용하는 texwork의 arara 구문

다양한 문서를 생성하는 데 사용되는 preamble.tex를 입력 파일로 사용하는 texwork의 arara 구문

Windows에 arara를 설치했는데 cmd 셸에서 실행하면 표시된 대로 올바르게 작동합니다. 문서를 컴파일하기에 적합한 여러 문서를 생성하기 위해 입력 파일로 사용하는 "템플릿" 서문에 다음 구문을 넣거나 각 tex 파일에서 매번 파일 이름을 언급해야 합니다. 텍스워크를 사용하고 있습니다.

파일이 변경될 때 texwork가 자동으로 파일을 빌드하도록 하려면 어떻게 해야 합니까?

% arara: xelatex
% arara: xelatex
% arara: clean: { files: [ *.aux, *.bbl ] }
% arara: clean: { files: [ *.bcf, *.cod ] } 
% arara: clean: { files: [ *.blg, *.lof ] }
% arara: clean: { files: [ *.lot, *.out ] } 
% arara: clean: { files: [ *.toc, *.log ] } 

답변1

remove다음에서 호출되는 규칙이 있습니다 Paulo Cereda.

!config
# Clean rule for arara
# author: Paulo Cereda
# requires arara 3.0+
identifier: remove
name: Remove
command: <arara> @{remove}
arguments:
- identifier: remove
  default: <arara> @{isNotEmpty(item, isWindows("cmd /c del", "rm -f").concat(' "').concat(getBasename(file))concat('.').concat(item).concat('"'))}

이 삭제 방법은 다음과 같습니다.

% arara: remove: { items: [ aux , toc , bbl ] }

파일 jobname.auxjobname.tocjobname.bbl.

*.aux및 이름이 다른 파일을 삭제하려면 다음과 같이 작은 변경을 시도해 *.toc보세요 .*.bbl

!config
# Clean rule for arara
# requires arara 3.0+
identifier: removex
name: RemoveX
command: <arara> @{removex}
arguments:
- identifier: removex
  default: <arara> @{isNotEmpty(item, isWindows("cmd /c del", "rm -f").concat(' "').concat('*')concat('.').concat(item).concat('"'))}

이 삭제 방법은 다음과 같습니다.

% arara: removex: {items: [ png , tmp ] }

확장자 *.png*.tmp.

관련 정보