Skip to content

Commit

Permalink
LaTeX strings should be raw strings without escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Oct 19, 2024
1 parent 6374a05 commit fe8e2dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions GUI/panels/scroll_panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,28 +152,28 @@ def __init__(self, geo):
# The sizer for all the outputs
sizer_for_outputs = wx.FlexGridSizer(cols = 2, vgap = 4, hgap = 4)

label1 = ReadOnlyLaTeXLabel('$\phi_{i0}$', parent = panel, remaining_label='[rad]')
label1 = ReadOnlyLaTeXLabel(r'$\phi_{i0}$', parent = panel, remaining_label='[rad]')
self.phi_i0 = wx.TextCtrl(panel)
self.phi_i0.SetEditable(False)
label2 = ReadOnlyLaTeXLabel('$\phi_{is}$', parent = panel, remaining_label='[rad]')
label2 = ReadOnlyLaTeXLabel(r'$\phi_{is}$', parent = panel, remaining_label='[rad]')
self.phi_is = wx.TextCtrl(panel)
self.phi_is.SetEditable(False)
label3 = ReadOnlyLaTeXLabel('$\phi_{ie}$', parent = panel, remaining_label='[rad]')
label3 = ReadOnlyLaTeXLabel(r'$\phi_{ie}$', parent = panel, remaining_label='[rad]')
self.phi_ie = wx.TextCtrl(panel)
self.phi_ie.SetEditable(False)
label4 = ReadOnlyLaTeXLabel('$\phi_{o0}$', parent = panel, remaining_label='[rad]')
label4 = ReadOnlyLaTeXLabel(r'$\phi_{o0}$', parent = panel, remaining_label='[rad]')
self.phi_o0 = wx.TextCtrl(panel)
self.phi_o0.SetEditable(False)
label5 = ReadOnlyLaTeXLabel('$\phi_{os}$', parent = panel, remaining_label='[rad]')
label5 = ReadOnlyLaTeXLabel(r'$\phi_{os}$', parent = panel, remaining_label='[rad]')
self.phi_os = wx.TextCtrl(panel)
self.phi_os.SetEditable(False)
label6 = ReadOnlyLaTeXLabel('$\phi_{oe}$', parent = panel, remaining_label='[rad]')
label6 = ReadOnlyLaTeXLabel(r'$\phi_{oe}$', parent = panel, remaining_label='[rad]')
self.phi_oe = wx.TextCtrl(panel)
self.phi_oe.SetEditable(False)
label7 = ReadOnlyLaTeXLabel('$r_b$', parent = panel, remaining_label='[m]')
label7 = ReadOnlyLaTeXLabel(r'$r_b$', parent = panel, remaining_label='[m]')
self.rb = wx.TextCtrl(panel)
self.rb.SetEditable(False)
label8 = ReadOnlyLaTeXLabel('$h_s$', parent = panel, remaining_label='[m]')
label8 = ReadOnlyLaTeXLabel(r'$h_s$', parent = panel, remaining_label='[m]')
self.hs = wx.TextCtrl(panel)
self.hs.SetEditable(False)

Expand Down

0 comments on commit fe8e2dd

Please sign in to comment.