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

Building instructions #41

Open
ghost opened this issue Oct 22, 2018 · 6 comments
Open

Building instructions #41

ghost opened this issue Oct 22, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Oct 22, 2018

Dear Team,
What a wonderful book.
May I ask how to build it? I have TexStudio which I use to build many other books, but I received 35Mb of errors while trying to build this book. I tried pdflatex, xelatex and lualatex.

Kindly let me know,

@jemmybutton
Copy link
Owner

Thank you!
The book is not actually in LaTeX, it is in ConTeXt (which is a different TeX-based system). And TeXstudio seems to only support LaTeX. So you may either try another editor (I use TeXworks and it is mostly ok) with ConTeXt (LuaTeX) (LuaTeX backend is essential, because mplib is used extensively in the book), or go with the command line like this context byrne_context.tex.
It was tested with TeX Live 2015 on Ubuntu.

@jemmybutton
Copy link
Owner

Minimal building instructions added to the readme file 62aa7a4#diff-04c6e90faac2675aa89e2176d2eec7d8R21

@simongredal
Copy link

I'm getting an error when trying to build the document. There are almost a thousand lines about missing Garamond fonts, and then an error about something on line 415 in byrne_context.tex

https://gist.github.com/SimonGr3dal/7bb88dfcc4008ed960c3f6dbf11d2368#file-gistfile1-txt-L1333

I'm using ConTeXt with LuaTeX backend via the latest TeX Live on macOS. I've tried using the included TeXShop application and the context command, both give me the same error.

@jemmybutton
Copy link
Owner

@SimonGr3dal
At the moment I can't tell you exactly what's going on, but I'll try to get my hands on a fresh TeX Live as soon as i can to figure it out. Until then: LuaTeX is said to be able to use system fonts https://wiki.contextgarden.net/Fonts_in_LuaTeX#How_LuaTeX_handles_system_fonts , so you can try installing them https://bitbucket.org/georgd/eb-garamond/downloads/ on your system and use the procedure described at the first link.
As for the error on line 415, it's a bit hard to interpret it when so much already went wrong with fonts.

@jemmybutton
Copy link
Owner

@SimonGr3dal
The bugs you've encountered i was able to reproduce. Font issues were solved (at least in my case) by installing fonts from here https://bitbucket.org/georgd/eb-garamond/downloads/ in the system (on a windows machine though). From what i see i can guess that the issue results from the fact that in TeX Live 2019 the fonts likelt come from another source https://github.com/octaviopardo/EBGaramond12/tree/master/fonts/otf than in an earlier TeX Live version i use, and have different filenames, while ConTeXt's data still relies on old ones. The error afterwards is because i mistreated ConTeXt's \setuphead macro. This 0d756a0 should fix the issue (i'll try and check this myself asap). But after all the modifications some minor bugs in the book layout may occur, i'll address them next.
Hope this helps.

@jemmybutton
Copy link
Owner

@SimonGr3dal
To conclude: on TeX Live 2019 you need to install these fonts on your system and use a version after this commit. Please let me know if it doesn't work for you.
Some time later i'll try to add support for newer versions of EB Garamond.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants