Number figures simply
Implement @<fig>{}[]() format
Introduce InputLine to main loop
Use LineInput everywhere
Rename process_line to process_commands
Show file name on error
Set default caption format to "Figure XX: "
Merge pull request #6 from kazutomi/figref

figure reference