copy template.log

When latex fails, we should copy the log file so the user can see the
log  output of latex.
Merge pull request #248 from ayr0/makelab

copy template.log