save collapse_matrix to latex output as well
diff --git a/R/collapse_rows.R b/R/collapse_rows.R
index b26ed5f..d45fe22 100644
--- a/R/collapse_rows.R
+++ b/R/collapse_rows.R
@@ -252,6 +252,7 @@
 
   out <- structure(out, format = "latex", class = "knitr_kable")
   table_info$collapse_rows <- TRUE
+  table_info$collapse_matrix <- collapse_matrix
   attr(out, "kable_meta") <- table_info
   if(row_group_label_position == 'stack'){
     group_row_index_list <- collapse_rows_index(kable_dt, head(columns, -1))