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

De Paint
toross>WikiAdmin
m (1 version importée)
 
(Aucune différence)

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]