PDF generation updates: working version mimicing webBook style#70
Conversation
…ch's order.txt file that contains the chapter order
… Includes python script that does the generation, latex template and static/ from webBook branch
…n shorthand form, so I expanded them to longform
PDF generation updates: working version mimicing webBook style
|
OK, some issues I found in my chapter after a quick look:
|
|
So, I found out that the black diamonds are in place of the vertical bars, and the notes should be Quotation marks seem to be wrong everywhere. Not sure about the german quotes statement before. Not sure how to fix this. Anything specific why you made the margins so wide/the textwidth so small? In my old setup, the textwidth is about 6 chars wider, and that was the standard setup I think. (also: 2in inner margin looks really excessive. would be interested in the reason for this) |
I can add the changes for 1 and 5 in a PR. |
|
|
also, add |
|
any input w.r.t the margins? |
|
Oh. Seems we're on the same page. What specifically about the margins? |
|
last part of my comment above, especially the inner margin and textwidth. huh, github commenting breaks down a bit if two people are on concurrently. :-D |
|
hm, with the tree thing, there seems to be some linebreak weirdness (if you compare to the markdown or tex file content, something gets skipped). also, the listing frame is messed up. |
|
Ahh, oops. My apologies - yeah I missed that comment. I was playing with the margins to try and fit more text on each page. The prior version felt like there was too much whitespace and that the line width was too narrow for the code. Maybe I am missing a latex fundamental concept about margin/textwidth, though. Hmm, which markdown file has the weirdness? chapter.md, chapter_modified_for_print.md, or both? |
|
well, basically more margin = less textwidth. also, the inner margin is the one that makes space for the binding, note taking typically should happen in the outer margin (which is therefore typically larger). textwidth = pagewidth - inner - outer (I think, check the geometry package manual). no, the weirdness is only in the pdf, markdown and tex look ok. |
|
Ohhhh, I think I'm on the same page as you now. The ofBook version that I was generating from your shell script had really huge margins. I must have been using an old version, or I must have made some tweaks a long time ago that I had forgot about. Now that I'm checking out the v0.1.0 release, I see that something was messed up on my end. The margins in v0.1.0 look fine. Here I was thinking that my margins were increasing the textwidth over the previous version (since changing margin, changes textwidth). They were only increasing the textwidth relative to my weird local version. That's why I was so confused by your initial comment that textwidth was smaller in my version. We can revert back to your settings. As for the redundancy. I was setting all the margins in one command, which destroys the 2-sided layout. Then, I overrode the inner+outer in the second commands to restore the 2-sided layout. Seemed like less work than specifying all the different margins individually, but I should've gone the verbose route for clarity purposes. |
Added fixes discussed in PR #70
Fixing merge conflicts created by my recent PR to master (openframeworks#70)
|
OK, an update re: the funny issue with the box drawing characters in a listing: |
|
Hmm, this is frustrating. Your code block isn't the only one affected by this. I remember seeing the |

This PR brings the PDF generation pipeline up to speed with the webBook styling.
The PDF generation works through a python script under
scripts/. It generationsofBook.pdfandscripts/ofBook.tex. The latter is useful for debugging - pandoc isn't too helpful when building a PDF fails. Opening up ofBook.tex in TeXworks makes debugging easier. It also allows for testing of style/layout before changing the python script.Following the organization from @ofZach's pending PR (#68), I moved all the chapters to
chapters/and removed the chapter numbering. Two of the chapters needed small edits to get them working with the latex package for styling code (re: #69).