Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think one of the better ways to do this might be to embed images using the Google Charts API.</p> <pre><code>&lt;img src="http://chart.apis.google.com/chart?cht=tx&amp;chl=x=\frac{-b%20\pm%20\sqrt{b^2-4ac}}{2a}"&gt; </code></pre> <p>To Learn more: <a href="https://developers.google.com/chart/image/" rel="nofollow noreferrer">https://developers.google.com/chart/image/</a> [note, the API has been officially deprecated, but will work until April 2015] </p> <p>If you really must use LaTeX and some js library, I think one way you could accomplish this is by injecting a script tag into the iframe. I hope this is a good starting point.</p> <p><strong>Example:</strong></p> <pre><code>// ==UserScript== // @name Test Gmail Alterations // @version 1 // @author Justen // @description Test Alter Email // @include https://mail.google.com/mail/* // @include http://mail.google.com/mail/* // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // ==/UserScript== (function GmailIframeInject() { GM_log('Starting GMail iFrame Injection'); var GmailCode = function() { // Your code here; // The ':pd' (div id) changes, so you might have to do some extra work var mail = document.getElementById(':pd'); mail.innerHTML = '&lt;h1&gt;Hello, World!&lt;/h1&gt;'; }; var iframe = document.getElementById('canvas_frame'); var doc = null; if( iframe ) { GM_log('Got iFrame'); doc = iframe.contentDocument; } else { GM_log('ERROR: Could not get iframe with id canvas_frame'); return } if( doc ) { GM_log('Injecting GmailCode'); var code = "(" + GmailCode + ")();" doc.body.appendChild(doc.createElement('script')).innerHTML=code; } else { GM_log('ERROR: Could not get iframe content document'); return; } })(); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload