# Convert TAB delimited Mathomatic help file to HTML. # See "makehtmlcard.sh". # Usage awk -F"\t" -f makehtmlcard.awk infile.txt >outfile.html # Credit goes to John Blommers (http://www.blommers.org) for starting this awk file and for the cheat sheet idea. BEGIN { print "" print "" print "" } NR==1 { print "Mathomatic Quick Reference Card" print "" print "" print "" print "" "" "" } NR==2 { print "" print "" print "" print "" print "" } NR>2 { print "" print "" print "" print "" print "" } END { print "
" "" $1 "" "
" $1 "" $2 "" $3 "
" $1 "" $2 "" $3 "
" print "
" # print "

" print "" print "Anything enclosed by straight brackets [like this] means it is optional and may be omitted." print "" # print "

" # print "" # print "To select an equation space and make it the current equation, type the equation number at the main prompt.
" # print "To solve the current equation, type the variable name at the main prompt or use the solve command." # print "
" print "

" print "" print "For more information, visit www.mathomatic.org" print "" print "" print "" }