Make the page breaking in the TeX driver a little better
authorJohn Darrington <john@cellform.com>
Sun, 18 Jun 2023 13:21:09 +0000 (15:21 +0200)
committerJohn Darrington <john@cellform.com>
Sun, 18 Jun 2023 13:21:09 +0000 (15:21 +0200)
src/output/tex.c

index 8a88452ec8a22760c146edd8f4c27e800d54a85b..76582c3ada9abd6343f58d5b9cb87499cdf250c2 100644 (file)
@@ -588,7 +588,8 @@ tex_output_table_layer (struct tex_driver *tex, const struct pivot_table *pt,
       free (marker);
     }
 
-  shipout (&tex->token_list, "}\n\\vskip 3ex\n\n");
+  shipout (&tex->token_list, "}\n\\vskip 4ex plus 2ex minus 1ex");
+  shipout (&tex->token_list, "\\penalty -300");
 
   table_unref (title);
   table_unref (layers);