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 generation fix #142

Merged
merged 20 commits into from
May 20, 2015
Merged

Pdf generation fix #142

merged 20 commits into from
May 20, 2015

Conversation

mikewesthad
Copy link
Member

Now that the pdf-generation-fix branch is working, I'd like to merge it into master. The bulk of what was holding up the pdf pipeline was formatting (replacing typographic quotes and fixing inconsistent markdown, image locations & line breaking), but the one worth bringing attention to is @arturoc's memory chapter.

@arturoc is using SVGs, which work for web, but break the PDF book because vanilla latex doesn't support SVGs. PDF images work nicely for the PDF book, but don't play as nicely with the web book (because they use the <embed> tag which breaks the web book script).

The solution I used was to convert the SVGs to PDFs (convertSVGToPDF.py) using inkscape. The file extensions can be left out of the memory chapter, and then the pandoc option of --default-image-extension can be used to pick SVG vs PDF for the separate pipelines. This seems like a better option than adding inkscape as a dependency for ofBook (compared to converting images on-the-fly).

(This PR will not create a conflict with open mergeable PRs - specifically #126.)

I didn't have time to sort out these issues:

Sound chapter: uses approximately equal sign within inline code, which
breaks lstinline
Math: Similar issues as sound, but more of them.  Also, it has latex
code within the chapter.  Not clear whether that is problematic.
Memory: uses svg images which latex can't handle by default
@tpltnt
Copy link
Collaborator

tpltnt commented May 20, 2015

Looks good to me.

tpltnt pushed a commit that referenced this pull request May 20, 2015
@tpltnt tpltnt merged commit b6d307b into master May 20, 2015
@mikewesthad
Copy link
Member Author

Thanks for taking a look

@mikewesthad mikewesthad deleted the pdf-generation-fix branch May 20, 2015 13:11
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

Successfully merging this pull request may close these issues.

2 participants