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

Errors on DVI creation #16

Open
relaytheurgency opened this issue Feb 7, 2014 · 2 comments
Open

Errors on DVI creation #16

relaytheurgency opened this issue Feb 7, 2014 · 2 comments

Comments

@relaytheurgency
Copy link

I haven't been able to pinpoint the problem, but I'm having trouble with some of the tex equations not being created as dvi files. I also had trouble with the base directory variable in eq2img where it would try to write to /img instead of /path/to/flp,mobi/img. I set BASE_DIRECTORY manually and that allowed make to execute, but the dvi problem is still perplexing to me. Any tips?

Edit: The problem I was having with BASE_DIRECTORY was due to not having installed realpath. Could you add realpath, ruby-bundler, and dvipng to your list of dependencies?

@relaytheurgency
Copy link
Author

Actually, it seems that none of the equations are getting put into the epub/mobi files, even when they do exist.

@fmap
Copy link
Owner

fmap commented Feb 7, 2014

Hey,

I also had trouble with the base directory variable in eq2img where it
would try to write to /img instead of /path/to/flp,mobi/img. I set
BASE_DIRECTORY manually and that allowed make to execute, but

Dunno, guessing $BASE_DIRECTORY is being set to an empty string, is
realpath on your system? I thought it was POSIX.

the dvi problem is still perplexing to me. Any tips?

Do the compiler logs tell you anything interesting?

flp.mobi% find img -name '*log' -exec cat {} ; | less

Actually, it seems that none of the equations are getting put into the
epub/mobi files, even when they do exist.

Did you test this by decompressing the output EPUB? The only images
included in the ZIP/EPUB are those which are referenced from image tags
in the processed HTML chapters:

flp.mobi% cat bin/images
#!/bin/sh

./bin/chapters $1 | xargs grep -hoP '(?<=img src=")[^"](?=")' | sort -u
flp.mobi% grep images Makefile
(./bin/chapters $(v); ./bin/images $(v)) | zip -@ flp$(v).epub mimetype META-INF/
content.opf

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