Update my_pages/home.py
Browse files- my_pages/home.py +2 -2
my_pages/home.py
CHANGED
|
@@ -29,7 +29,7 @@ def render():
|
|
| 29 |
color: #3366cc !important;
|
| 30 |
}
|
| 31 |
button[kind="primary"] span {
|
| 32 |
-
font-size:
|
| 33 |
font-weight: bold !important;
|
| 34 |
}
|
| 35 |
</style>
|
|
@@ -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"$\small\text{{{text[0]}}}$", type="primary")
|
| 65 |
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|
|
|
|
| 29 |
color: #3366cc !important;
|
| 30 |
}
|
| 31 |
button[kind="primary"] span {
|
| 32 |
+
font-size: 30px !important;
|
| 33 |
font-weight: bold !important;
|
| 34 |
}
|
| 35 |
</style>
|
|
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
+
latex_content = r"$" + r"\\".join([rf"\text{{{line}}}" for line in text]) + r"$"
|
| 64 |
# button_clicked_dict[page] = st.button(rf"$\small\text{{{text[0]}}}$", type="primary")
|
| 65 |
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|