groff-examples

Week #1 challenge
Login

Week #1 challenge

Challenge found here. Goal: reproduce it as faithfully as possible.

Code is here and the generated document is here.

To build the example, you'll need a version of groff that has PDF generation support built-in. If it's not in the default path, execute make download; make GROFF=path2groff/groff.

Build notes:

Implementation notes:

Processing model follows:

Download logo: make download curl file University_of_Kansas_wordmark.pdf Build document: kansas.mom groff kansas.pdf
    "Download logo:"
    box "make download" wid 110%
    arrow dashed "curl file" ""
    file "University_of_Kansas_wordmark.pdf" wid 350%
    left; move; move; move; down; move; move; right
    "Build document:"
    Code:  file "kansas.mom" wid 140%
    right; arrow
    Groff: box "groff"
    arrow
    Document: file "kansas.pdf" wid 140%