Comments (6)
Sorry, I think the software requirements for making this work are not well documented and now even I don't recall everything that is required. But I think you need to install Inkscape:
FileNotFoundError: [Errno 2] No such file or directory: 'inkscape': 'inkscape'
nbconvert
uses inkscape to do some image conversion (svg to pdf).
from riemann_book.
Indeed, it seems you are running into an error when running fix_latex_file.py
, which assumes riemann.tex
has already been created, but riemann.tex
is not being created in the first place. I think nbconvert might have an inkscape dependency, so I agree with @ketch , to try to install inkscape.
If you elaborate more on not being able to run the claw code in the notebooks, maybe we can help also with that.
from riemann_book.
@ketch @maojrs Thanks for your answers, I install inkspace that error went away.
Now I have a different one, it says can't find riemann.tplx
this file exists under build_pdf
but it is not picked up for some reason. I copied it one level up, still same problem.
return self._load_template(name, self.make_globals(globals))
File "/home/user/Documents/env3/lib/python3.6/site-packages/jinja2/environment.py", line 857, in _load_template
template = self.loader.load(self, name, globals)
File "/home/user/Documents/env3/lib/python3.6/site-packages/jinja2/loaders.py", line 429, in load
raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: riemann.tplx
Traceback (most recent call last):
File "../files_for_latex_pdf/fix_latex_file.py", line 8, in <module>
lines = open(fname,'r').read()
FileNotFoundError: [Errno 2] No such file or directory: 'riemann.tex'
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex)
from riemann_book.
We didn't document the pdf build process very well in part because we didn't intend for users to build the pdf -- if you want the hard copy you should really buy the SIAM book (or perhaps access the ebook through your library), since they kindly gave us permission to share the notebooks and html files free of charge, but not the pdf.
Also it was quite a complicated procedure to get things fixed up to the format they needed for typesetting, and many of the changes we made were done by hand and/or ended up on a private branch. It was also rather fragile in terms of some of the underlying software changing, so I'm not sure we could reproduce the pdf file ourselves at this point. Sorry!
from riemann_book.
Dr. Leveque, thanks for the response. I managed to generate .tex from Jupyter UI for every ipynb, ran pdlatex
on them and collated the PDFs. For different type of output I printed to PDF on notebooks themselves; this will work fine. Thanks for making such a great book available.
from riemann_book.
Yes, that's a good way to get a pdf out of the notebooks, glad to hear it gave something useful.
from riemann_book.
Related Issues (20)
- Error pops up in plot_riemann for Traffic
- Try out `nbinteract` HOT 5
- Use of red and blue colors in shallow water plots HOT 1
- Spacing before equations
- Characteristics incorrectly terminate in SW section 1.4.5 HOT 1
- Eq. in acoustics NB HOT 2
- Euler compare suggestions HOT 1
- Burgers interact HOT 2
- Burgers chapter HOT 9
- Things to do in multiple notebooks
- Comments and suggestions for Part II HOT 3
- Second equation of subsection 9.1.3 HOT 2
- nbconvert --to html doesn't handle equation numbers HOT 1
- Create pdf in build_pdf directory? HOT 1
- Azure Notebooks issues HOT 1
- kitchen sink animations not working on Azure HOT 9
- Code lines in the PDF go past the right edge of the page HOT 1
- Polishing chapters for the submission
- Tammann notebook issues HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riemann_book.