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

De Paint
m (1 révision importée)
 
m (1 version importée)
 
(6 versions intermédiaires par 2 utilisateurs non affichées)
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]{ \underline{ \underline{ #1 } } }
\newcommand{\tensor}[1]{ \underline{  #1 } }
}}
</source>
 
Exemple :  
 
  <nowiki>
{{MathJ|1=\huge{n \in \mathbb N}} }.


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


<nowiki> {{MathJ|C_{L_α} }} </nowiki>


<nowiki> {{MathJ|1=F(x)=\left&#124;\dfrac{1}{ 1+\dfrac{1}{1+x} }\right&#124;}}.   </nowiki>
{{MathJ|1=\require{html} \style{border-radius:10pt;border-style:solid;border-width:3pt;padding:1em;}{F(x)=\left\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }}.


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


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


<nowiki> {{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} } }} </nowiki>
{{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} } }}  


<nowiki> {{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} } }} </nowiki>
{{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} } }}  
</nowiki>


   
   
donnera :  
donnera :
 
{{MathJ|1=
\newcommand{\op}[1]{\operatorname{ #1 } }
\newcommand{\tensor}[1]{ \bar{  #1 } }
}}
 
{{MathJ|1=  \tensor{ \op{grad} } A = \frac{\part A}{\part x_i} ( \tensor{e} )_i }}.


{{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-width:3pt;padding:1em;}{F(x)=\left\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }}.   


{{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\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace } }}.  


{{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\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }}.


{{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 actuelle datée du 13 février 2024 à 21:02

Version : 1.36.1 2829 (2024-02-13) 20240213210232
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]{ \underline{ \underline{ #1 } } }
\newcommand{\tensor}[1]{ \underline{  #1 } } 
}}

Exemple :

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

{{MathJ|C_{L_α} }} 


{{MathJ|1=\require{html} \style{border-radius:10pt;border-style:solid;border-width:3pt;padding:1em;}{F(x)=\left\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }}.  

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

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

{{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{ \newcommand{\op}[1]{\operatorname{ #1 } } \newcommand{\tensor}[1]{ \bar{ #1 } } }[/math]

[math]\displaystyle{ \tensor{ \op{grad} } A = \frac{\part A}{\part x_i} ( \tensor{e} )_i }[/math].

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

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

[math]\displaystyle{ \require{html} \style{border-radius:10pt;border-style:solid;border-width:3pt;padding:1em;}{F(x)=\left\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }[/math].

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

[math]\displaystyle{ \require{enclose} \enclose{roundedbox}[mathcolor="red",mathbackground="#6ad898"]{ F(x)=\left\lbrace\dfrac{1}{ 1+\dfrac{1}{1+x} }\right\rbrace} }[/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]