LaTeX::Table::Types::TypeI(3pm) | User Contributed Perl Documentation | LaTeX::Table::Types::TypeI(3pm) |
LaTeX::Table::Types::TypeI - Interface for LaTeX table types.
This is the type interface (or Moose role), that all type objects must use. LaTeX::Table delegates the LaTeX code generation to type objects. It stores all information we have in easy to use "TEMPLATE VARIABLES". LaTeX::Table ships with very flexible templates, but it is possible to use the template variables defined here to build custom templates.
Most options are accessible here:
[% IF CENTER %]\centering [% END %]
[% IF ENVIRONMENT %]\begin{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% IF POSITION %][[% POSITION %]][% END %] ... [% END %] # the tabular environment here ... [% IF ENVIRONMENT %] ... \end{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% END %]
[% IF LABEL %]\label{[% LABEL %]}[% END %]
\begin{[% TABULAR_ENVIRONMENT %]}[% IF WIDTH %]{[% WIDTH %]}[% END %]{[% COLDEF %]}
[% IF FONTSIZE %]\[% FONTSIZE %] [% END %][% IF FONTFAMILY %]\[% FONTFAMILY %]family [% END %]
In addition, some variables already contain formatted LaTeX code:
\toprule \multicolumn{2}{c}{Item} & \\ \cmidrule(r){1-2} Animal & Description & Price \\ \midrule
Gnat & per gram & 13.65 \\ & each & 0.01 \\ Gnu & stuffed & 92.59 \\ Emu & stuffed & 33.33 \\ Armadillo & frozen & 8.99 \\ \bottomrule
\setlength{\extrarowheight}{1pt}
Otherwise it will contain the empty string. The other template variables will contain the command specified by the corresponding theme option.
Finally, some variables allow access to internal "LaTeX::Table" variables:
LaTeX::Table
The predefined templates: LaTeX::Table::Types::Std, LaTeX::Table::Types::Ctable, LaTeX::Table::Types::Longtable, LaTeX::Table::Types::Xtab
Copyright (c) 2006-2010 "<limaone@cpan.org>"
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
2022-06-15 | perl v5.34.0 |