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

PDF docs generation broken when using PDF images #183

Closed
GrahamDennis opened this issue Mar 13, 2012 · 6 comments
Closed

PDF docs generation broken when using PDF images #183

GrahamDennis opened this issue Mar 13, 2012 · 6 comments

Comments

@GrahamDennis
Copy link

When building PDF docs that include PDF images, the PDF file that is copied as the docs ends up being one of the included images instead of the generated docs.

This is a problem for the xmds2 project. See http://media.readthedocs.org/pdf/xmds2/latest/xmds2.pdf

@marsam
Copy link

marsam commented Apr 1, 2012

This is because sphinx_pdf.py#L45 only check the first match of *.pdf in the build dir.

@ericholscher
Copy link
Member

Hrm, any thoughts on how to solve this sanely? We used to have logic around the pdf filename, but it doesn't hold for all projects.

@GrahamDennis
Copy link
Author

My understanding of LaTeX was that the pdf was the same name as the .tex file. Can you provide an example of the problems encountered previously?

@ericholscher
Copy link
Member

Hrrm. IIRC we were trying to use the slug from the project name. The tex
file might be a better place to grab the name from.

We could probably use a similar regex to grab the correct tex name and
transform that into the PDF.

On Tue, Apr 17, 2012 at 9:02 PM, Graham Dennis <
reply@reply.github.com

wrote:

My understanding of LaTeX was that the pdf was the same name as the .tex
file. Can you provide an example of the problems encountered previously?


Reply to this email directly or view it on GitHub:
#183 (comment)

Eric Holscher
Engineer at Urban Airship in Portland, Or
http://ericholscher.com

@robwalton
Copy link

I also believe the .pdf file has the same name as the .tex file.

The 'latex_documents' attribute in conf.py allows multiple .tex files to be built. To be complete sphinx_pdf.py should probably look for multiple .tex files.

@ericholscher
Copy link
Member

Closing this in deference to the PR.

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

4 participants