Odoo Help

Fernando Sarabia
On 2/13/18, 10:58 AM


Thank you for your interest in helping me out.

The view is backend...  MathJax, after the page loads, looks for latex expressions between "$" signs (for example: $\sigma$) and converts to the graphic symbol of the greek letter in svg.  I was able to make it work with the following code (see below).  It works but only once.  As soon as I load a new view, mathjax does no longer work.  The following line is supposed to re-execute MathJax everytime the page is reloaded.  MathJax.Hub.Queue(["Typeset",MathJax.Hub]);  but it does not work for some reason.

Thanks again,


<template id="editor_head" inherit_id="web.layout" name="My Func">

<xpath expr="//head" position="after">

<!-- jquery -->

<script type="text/x-mathjax-config">



jax: ["input/TeX", "output/CommonHTML"],

tex2jax: {

inlineMath: [ ['$','$'], ["\\(","\\)"] ],

displayMath: [ ['$$','$$'], ["\\[","\\]"] ],

processEscapes: false




<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_SVG'></script>

<!-- plotly -->



I am sure this code will works when the view is editor_head template, and your problem is its not loading on other views? try to make it in a separate js file and include in web.assets_backend.

Hilar AK
on 2/14/18, 12:14 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 2/12/18, 8:12 PM
Seen: 458 times
Last updated: 4/10/18, 5:41 PM