-
Notifications
You must be signed in to change notification settings - Fork 16
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
Trouble calculating figure word-length #8
Comments
The script needs to be able to find the figure files to compute their word count, and it doesn’t understand the graphicspath command. I suggest giving the relative path to the file for each figure, e.g. |
Thanks for your reply! I have already tried this and I still get zero for word count of the figures. |
Are you using Ghostscript or ImageMagick figure option? Could you try the other one? |
I have tried both with the same results. |
What format are your figure files? |
EPS |
Can you try moving them into the same directory as the tex file, to exclude the possibility they can’t be found? |
Just had a quick look at the code. There’s a commented out print statement on line 430 you could put back in to check filenames that are being detected. |
Thanks for the suggestion. I tired it and am still getting zero. |
Hmmm. Odd. I did uncomment this line |
Ok, I’m out of suggestions for now. If you want to debug further I’d suggest running the gs or identify commands invoked by the script yourself and checking the output matches the expected form. |
Maybe detex is not finding the figures, you could run that manually and look for ‘<Picture’ as the code does |
This might be the case. If I run |
You could try the |
Still no luck. |
Strange, it's been working fairly reliably for me but I have to admit I haven't tried it for quite a while |
I think I had the same problem but then I looked into the tmp log file generated by the script and at least for me it was a revtex article class that was causing the problem. I guess I was using revtex4-2 which was not present in my texlive or something. When I switched back to revtex4-1, it worked flawlessly. Hope it helps. P.S. Just wanted to confirm, the word count does not include references, right ? |
Dear James,
Thank you very much for your useful script. I am having trouble getting the script to recognize any figures and to count their word length equivalents. I have all of my figures in their own folder and I use graphicspath in my document to point LaTeX to their location. However, when running aps-length I get that the figures have a length of 0. Do you have any recommendations? Could you please help me count the length of my figures?
Best regards.
The text was updated successfully, but these errors were encountered: