<patTemplate:tmpl name="snippet" type="condition" conditionvar="row_count" useglobals="yes">
    <patTemplate:sub condition="0" />
    <patTemplate:sub condition="__default" >
% Wxml/converter/wb/tablesheet/datasheet.tex.tmpl
\begin{table}[h]
    \begin{longtabu} to \linewidth {<patTemplate:var name="column_count_def" class="{CLASS}" copyfrom="column_count" glue="|" modifier="textabucolumndef" />}
    \showrowcolors
        <patTemplate:tmpl name="table_row"  type="condition" conditionvar="rowno" whitespace="keep">
            <patTemplate:sub condition="0">
                <patTemplate:tmpl name="table_cell" type="condition" conditionvar="columnno" whitespace="trimspace">
                    <patTemplate:sub condition="0"><patTemplate:var hidden="yes" name="body_display" copyfrom="body" modifier="wxml" mode="tex" />
                        {\textbf{<{BODY_DISPLAY}>}}
                    </patTemplate:sub>
                    <patTemplate:sub condition="__default">
                        <patTemplate:tmpl type="condition" conditionvar="rowno" whitespace="trimspace" varscope="__parent">
                            <patTemplate:sub condition="0">
                                & {\textbf{<{BODY_DISPLAY}>}}
                            </patTemplate:sub>
                            <patTemplate:sub condition="__default">
                                & <{BODY_DISPLAY}>
                            </patTemplate:sub>
                        </patTemplate:tmpl>
                    </patTemplate:sub>
                </patTemplate:tmpl> \\
                \hline
            </patTemplate:sub>
            <patTemplate:sub condition="__default">
                <patTemplate:link src="table_cell" /> \\
            </patTemplate:sub>
        </patTemplate:tmpl>
    \end{longtable}
    \label{tablesheet<{ID}>}
    \caption{<{TITLE}>}
\end{table}
    </patTemplate:sub>
</patTemplate:tmpl>

