texlive를 사용하여 Azure DevOps 파이프라인을 설정하는 방법은 무엇입니까?

texlive를 사용하여 Azure DevOps 파이프라인을 설정하는 방법은 무엇입니까?

LaTeX 파일이 포함된 저장소가 있습니다 .tex. 모든 커밋에서 PDF를 생성하는 파이프라인을 원합니다.

명령 을 사용하여 파이프라인을 만들었습니다 pdflatex main.tex.

그러나 texlivevm에는 설치되지 않습니다. 그래서 오류가 발생합니다.

/home/.../f170215a.sh: line 2: pdflatex: command not found

어떻게 해결할 수 있나요? texlive가 설치된 Azure에 클라우드 기반 VM 옵션이 있습니까? 아니면 이를 위해 자체 VM을 만들어야 합니까?

파이프라인 yaml은 다음과 같습니다.

trigger:
- master
pool:
  vmImage: 'ubuntu-latest'
steps:
- bash: | 
    echo Starting pdflatex
    pdflatex -interaction=nonstopmode main.tex
    echo Done pdflatex.

답변1

첫 번째 부분은 파이프라인 스크립트에 요구 사항을 설치하여 해결되었습니다.

sudo apt-get install texlive

yml 파이프라인은 다음과 같습니다.

trigger:
- master
pool:
  vmImage: 'ubuntu-latest'
steps:
- bash: | 
    sudo apt-get install texlive     
    echo Starting pdflatex
    pdflatex -interaction=nonstopmode main.tex
    echo Done pdflatex.

이제 pdf 파일만 검색하면 됩니다. 그러나 그것은 또 다른 주제입니다 =)

관련 정보