Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-8586

After saving LaTeX preamble settings, extra backslash is added to them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      In "Site Administration" we can see "Modules" then "Filters" menu where we find "Settings" for "TeX Notations". When we click the "Settings" we see "LaTeX renderer Settings", especially there is "LaTeX preamble" settings.
      After I changed the setting a bit and save change then an extra backslash is added to them like
      "
      usepackage[latin1]

      {inputenc}" which should be "\usepackage[latin1]{inputenc}

      " and even if I pressed
      "Reset to defaults" button, it is not corrected, further if I press "Save changes" once again then there are 4 backslashes and so on. So we can't get correct LaTeX preamble anymore.
      I'll attach a screen shot which might help you to understand the problem. Thanks.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            adhok Atsuhito Kohda
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Mar/07