Generate LaTeX header and footer for Karnaugh map

 * Add code that generates almost compileable LaTeX code.
 * The thing missing is the values of the function, such that the values
   from the QTableWidget propagates to the LaTeX code.