You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I don't think that we can add mathematical formulas in features description. For example, it's not possible to get this:
The solution I found is very simple which I would like to share with you, using MathJax. To do so, I've add the following new file math.ftl under serenity-core\serenity-report-resources\src\main\resources\freemarker\libraries directory and here is his content:
And I only included it in the file requirements.ftl under serenity-core\serenity-report-resources\src\main\resources\freemarker directory like this:
<#include "libraries/math.ftl">
and compiled the library.
After that it's possible to use the LaTeX language. For instance, to get the above result, here is the feature description:
Feature: The zeros of a second-degree polynomial
If \\(a \ne 0\\) and \\(\(b^2-4ac\) \ge 0\\), there are two solutions to \\(ax^2 + bx + c = 0\\) and they are \\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\]
**Euler formula**
\\[
\sum_{n=1}^{+\infty} \frac{1}{n^2} = \frac{\pi^2}{6}
\\]
Scenario: ...
Given ...
When ...
Then ...
Of course it's possible to combine MathJax with the Markdown.
The text was updated successfully, but these errors were encountered:
malekadrar
changed the title
Right now I don't think that we can add mathematical formulas in features description. For example, it's not possible to get this:
Ability to add mathematical formulas in features description
Mar 3, 2023
malekadrar
changed the title
Ability to add mathematical formulas in features description
[Enhancement] Ability to add mathematical formulas in features description
Mar 3, 2023
Right now I don't think that we can add mathematical formulas in features description. For example, it's not possible to get this:
The solution I found is very simple which I would like to share with you, using MathJax. To do so, I've add the following new file math.ftl under serenity-core\serenity-report-resources\src\main\resources\freemarker\libraries directory and here is his content:
And I only included it in the file requirements.ftl under serenity-core\serenity-report-resources\src\main\resources\freemarker directory like this:
and compiled the library.
After that it's possible to use the LaTeX language. For instance, to get the above result, here is the feature description:
Of course it's possible to combine MathJax with the Markdown.
Originally posted by @malekadrar in #3070
The text was updated successfully, but these errors were encountered: