Fixing syntax errors with pnl latex template, but some things don't work yet

--HG--
extra : source : 9f55d7e64ce9ef4fdc3f6fae41a30f0a473132aa
Fully functional PDFs for PNL reports

--HG--
extra : source : 2ace53bc0d36481d6b0eaccc047b4fd69437524e
Fully functional balance sheet pdf's

--HG--
extra : source : 21fcea94ae14aa0319b6ec42bf1f72b1f83d1888