Code Monkey home page Code Monkey logo

Comments (4)

ascherer avatar ascherer commented on August 19, 2024

What is the issue?

from sgb.

fredyouhanaie avatar fredyouhanaie commented on August 19, 2024

Not an issue as such.

I've modified the Makefile to generate PDFs of the modules for my own use.

It may also be useful for anyone wanting to read the cweave output as a PDF file.

I was wondering if you're interested in adding the change to your repo.

from sgb.

ascherer avatar ascherer commented on August 19, 2024

I see. AFAIK, Don Knuth still accepts reports for SGB directly.

Personally, I use shell scripting, when I want to procude PDF output from the SGB sources

for f in assign_lisa book_components econ_order football girth ladders miles_span multiply queen roget_components take_risc word_components; do cweave $f; pdftex $f; done

or library modules

for f in gb_*.w; do f=`basename $f .w`; cweave $f; pdftex $f; done

Alternatively, you can use the Makefiles from MMIX or CWEB, e.g.,

sgb> $ make -f ../mmix/Makefile PDFTEX=dvipdfm gb_io.pdf
sgb> $ make -f ../cweb/Makefile PDFTEX=xetex gb_basic.pdf

or even

sgb> $ make -f ../cweb/Makefile PDFTEX=hitex gb_games.pdf

although this produces gb_games.hnt.

You can apply any of these approaches locally it you like.

from sgb.

fredyouhanaie avatar fredyouhanaie commented on August 19, 2024

OK, understood.

I hadn't realised that Makefile is DEK's original. I won't contact him, I expect he's very busy with TAOCP vol 4 ;-)

My PR was against your local branch, and by the way, thanks for all your work here, it worked for me without any trouble.

The update in the PR lets one type make pdfs or make gb_games.pdf to generate all or specific docs.

All the best
f.

from sgb.

Related Issues (10)

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.