Update my_pages/home.py
Browse files- my_pages/home.py +1 -1
my_pages/home.py
CHANGED
|
@@ -60,7 +60,7 @@ def render():
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
-
latex_content = r"$\
|
| 64 |
# button_clicked_dict[page] = st.button(rf"$\large\text{{{text}}}$", type="primary")
|
| 65 |
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|
|
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
+
latex_content = r"$\small" + r"\\".join([rf"\text{{{line}}}" for line in text]) + r"$"
|
| 64 |
# button_clicked_dict[page] = st.button(rf"$\large\text{{{text}}}$", type="primary")
|
| 65 |
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|