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

Workflow build improvments #18

Closed
2 tasks
fionaEyoung opened this issue Aug 18, 2023 · 2 comments
Closed
2 tasks

Workflow build improvments #18

fionaEyoung opened this issue Aug 18, 2023 · 2 comments
Labels
build pertaining to LaTeX build / formatting
Milestone

Comments

@fionaEyoung
Copy link
Owner

Putting this of for now.

  • Convert to docx using pandoc. Currently there are issues with setting the working directory / pointing pandoc to included files and figures that aren't in the pandoc working directory
  • Add PDF builds to a tagged release. Only upload as workflow artefacts for intermediate tags (vX.x.x) and upload as release for minor tags (vX.x)
@fionaEyoung fionaEyoung added the build pertaining to LaTeX build / formatting label Aug 18, 2023
@fionaEyoung
Copy link
Owner Author

Re: pandoc relative directories see jgm/pandoc#3752; try with pandoc --resource-path

Need to fix pandoc bib files globbing

from workflow

Run echo "files=$(printf '--bibliography %s ' src/bibs/*.bib)" > $GITHUB_OUTPUT
/home/runner/work/_temp/2dc9893b-8a72-43e8-86f7-ce8d2a6b4a3a.sh: line 1: printf: --: invalid option
printf: usage: printf [-v var] format [arguments]

@fionaEyoung fionaEyoung added this to the 2nd draft milestone Aug 18, 2023
@fionaEyoung
Copy link
Owner Author

  • pandoc --resource-path only works for figures -> can resolve Could not fetch resource ... but not Could not load include file ...
  • rebase_relative_paths extension not supported for latex

It appears that using pandoc on complex latex structures with \includeed files only supports calling pandoc from the Main.tex directory.
However, the pandoc action / container doesn't have a working directory parameter, and the GH actions working-directory option doesn't work for uses steps.

Solution as described more generally in pandoc/pandoc-action-example#11: change docker container entrypoint and cd before running pandoc.

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

No branches or pull requests

1 participant