Différences entre les versions de « Modèle:MathJ »

De Paint
m (1 révision importée)
toross>WikiAdmin
m (1 révision importée)
Ligne 1 : Ligne 1 :
<includeonly>{{#tag:math|{{{1}}}}}</includeonly><noinclude>
<includeonly>{{#tag:math|{{{1}}}}}</includeonly><noinclude>
{{Model  
{{Model  
|class=MathJ
|class=mathJ
|texte=Ce modèle sert à écrire des formules mathématiques écrits dans le langage LaTex et adapté à un contenu web. Pour [https://www.mathjax.org/ MathJax] utilise SVG et CSS.
|texte=Ce modèle sert à écrire des formules mathématiques écrits dans le langage LaTex et adapté à un contenu web. Pour [https://www.mathjax.org/ MathJax] utilise SVG et CSS.
|syntaxe=<nowiki>{{mathJ|texte}}</nowiki>
|syntaxe=<nowiki>{{mathJ|texte}}</nowiki>
Ligne 10 : Ligne 10 :
{{Remarque|texte=l'ajout de {{m|1=1=}} permet d'utiliser le signe = dans le texte sans qu'il soit interprété comme l’assigne ment d'un paramètre du modèle {{m|mathJ}}. }}
{{Remarque|texte=l'ajout de {{m|1=1=}} permet d'utiliser le signe = dans le texte sans qu'il soit interprété comme l’assigne ment d'un paramètre du modèle {{m|mathJ}}. }}
    
    
Exemple :
Pour ajouter des opérateur pour une page donnée, on peut ajouter ceci en début de page :
<source lang="text">
{{mathJ|1=
\newcommand{\op}[1]{\operatorname{ #1 } }
\newcommand{\vdiv}{\operatorname{div} }
\newcommand{\rot}{\operatorname{rot} }
\newcommand{\grad}{\operatorname{grad} }
\newcommand{\DD}{ \operatorname{D} }
\newcommand{\D}{ \operatorname{d} }
\newcommand{\Dp}{ \operatorname{\partial} }
\newcommand{\pvect}[2] {{#1} \wedge {#2}}
\newcommand{\pscal}[2]{ {#1} \cdot {#2} }
\newcommand{\pscala}[2]{ \langle {#1} , {#2} \rangle }
\newcommand{\tensora}[1]{ \bar{ \bar{ #1 } } }
\newcommand{\tensor}[1]{ \bar{  #1 } }
}}
</source>
 
Exemple :  


<nowiki> {{MathJ|1=n \in \mathbb N}}. </nowiki>
<nowiki> {{MathJ|1=\huge{n \in \mathbb N}} }. </nowiki>


<nowiki> {{MathJ|C_{L_α} }} </nowiki>
<nowiki> {{MathJ|C_{L_α} }} </nowiki>
Ligne 27 : Ligne 45 :


   
   
donnera :  
donnera :


{{MathJ|n \in \mathbb N}}.
{{MathJ|n \in \mathbb N}}.


{{MathJ|C_{L_α} }}
{{MathJ|1=C_{L_α} }}


{{MathJ|1=F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;}}.   
{{MathJ|1=\require{html} \style{border-radius:10pt;border-style:solid;border-color:#FF0000;border-width:3pt;background-color:#80FF80;padding:1em;}{F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;} }}.   


{{MathJ|1=F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;}}.  
{{MathJ|1=\bbox[yellow, border: 1px solid red]{F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124; } }}.  


{{MathJ|1=F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;}}.
{{MathJ|1=\require{enclose} \enclose{roundedbox}[mathcolor="red",mathbackground="#6ad898"]{ F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;} }}.


{{MathJ|1=y = x + A_i }} {{MathJ|1=y = x + A }} {{MathJ|1=y = \frac{x+\frac{2x+1}{2x-4} }{A+\frac{x^5}{2x^6-4} } }}
{{MathJ|1=\require{enclose} \enclose{roundedbox}{ y = x + A_i } }} {{MathJ|1=y = x + A }} {{MathJ|1=\enclose{roundedbox}{ y = \frac{x+\frac{2x+1}{2x-4} }{A+\frac{x^5}{2x^6-4} } } }}


{{MathJ|1=y = x + A_i }} {{MathJ|1=y = x + A }} {{MathJ|1=y = \dfrac{x+\dfrac{2x+1}{2x-4} }{A+\dfrac{x^5}{2x^6-4} } }}
{{MathJ|1=y = x + A_i }} {{MathJ|1=y = x + A }} {{MathJ|1=\enclose{roundedbox}{ y = \dfrac{x+\dfrac{2x+1}{2x-4} }{A+\dfrac{x^5}{2x^6-4} } } }}


</noinclude>
</noinclude>

Version du 28 novembre 2019 à 10:41

Version : 1.36.1 1828 (2019-11-28) 20191128104108
Résumé :
Ce modèle sert à écrire des formules mathématiques écrits dans le langage LaTex et adapté à un contenu web. Pour MathJax utilise SVG et CSS.

{{mathJ|texte}}

texte
texte dans le langage mathématique en Latex.
Rq l'ajout de 1= permet d'utiliser le signe = dans le texte sans qu'il soit interprété comme l’assigne ment d'un paramètre du modèle mathJ.

Pour ajouter des opérateur pour une page donnée, on peut ajouter ceci en début de page :

{{mathJ|1=
\newcommand{\op}[1]{\operatorname{ #1 } }
\newcommand{\vdiv}{\operatorname{div} }
\newcommand{\rot}{\operatorname{rot} }
\newcommand{\grad}{\operatorname{grad} }
\newcommand{\DD}{ \operatorname{D} }
\newcommand{\D}{ \operatorname{d} }
\newcommand{\Dp}{ \operatorname{\partial} }
\newcommand{\pvect}[2] {{#1} \wedge {#2}}
\newcommand{\pscal}[2]{ {#1} \cdot {#2} }
\newcommand{\pscala}[2]{ \langle {#1} , {#2} \rangle }
\newcommand{\tensora}[1]{ \bar{ \bar{ #1 } } }
\newcommand{\tensor}[1]{ \bar{  #1 } } 
}}

Exemple :

{{MathJ|1=\huge{n \in \mathbb N}} }.

{{MathJ|C_{L_α} }}

{{MathJ|1=F(x)=\left|\dfrac{1}{ 1+\dfrac{1}{1+x} }\right|}}.

{{MathJ|1=F(x)=\left|\dfrac{1}{ 1+\dfrac{1}{1+x} }\right|}}.

{{MathJ|1=F(x)=\left|\dfrac{1}{ 1+\dfrac{1}{1+x} }\right|}}.

{{MathJ|1=y = x + A_i }} {{MathJ|1=y = x + A }} {{MathJ|1=y = \frac{x+\frac{2x+1}{2x-4} }{A+\frac{x^5}{2x^6-4} } }}

{{MathJ|1=y = x + A_i }} {{MathJ|1=y = x + A }} {{MathJ|1=y = \dfrac{x+\dfrac{2x+1}{2x-4} }{A+\dfrac{x^5}{2x^6-4} } }}


donnera :

[math]\displaystyle{ n \in \mathbb N }[/math].

[math]\displaystyle{ C_{L_α} }[/math]

[math]\displaystyle{ \require{html} \style{border-radius:10pt;border-style:solid;border-color:#FF0000;border-width:3pt;background-color:#80FF80;padding:1em;}{F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;} }[/math].

[math]\displaystyle{ \bbox[yellow, border: 1px solid red]{F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124; } }[/math].

[math]\displaystyle{ \require{enclose} \enclose{roundedbox}[mathcolor="red",mathbackground="#6ad898"]{ F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;} }[/math].

[math]\displaystyle{ \require{enclose} \enclose{roundedbox}{ y = x + A_i } }[/math] [math]\displaystyle{ y = x + A }[/math] [math]\displaystyle{ \enclose{roundedbox}{ y = \frac{x+\frac{2x+1}{2x-4} }{A+\frac{x^5}{2x^6-4} } } }[/math]

[math]\displaystyle{ y = x + A_i }[/math] [math]\displaystyle{ y = x + A }[/math] [math]\displaystyle{ \enclose{roundedbox}{ y = \dfrac{x+\dfrac{2x+1}{2x-4} }{A+\dfrac{x^5}{2x^6-4} } } }[/math]