Uploaded image for project: 'LaTeX'
  1. LaTeX
  2. LATEX-107

Add ability to customize Preamble and XDOM templates with UI Extension Points

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 1.13
    • 1.12.4
    • Syntax
    • None
    • Unknown
    • N/A

    Description

      Right now, an extension wishing to inject some LaTeX content will need to override the default template. This causes 2 issues:

      • Users are no longer able to provide extra customizations for these templates
      • The overridden template needs to either copy/paste the default template content or read it and do search/replace with some complexity to identify where to inject the customizations.

      This issues proposes to introduce 3 UIXPs to resolve these 2 problems:

      • In Preamble to be able to inject content after the \usagepackage: org.xwiki.contrib.latex.Preamble.usepackage.after
      • In Preamble at beginning and end: org.xwiki.contrib.latex.Preamble.before and org.xwiki.contrib.latex.Preamble.after
      • In XDOM at beginning and end: org.xwiki.contrib.latex.XDOM.before and org.xwiki.contrib.latex.XDOM.after

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: