Nicolas Poulain a écrit :
> Hi list,
>
> The two recipes mimetex or jsMath work very well on my site but i'd like
> to make them work together :
> - While reading pages i'd rather use mimetex to show math contents
> - while ?action=print it would be better that jsMath does the job
>
> I guess there is a way with conditionnal include in local/config but i
> don't find how to write it.
Ok, I answer myself, i should have search better before posting.
The following code works well :
if ($GLOBALS["action"]=="print") {
include_once("$FarmD/cookbook/jsMath.php");
}
else {
include_once("$FarmD/cookbook/mimetex.php");
}
--
Nicolas Poulain
http://exomatik.net
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users