title: Customize output using ods latex tagset
body: <p>My question is twofold <br/>
  1) Is there a way to output all the files in one latex file directly? <br/>
  2) Can I fully customize the caption? <br/></p>
  
  <p>1)
  I have a series of tables to ouput in one latex file. Actually each tables are printed in a different file. Is there a way to output all the files in one latex file directly?</p>
  
  <p>2) I have customized the tablesonlylatex tagset to obtain the display I wanted except that I didn't managed to put the table caption. I basically would like this latex format (the basic one).</p>
  
  <pre><code>\begin{table}[!htbp]
  \begin{center}
  </code></pre>
  
  <p>**    <strong>\caption{PUT \sassystemtitle here}</strong></p>
  
  <pre><code>\begin{tabular}{lrr}\hline
     Region &amp;    Variable A &amp;    Variable B\\
     Africa &amp;    27.16\% &amp;    24.72\%\\
     East Asia and the Pacific &amp;    25.24\% &amp;    16.10\%\\
     Eastern Europe and Central Asia &amp;    8.75\% &amp;    13.71\%\\
     Latin America and The Caribbean &amp;    33.15\% &amp;    36.66\%\\
     Middle East and North Africa &amp;    3.39\% &amp;    6.19\%\\
     South Asia &amp;    2.32\% &amp;    2.62\%\\
  \hline
  \end{center}
  \end{tabular}
  \end{table}
  </code></pre>
  
  <p>Here is my modified tablesonlylatex tagsets.</p>
  
  <pre><code>define tagset tagsets.tablesonlylatex; parent=tagsets.simplelatex;
          define event verbatim_text;end;
          define event table_head;end;
                  define event table;
             start:
                 put '\begin{table}' CR '\begin{center}' CR;
             finish:
                 put '\hline' CR'\end{center}' CR'\end{tabular}' CR '\end{table}';
                 put CR;
          end;
          define event colspec_entry;
              put just '' / if !cmp(just, 'd');
              put 'c' / if cmp(just, 'd');
          end;
          define event colspecs;
              start:
                  put CR'\begin{tabular}{';
              finish:
                  put '}\hline' CR ;
          end;
  
          define event row;
              finish:
                  put '\\' CR;
          end;
          define event data;
              start:
                  put VALUE /if cmp($sascaption, 'true');
                  break /if cmp($sascaption, 'true');
                  put ' &amp; ' / if !cmp(COLSTART, '1') ;
  
                  /* Print cell formatting including class name and alignment. */
                  put '   ';
                  unset $colspan;
                  set $colspan colspan;
                  put '\multicolumn{' / if exists($colspan);
                  put colspan  / if exists($colspan);
                  put '}'      / if exists($colspan);
                  put '{'     / if exists($colspan);
                  put just     / if exists($colspan);
                  put '}'     / if exists($colspan);
                  put '{'      / if exists($colspan);
  /*
  
  */
                  /*put strip(VALUE);*/
                  put tranwrd(VALUE, '-', '$-$') / if contains(HTMLCLASS, 'Data');
                  put VALUE / if ! contains(HTMLCLASS, 'Data');
  
              finish:
                  break /if cmp($sascaption, 'true');
                  put '}'      / if exists($colspan);
          end;
          define event byline; end;
          define event proc_title; end;
          define event note; end;
          define event Error; end;
          define event Warn; end;
          define event Fatal; end;
          define event system_footer; end;
          define event leaf; end;
          define event proc_branch; end;
          define event branch; end;
          define event pagebreak; end;
          define event system_title;end;
      end;
  </code></pre>