79275971

Date: 2024-12-12 17:10:22
Score: 1
Natty:
Report link

@bb1's solution works great and answers the question, and I wanted to add details for future visitors by LaTeX users:

Summary of Brace Usage

Input String Output String Purpose
f"{{value}}" {value} Escapes {} for literal braces
fr"$x^{{2}}$" $x^{2}$ LaTeX grouping braces
fr"$x^{{{value}}}$" $x^{2}$ Dynamic Python value inside LaTeX
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @bb1's
  • Low reputation (0.5):
Posted by: Toonia