MilesCranmer commited on
Commit
6d5ddcb
·
1 Parent(s): b2ffe3b

Remove caption from generated LaTeX tables

Browse files
Files changed (1) hide show
  1. pysr/export_latex.py +2 -3
pysr/export_latex.py CHANGED
@@ -14,9 +14,7 @@ def set_precision_of_constants_in_string(s, precision=3):
14
  def generate_top_of_latex_table():
15
  latex_table_pieces = [
16
  r"\begin{table}[h]",
17
- r"\centering",
18
- r"\caption{}",
19
- r"\label{}",
20
  r"\begin{tabular}{@{}lcc@{}}",
21
  r"\toprule",
22
  r"Equation & Complexity & Loss \\",
@@ -29,6 +27,7 @@ def generate_bottom_of_latex_table():
29
  latex_table_pieces = [
30
  r"\bottomrule",
31
  r"\end{tabular}",
 
32
  r"\end{table}",
33
  ]
34
  return "\n".join(latex_table_pieces)
 
14
  def generate_top_of_latex_table():
15
  latex_table_pieces = [
16
  r"\begin{table}[h]",
17
+ r"\begin{center}",
 
 
18
  r"\begin{tabular}{@{}lcc@{}}",
19
  r"\toprule",
20
  r"Equation & Complexity & Loss \\",
 
27
  latex_table_pieces = [
28
  r"\bottomrule",
29
  r"\end{tabular}",
30
+ r"\end{center}",
31
  r"\end{table}",
32
  ]
33
  return "\n".join(latex_table_pieces)