Make sure you register to our monthly newsletter, it's going out soon! Stay up do date about the latest energy news and our current activities.
Click here to register!

Difference between revisions of "Insert Formulas"

From energypedia
***** (***** | *****)
***** (***** | *****)
Line 8: Line 8:
 
Energypedia also offers the possibility to include formulas in an article. To insert a formula: 
 
Energypedia also offers the possibility to include formulas in an article. To insert a formula: 
  
1. Open the article in [[Edit an Article|edit mode]] and switch to "source editing"
+
1. Open the article in [[Edit an Article|edit mode]] and click on "Insert". Select "Math Formula"
  
 +
[[File:Capture d’écran 2021-09-15 à 11.13.35.png|600x600px]]
  
[[File:Capture d’écran 2021-09-15 à 09.59.33.png|700x700px]]<div style="clear: both"></div>
+
<br /><u>The Wikitext code for an example formula looks like this:</u><pre> <math>
2. Click on "Mathematical formula (LaTeX)"
 
 
 
<br/><u>The Wikitext code for an example formula looks like this:</u><pre> <math>
 
 
  \operatorname{erfc}(x) =
 
  \operatorname{erfc}(x) =
 
  \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
 
  \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
Line 34: Line 32:
  
 
*The overall formula needs to be enclosed by &lt;math&gt; and &lt;/math&gt;&nbsp;tags.
 
*The overall formula needs to be enclosed by &lt;math&gt; and &lt;/math&gt;&nbsp;tags.
*The formula itself is written in LaTeX code<br/>
+
*The formula itself is written in LaTeX code<br/><br />
 
 
<br/>
 
  
 
<u>Find more help here:</u>
 
<u>Find more help here:</u>

Revision as of 09:15, 15 September 2021


Insert Formulas

Energypedia also offers the possibility to include formulas in an article. To insert a formula: 

1. Open the article in edit mode and click on "Insert". Select "Math Formula"

Capture d’écran 2021-09-15 à 11.13.35.png


The Wikitext code for an example formula looks like this:

 <math>
 \operatorname{erfc}(x) =
 \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
 \frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}}
 </math> 


Which results in a formula like this:


What you see is:

  • The overall formula needs to be enclosed by <math> and </math> tags.
  • The formula itself is written in LaTeX code

Find more help here: