NAME
LaTeX::Table::Types::TypeI - Interface for LaTeX table types.
SYNOPSIS
DESCRIPTION
This is the type interface (or Moose role), that all type objects must use. LaTeX::Table delegates the boring work of building the LaTeX code to type objects. It stores all information we have in easy to use "TEMPLATE VARIABLES". LaTeX::Table ships with very flexible templates, but you can also use the template variables defined here to build custom templates.
INTERFACE
generate_latex_code
TEMPLATE VARIABLES
CAUTION: This API is not stable. If you build custom templates, they might not work in future versions!
Most options are accessable here:
CENTER, LEFT, RIGHT
-
Example:
[% IF CENTER %]\centering [% END %]
ENVIRONMENT, STAR, POSITION, SIDEWAYS
-
These options for floating environments are typically used like:
[% IF ENVIRONMENT %]\begin{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% IF POSITION %][[% POSITION %]][% END %] ... [% END %] # the tabular environment here ... [% IF ENVIRONMENT %] ... \end{[% ENVIRONMENT %][% IF STAR %]*[% END %]}[% END %]
CAPTION_TOP, CAPTION_CMD, SHORTCAPTION, CAPTION, CONTINUED, CONTINUEDMSG
-
The variables to build the caption command. Note that there is NO template for the
maincaption
option.CAPTION
already includes this maincaption if specified. LABEL
-
The label:
[% IF LABEL %]\label{[% LABEL %]}[% END %]
TABULAR_ENVIRONMENT, WIDTH, COLDEF
-
These three options define the tabular environment:
\begin{[% TABULAR_ENVIRONMENT %]}[% IF WIDTH %]{[% WIDTH %]}[% END %]{[% COLDEF %]}
In addition, some variables already contain formatted LaTeX code:
HEADER_CODE
-
The formatted header:
\toprule \multicolumn{2}{c}{Item} & \\ \cmidrule(r){1-2} Animal & Description & Price \\ \midrule
DATA_CODE
-
The formatted data:
Gnat & per gram & 13.65 \\ & each & 0.01 \\ Gnu & stuffed & 92.59 \\ Emu & stuffed & 33.33 \\ Armadillo & frozen & 8.99 \\ \bottomrule
FONTFAMILY_CODE, FONTSIZE_CODE
RESIZEBOX_BEGIN_CODE, RESIZEBOX_END_CODE
-
Everything between these two template variables is resized according the
resizebox
option.
SEE ALSO
The predefined templates: LaTeX::Table::Types::Std, LaTeX::Table::Types::Ctable, LaTeX::Table::Types::Xtab
AUTHOR
Markus Riester <mriester@gmx.de>
LICENSE AND COPYRIGHT
Copyright (c) 2006-2009, Markus Riester <mriester@gmx.de>
.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.