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

pandoc-argmap.lua: .png outputs aren't added to same folder as html output, leading to missing image. #20

Open
s6mike opened this issue Jul 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@s6mike
Copy link
Owner

s6mike commented Jul 15, 2022

When using VSCode pandoc extensions to create a pandoc preview, the html output is added to the same folder as the source .md (usually Input folder), but the png version of the argmap is not, leading to a missing image.

It's not known where the png is created. The relevant code is probably CodeBlock call to argmap2image function.

Think it's this line: os.execute("lualatex -output-directory " .. tmpdir .. " " .. tmp .. ".tex")

@s6mike s6mike added the bug Something isn't working label Jul 15, 2022
@s6mike s6mike self-assigned this Jul 15, 2022
@s6mike
Copy link
Owner Author

s6mike commented Jul 15, 2022

pandoc-fix 3.3.0 commit fcac942c27c367135cce495274e91c516246c0ee

  • Update bash aliases to move image file to help solve this for tests.sh
  • Add Input/12ff to repo , so that' it's available for VSCode extension html output tests.

s6mike added a commit that referenced this issue Jul 17, 2022
- Use more variables to reduce duplicate paths etc:
  - `launch.json`
  - `settings.json`
- Add `config_argmap.lua` to ensure LUA_PATH etc available to extensions
  - Update scripts:
    - Including symbolic link in `install.sh` to ensure `config_argmap.lua` available in `~/.local/share`.
- Fix missing image issue: relates to #20:
  - Update bash aliases to move image file for `tests.sh`
  - Add Input/12ff...png to repo for VSCode extension html output tests.
- Update `install.sh`:
  - Comment out redundant ln -s due to extensions with custom paths.
  - Fix symbolic link error.
- Tidy up code comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant