From 5f349cc9da74e33bd3ebbaf3020995a6815abfc5 Mon Sep 17 00:00:00 2001 From: Nageh Date: Sun, 28 Apr 2013 14:12:12 +0200 Subject: [PATCH] MathJax: Ignore pagecolor command This command was not yet supported. This implements it as a noop. In MathJax it's not really useful to be able to define the background color as sometimes is required in rendered png mode. Bug 35186 Change-Id: If6573901bafd8599a01979bcbff89e52b51e4ffd --- modules/MathJax/extensions/TeX/texvc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/MathJax/extensions/TeX/texvc.js b/modules/MathJax/extensions/TeX/texvc.js index d506867..a7eff6e 100644 --- a/modules/MathJax/extensions/TeX/texvc.js +++ b/modules/MathJax/extensions/TeX/texvc.js @@ -118,8 +118,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { arcsec: 'NamedFn', arccsc: 'NamedFn', bold: ['Macro','\\boldsymbol'], // boldsymbol - href: 'NamedFn', // disable dangerous command - style: 'NamedFn' // disable dangerous command + href: 'NamedFn', // disable dangerous command + style: 'NamedFn', // disable dangerous command + pagecolor: ['Macro','',1] // ignore \pagecolor{} } });