3 class Text_Wiki_Render_Latex_Table
extends Text_Wiki_Render
{
6 var $is_spanning = false
;
17 * Renders a token into text matching the requested format.
21 * @param array $options The "options" portion of the token (second
24 * @return string The text rendered from the token options.
28 function token($options)
30 // make nice variable names (type, attr, span)
36 $this->cell_count
= $cols;
38 $tbl_start = '\begin{tabular}{|';
39 for ($a=0; $a < $this->cell_count
; $a++
) {
47 return "\\hline\n\\end{tabular}\n";
50 $this->is_spanning
= false
;
60 if ($this->cell_id
== 0) {
65 $this->cell_id +
= $span;
66 $this->is_spanning
= true
;
68 return "\\multicolumn\{$span}\{$col_spec}{";
76 if ($this->is_spanning
) {
77 $this->is_spanning
= false
;
81 if ($this->cell_id
!= $this->cell_count
) {