Demonstration scripts

The demo directory contains some of the demonstration programs included in the Haru library distribution. These have been translated from C to Lua. Each script generates a PDF file with the same name as the script except for the extension which is changed from .lua to .pdf.

The LuaHPDF library must be properly installed to generate the demonstration files. Refer to the building instructions for details on this.

Some of the scripts require the module grid_sheet.lua. This script should be installed in a standard Lua module directory. Run

lua -e "print(package.path)"

to see where these are.

On Unix-type systems, execute the following command to generate the PDF files.

make demo

Alternatively, you can execute the following command from a command shell.

for f in *.lua; do lua $f; done

On Windows, you can do the following from a command shell.

cd demo
for %a in (*.lua) do lua %a