Merge pull request #252 from andystanton/bugfix/pdf_generation_macos

Fixes for pdf generation on macos
This commit is contained in:
Patricio Gonzalez Vivo 2019-09-04 05:51:12 -07:00 committed by GitHub
commit 967c5cced1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 6 deletions

View File

@ -2,6 +2,8 @@
precision mediump float;
#endif
uniform float u_time;
void main() {
gl_FragColor = vec4(1.0,0.0,1.0,1.0);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -35,10 +35,16 @@ For parsing the Markdown chapters into Latex and then into a PDF file we will us
In **MacOSX**:
Download and Install [basictex & MacTeX-Additions](http://www.tug.org/mactex/morepackages.html) and then install [Pandoc](http://johnmacfarlane.net/pandoc/) and Python by:
Download and Install [basictex & MacTeX-Additions] by:
```bash
brew install pandoc python2.7
brew cask install mactex-no-gui
```
and then install [Pandoc](http://johnmacfarlane.net/pandoc/), Python 2 & glslViewer by:
```bash
brew install pandoc python@2 glslviewer
```
On **Raspberry Pi** (Raspbian):

View File

@ -42,7 +42,7 @@ def injectShaderBlocks(_folder, _text):
shaderImage = folder + "/tmp-" + shaderName + ".png"
shaderCommand = "glslViewer " + shaderPath + " " + \
" ".join(shaderTexturePaths) + \
" -s 0.5 -o " + shaderImage
" -s 0.5 --headless -o " + shaderImage
print shaderCommand
returnCode = subprocess.call(shaderCommand, shell=True)
rta += "![](" + shaderImage + ")\n"
@ -83,9 +83,9 @@ for folder in folders:
# Set up the appropriate options for the pandoc command
inputOptions = chapters
generalOptions = ["-N", "--smart", "--no-tex-ligatures", "--toc", "--standalone",
"--preserve-tabs", "-V documentclass=scrbook", "-V papersize=a4", "-V links-as-note", "-S"]
latexOptions = ["--latex-engine=" + latexEngine]
generalOptions = ["-N", "--toc", "--standalone",
"--preserve-tabs", "-V documentclass=scrbook", "-V papersize=a4", "-V links-as-note"]
latexOptions = ["--pdf-engine=" + latexEngine]
outputOptions = ["--output={0}".format(pdfBookPath)]
pandocCommand = ["pandoc"] + outputOptions + \
inputOptions + generalOptions + latexOptions