Fixed a critical bug
diff --git a/R/kable_styling.R b/R/kable_styling.R
index b693b3b..6b60780 100644
--- a/R/kable_styling.R
+++ b/R/kable_styling.R
@@ -336,7 +336,7 @@
 
 styling_latex_striped <- function(x, table_info, color, stripe_index) {
   if (is.null(stripe_index)) {
-    striped_index <- seq(1, table_info$nrow, 2)
+    striped_index <- seq(1, table_info$nrow - table_info$position_offset, 2)
   }
   row_spec(x, striped_index, background = color)
 }