Enable SyncTeX, and 'file:line' style errors in log files
Remove unnecessary '-' (standardizing)
Move variable declaration to inner scope