EasySci commited on
Commit
4c13542
·
1 Parent(s): 7d285fb

Update TLDR.py

Browse files
Files changed (1) hide show
  1. TLDR.py +3 -2
TLDR.py CHANGED
@@ -64,7 +64,7 @@ def update_mainTLDR(buttons_to_add, paper_list):
64
  )
65
 
66
  paper_content = pn.Column(
67
- pn.pane.LaTeX(f"{paper.title}", styles={'font-size': '16pt', 'font-weight':'bold'}),
68
  pn.pane.HTML(html_content, styles={'font-size': '12pt'}),
69
  pn.pane.LaTeX(paper.summary, styles={'font-size': '14pt'}),
70
  sizing_mode="scale_width"
@@ -72,7 +72,8 @@ def update_mainTLDR(buttons_to_add, paper_list):
72
  category_content.append(paper_content)
73
 
74
  category_column = pn.Column(
75
- pn.pane.HTML(f'<a id="{anchor_id}">{category_title}</a>'), # Create anchor without href for the category title
 
76
  pn.layout.Spacer(height=20),
77
  *category_content,
78
  pn.layout.Spacer(height=10),
 
64
  )
65
 
66
  paper_content = pn.Column(
67
+ pn.pane.LaTeX(f"## {paper.title}", styles={'font-size': '16pt', 'font-weight':'bold'}), # Make the title a sub-heading (H2)
68
  pn.pane.HTML(html_content, styles={'font-size': '12pt'}),
69
  pn.pane.LaTeX(paper.summary, styles={'font-size': '14pt'}),
70
  sizing_mode="scale_width"
 
72
  category_content.append(paper_content)
73
 
74
  category_column = pn.Column(
75
+ pn.pane.Markdown(f"## {category_title}"), # Add a Markdown heading (H2) for the category title
76
+ pn.pane.HTML(f'<a id="{anchor_id}"></a>'), # Create anchor without href
77
  pn.layout.Spacer(height=20),
78
  *category_content,
79
  pn.layout.Spacer(height=10),