summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2021-06-14 12:35:54 +0200
committerVivien Kraus <vivien@planete-kraus.eu>2021-06-14 12:35:54 +0200
commitcb69f52e2de94363061a23899660999d3ca64dbb (patch)
treee4c9303c37ebc807a805c036a182ddf9462af948
parent3edf2b6be4945efbfe3e8e6604ac06067e633d35 (diff)
Algorithme: prendre en charge les algorithmes itératifs1.2.4
-rw-r--r--latex/algorithm.xsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/latex/algorithm.xsl b/latex/algorithm.xsl
index 138419f..66d3754 100644
--- a/latex/algorithm.xsl
+++ b/latex/algorithm.xsl
@@ -39,6 +39,16 @@
<xsl:text>&#xA;</xsl:text>
</xsl:template>
+ <xsl:template match="alg:initialisation">
+ <xsl:text>\State \textbf{Initialisation~:}&#xA;</xsl:text>
+ <xsl:apply-templates />
+ </xsl:template>
+
+ <xsl:template match="alg:itération">
+ <xsl:text>\State \textbf{Itération jusqu’à convergence~:}&#xA;</xsl:text>
+ <xsl:apply-templates />
+ </xsl:template>
+
<xsl:template match="alg:state[count(ancestor::alg:state) = 0]" mode="state-index">
<xsl:value-of select="1 + count(preceding-sibling::alg:state)" />
</xsl:template>