Concatenate textab blocks vertically.
Arguments
- upper_block
The upper block of the tabular row.
- lower_block
The lower block of the tabular row.
Value
The output is a textab block, formed by vertically concatenating the two provided textab blocks.
Examples
# define some textab blocks
first_block = TexRow(c(1,2))
first_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{rr}
#> 1.000 & 2.000 \\
#> \end{tabular}
second_block = TexRow(3)
second_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{r}
#> 3.000 \\
#> \end{tabular}
third_block = TexRow(4)
third_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{r}
#> 4.000 \\
#> \end{tabular}
# concatenate two blocks vertically
first_block + second_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{rr}
#> 1.000 & 2.000 \\
#> 3.000 \\
#> \end{tabular}
# concatenate three blocks vertically
first_block + second_block + third_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{rr}
#> 1.000 & 2.000 \\
#> 3.000 \\
#> 4.000 \\
#> \end{tabular}
# concatenate both horizontally and vertically
# note: horizontal concatenation takes precedence over vertical concatenation
first_block + second_block / third_block
#> % created using textab on Wed Apr 26 17:42:42 2023
#> \begin{tabular}{rr}
#> 1.000 & 2.000 \\
#> 3.000 & 4.000 \\
#> \end{tabular}