Add flag for format and option to compile LaTeX

A new set of flags for the output format was created. Based in
this flag the backend change it behaviour.

@lrsantos11 Please see if this is what are you looking at.