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

Problem with --build-dir and images #126

Open
cedounet opened this issue Apr 22, 2024 · 1 comment
Open

Problem with --build-dir and images #126

cedounet opened this issue Apr 22, 2024 · 1 comment

Comments

@cedounet
Copy link

if image is in a subdirectory it does not get found

with a document including a picture from a subdir:

❯ cat mwe.tex
\documentclass{article}
\begin{document}
    \includegraphics{cover/cover-page.jpg}
\end{document}

this breaks:

❯ tex4ebook --lua --build-dir ebook_bld -d epub -f epub mwe.tex
[STATUS]  tex4ebook: Conversion started
[STATUS]  tex4ebook: Input file: mwe.tex
[ERROR]   mkutils: File ebook_bld/cover/cover-page.jpg doesn't exist
cp: ebook_bld/cover/cover-page.jpg: No such file or directory
HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 8018
[STATUS]  tex4ebook: Conversion finished

but this is ok

❯ tex4ebook --lua -d epub -f epub mwe.tex
[STATUS]  tex4ebook: Conversion started
[STATUS]  tex4ebook: Input file: mwe.tex
HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 8018
[STATUS]  tex4ebook: Conversion finished

I am on that version

❯ tex4ebook --version
tex4ebook v0.4
@michal-h21
Copy link
Owner

Thanks for the report, it indeed doesn't work. I hopefully fixed it in the latest commit in make4ht.

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

2 participants