sreepathi-ravikumar commited on
Commit
8bf23c7
·
verified ·
1 Parent(s): c57e05b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("%$") and segment.endswith("$"):
551
  # Remove %$ from start and $ from end
552
- latex_content = segment[2:-1]
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.05)
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):