Skip to content
Snippets Groups Projects
Commit c776f213 authored by kbistreck's avatar kbistreck
Browse files

Merge branch 'feature/addMathjax' into 'develop'

Adds mathjax

See merge request !28
parents f4520468 fdf016ef
No related branches found
No related tags found
3 merge requests!76Draft: Updated Python code example,!73Initial open source version,!28Adds mathjax
Pipeline #1607649 passed
window.MathJax = {
tex: {
inlineMath: [["$", "$"]],
displayMath: [["$$", "$$"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*",
processHtmlClass: "mathjax-render"
}
};
document$.subscribe(() => {
MathJax.startup.output.clearCache()
MathJax.typesetClear()
MathJax.texReset()
MathJax.typesetPromise()
})
\ No newline at end of file
......@@ -574,11 +574,11 @@ with
The forcing factors can be interpolated from given data and average values per mission are determined, considering climb, cruise and approach phase.
In a next step, the radiative forcing is normalized with the species' efficacy f and $RF_{2xCO_2}$, the RF which would result from a doubling of CO2:
In a next step, the radiative forcing is normalized with the species' efficacy f and $RF_{2\times CO_2}$, the RF which would result from a doubling of CO2:
$$
RF^{*}_{i}(t,h) = f_i \cdot \frac{RF_i(t,h)}{RF_{2xCO_2}}
$$
<div class="mathjax-render">
$ RF^{*}_{i}(t,h) = f_i \cdot \frac{RF_i(t,h)}{RF_{\left(2 \times CO_2\right)}} $
</div>
With these values, a temperature change can be determined:
......@@ -597,12 +597,14 @@ $\Delta T_{weighted}(t) = \Delta T(t) \cdot w(t)$
with the weighting function:
$w(t) = \begin{cases}
1, & t < H \\
\frac{1}{(1 + r)^{(t - H)}}, & H < t\le t_{max}\\
0, & t > t_{max}
\end{cases}
$
<div class="mathjax-render">
$ w(t) = \begin{cases}
1, & t < H \\
\frac{1}{(1 + r)^{(t - H)}}, & H < t\le t_{max}\\
0, & t > t_{max}
\end{cases}
$
</div>
with
......@@ -613,7 +615,7 @@ with
In a last step, the average temperature response ATR is calculated:
$ATR_i = \frac{1}{H} \cdot \int_{0}^{t_{max}} \Delta T_{weighted}(t) $
$ ATR_i = \frac{1}{H} \cdot \int_{0}^{t_{max}} \Delta T_{weighted}(t) $
The overall ATR is then:
......
......@@ -56,7 +56,9 @@ extra_javascript:
- assets/javascripts/katex.js # Local KaTeX script.
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js # CDN KaTeX script (same as local but hosted externally).
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js # KaTeX auto-render script (converts Latex syntax in formatted math).
- https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML
- assets/javascripts/mathjax.js # Local MathJax script
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js # MathJax renderer can be used for more complex formulas
# Additional CSS files to include for styling of website and mathematical notations (font, size etc.)
extra_css:
- assets/css/unicado.css # Custom CSS for styling the UNICADO site.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment