Code Monkey home page Code Monkey logo

Comments (6)

ketch avatar ketch commented on June 5, 2024

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.

maojrs avatar maojrs commented on June 5, 2024

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.

burakbayramli avatar burakbayramli commented on June 5, 2024

@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.

rjleveque avatar rjleveque commented on June 5, 2024

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.

burakbayramli avatar burakbayramli commented on June 5, 2024

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.

rjleveque avatar rjleveque commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.