Update app.py
Browse files
app.py
CHANGED
|
@@ -547,9 +547,9 @@ class GeneratedMathScene(Scene):
|
|
| 547 |
continue
|
| 548 |
|
| 549 |
# Check if it's a LaTeX equation (starts with %$ and ends with $)
|
| 550 |
-
if segment.startswith("
|
| 551 |
# Remove %$ from start and $ from end
|
| 552 |
-
latex_content = segment[
|
| 553 |
mob = MathTex(latex_content, color=color, font_size=equation_size)
|
| 554 |
else:
|
| 555 |
# Regular text
|
|
@@ -561,7 +561,7 @@ class GeneratedMathScene(Scene):
|
|
| 561 |
return VGroup()
|
| 562 |
|
| 563 |
# Arrange horizontally with minimal spacing
|
| 564 |
-
inline_group = VGroup(*mobjects).arrange(RIGHT, buff=0.
|
| 565 |
return inline_group
|
| 566 |
|
| 567 |
def make_wrapped_paragraph(content, color, font, font_size, line_spacing=0.2):
|
|
|
|
| 547 |
continue
|
| 548 |
|
| 549 |
# Check if it's a LaTeX equation (starts with %$ and ends with $)
|
| 550 |
+
if segment.startswith("%"):
|
| 551 |
# Remove %$ from start and $ from end
|
| 552 |
+
latex_content = segment[1:]
|
| 553 |
mob = MathTex(latex_content, color=color, font_size=equation_size)
|
| 554 |
else:
|
| 555 |
# Regular text
|
|
|
|
| 561 |
return VGroup()
|
| 562 |
|
| 563 |
# Arrange horizontally with minimal spacing
|
| 564 |
+
inline_group = VGroup(*mobjects).arrange(RIGHT, buff=0.1)
|
| 565 |
return inline_group
|
| 566 |
|
| 567 |
def make_wrapped_paragraph(content, color, font, font_size, line_spacing=0.2):
|