Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subfiles functionality seems to struggle with permissions #21

Open
bredamatt opened this issue May 7, 2022 · 0 comments
Open

Subfiles functionality seems to struggle with permissions #21

bredamatt opened this issue May 7, 2022 · 0 comments

Comments

@bredamatt
Copy link

Hi,

I just tested this. It has been about 4-5 years since I've used LaTeX last, and today was the first time I picked it back up.

I have created a very simple directory structure:

.
├── README.md
├── out
└── src
    ├── chapters
    │   ├── chapter1.tex
    │   ├── chapter2.tex
    │   └── chapter3.tex
    └── main.tex

Locally, I can do the following from the root:

$ pdflatex --output-dir out/ src/main.tex

which then adds the following to the out/ dir:

out
├── main.aux
├── main.log
└── main.pdf

I am trying to do exactly the same with my action as follows:

- name: pdflatex
        uses: dante-ev/latex-action@latest
        with:
          root_file: src/main.tex
          compiler: pdflatex
          args: -output-dir=out -no-shell-escape

However, I get this error:

This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021) (preloaded format=pdflatex)
entering extended mode
! I can't write on file `main.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: 
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!

This seems like the runner has a permission issue tgo write on the main.log file.

Note that before I added subfiles to the project, I did not have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant