DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Administrator manual

Target group: Administrators

Installation

  1. Install the extension just like any other extension from the TYPO3 extension repository.
  2. Make sure the latex package and the mimetex package are installed on your server
  3. Create a folder in fileadmin, for example fileadmin/mathtex.
  4. Insert the static template from extension
  5. In the constant editor insert the correct paths for the mimetex executable and the image paths.
  6. In the page typoscript setup of your root page enter the following:

Extending the layout-field.:

## extend Layout-Field
TCEFORM.tt_content.layout {
        # removeItems = 0,1,2,3
        addItems.100 = Mathtex center
        addItems.101 = Mathtex left
        addItems.102 = Mathtex right
}
  1. Modify your template Textmedia.html (FluidStyledContent) like this to switch for the different layout values:

    <f:if condition="{data.layout} < 100">
            <f:then>
                      <f:format.html>{data.bodytext}</f:format.html>
            </f:then>
            <f:else>
              <f:if condition="{data.layout} == 100">
                    <p class="align-center">
                      <f:cObject typoscriptObjectPath="lib.mathtex" data="{data.bodytext}" />
                    </p>
              </f:if>
              <f:if condition="{data.layout} == 101">
                    <p class="align-left">
                      <f:cObject typoscriptObjectPath="lib.mathtex" data="{data.bodytext}" />
                    </p>
              </f:if>
              <f:if condition="{data.layout} == 102">
                    <p class="align-right">
                      <f:cObject typoscriptObjectPath="lib.mathtex" data="{data.bodytext}" />
                    </p>
              </f:if>
      </f:else>
    </f:if>
    

Path examples

absolute path to the images

/var/www/vhosts/yourwebsite.de/fileadmin/mathtex

Path to mimetex executable

/usr/bin/mimetex

URL-Path to the images

http://www.yourwebsite.de/fileadmin/mathtex

If the paths you entered are ok you are ready to go!

Insert in the RTE a line like this in text mode and save it.

a=int_{-infty}^2{sqrt[5]{7x^42}dx

Select a layout entered above (Mathtex center) in the Appearance Tab.

Save all and view the page...

In the frontend you should now see the generated image file

If something fails, check the paths you entered in the constant-editor, check if images are generated and so on...

Example Typoscript for your fluid styled content paths

It is a good behavior to copy the fluid styled content templates, partials and layouts to a destination directory in fileadmin as shown below.

lib {
  contentElement {
    templateRootPaths {
      50 = fileadmin/FluidStyledContent/Resources/Private/Templates/
    }
    partialRootPaths {
      50 = fileadmin/FluidStyledContent/Resources/Private/Partials/
    }
    layoutRootPaths {
      50 = fileadmin/FluidStyledContent/Resources/Private/Layouts/
    }
  }
}

FAQ

No images are rendered - check if the images are created in fileadmin/mathtex or the path you entered in the configuration of the plugin.