Revision History
Version 0.0
Experiment with setting up GitBook with GitHub, including setting up a GitHub account
Version 0.1
May 28, 2015
Break up the initial document notes_on_numbers_like_primes_and_pi.md
into individual chapters and fixup the folder naming, as I managed to screw up and make two chapters contain the same thing. I think it was renaming a chapter with fat fingers.
Include a C++ chapter
Version 0.2
May 28, 2015
Minor tweaks and edits to the content.
Published it, downloaded the ePub, opened it with iBooks, and learned some lessons about ePub format limitations:
The user can change all manner of viewing parameters so ensure that all elements will reflow appropriately.
Specifically, the length of long lines with embedded space control reflow look odd when the user increases the font size. For example the output of the bc command includes backslashes and carriage returns. either remove that entirely or reduce the BC_LINE_LENGTH environment variable to 40. Body text will reflow fine.Code blocks will reflow within the confines of the block and are generally OK, but keep the code lines as short as reasonable. Leverage the line continuation character backslash where lines exceed 40 characters.
*Mathematics looks fine in GitBooks HTML proview pane. But the GitBook website does not work and you get the literal characters you typed in, including the two dollar signs. Trying the work-around of placing three dollar signs around the formula and giving it a while line to itself. For example renders as a centered math formula:
Version 0.3
May 28, 2015
Added a Revision History chapter to track my efforts.
Updated the math formulas per the notes above.
This build fails with a stack error displayed by the GitBook Client:
My guess is because of the LaTeX math changes I made. But the ePub and PDF version look fine except the math formulas are not translated:
Build af86555 has errored
The full error message at GitHub is:
Version 0.4
To Do:
Explore the problem with math typesetting at the GitBook website.
Possibly replace the math formulas with ordinary text to work around the mathtype problem.
Possibly use alternative math syntax\\[ {e}^{i\pi }+1=0 \\]Consider reviewing the folder structure used in by GitBook and leveraging the include features of XXX Markdown editor. Otherwise a careful concatention operation should be able to combine the indicidual chapters into a single document suitable for any of the other tools in my chain to convert to ePub.
Version 0.5
To Do:
The same error occurs despite addressing many items in the To Do for version 0.4
I am loathe to replace the mathtype formulas with ordinary textual version. However let me do this to troubleshoot the problem. Comment out the mathtype for now. Replace it with ASCII formulas, typesetting hat tip to Mathomatic.
That fixes it. I had to revise the math formula in the version 0.2 history above
*
Version 0.6
Build for version 0.5 succeeded so we know that the GitBook site has issues with LaTeX.
Version 0.7
The book.json update in version 0.6 did not hurt. Let's see if the plugins entry helps our mathjax. Let me add a mathjax formula here and see:
Version 0.8
Every since adding content to book.json we're not seeing the latest build anymore at the GitBook site. We see version 0.5. Let me repair the file thus:
Version 0.9
This is messed up. I still cannot see anything past version 0.5. Let me create a new book and publish that. "Notes on Large Numbers."
Version 0.91
No Go. The stack error returnes with any mathjax inclusion. Let me clean up the eBook so it looks as good as it can without mathjax. Even that crashes. Let me revise book.json to remove the matjax plugin which is not needed anymore.
Version 0.92
Agressively placed code blocks around anything that might be suspect.
Curious. Seems if you just wait a few minutes you can download the PDF and ePub. Let's try again. OK that went fine. No more stack issues. All mathjax traces are clearned out. An ePub and a PDF are both now created. They look good. The PDF too.
Version 0.93
Added the appropriate language around fenced code blacks for JSON, bash, and cpp. Only the JSON marked code blocks fail to receive syntax highlighting from the GitHub processor. The GitHub Editor shows the syntax coloring. And we get the RangeError: Maximum call stack size exceeded
error but the build succeeds and ePub and PDF files are correctly generated.
Version 0.94
Minor edits
Last updated
Was this helpful?