[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question to the algpseudocodigo style
From: |
Uwe Brauer |
Subject: |
question to the algpseudocodigo style |
Date: |
Sun, 27 Oct 2019 19:47:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Hi
The implementation of the style file which should supports
algpseudocodigo is relative straightforward, however I have one
question.
A typical environment looks like
\begin{algorithmic}[1]
\Function{[t,y]=mieuler}{$f,y0,intv,N$}\Comment{Entradas y salidas}
\State $t_{0}\gets t_{0}$\Comment{Initiacaion salida}
\State $y_{0}\gets y_{0}$\Comment{Initiacaion salida}
\For{$k=1:N$}\Comment{Main bucle}
\State $t_{k+1}\gets t_{k}+h$
\State $y_{k+1}\gets y_{k}+hf(t_k,y_{k})$
\EndFor\label{euclidendwhile}
\EndFunction
\end{algorithmic}
Now I want to run LaTeX-fill-environment
to obtain
\begin{algorithmic}[1]
Function{[t,y]=mieuler}{$f,y0,intv,N$}\Comment{Entradas y salidas}
State $t_{0}\gets t_{0}$\Comment{ salida}
State $y_{0}\gets y_{0}$\Comment{ salida}
For{$k=1:N$}\Comment{Main bucle}
State $t_{k+1}\gets t_{k}+h$
State $y_{k+1}\gets y_{k}+hf(t_k,y_{k})$
EndFor\label{euclidendwhile}
EndFunction
\end{algorithmic}
How can I achieve that?
Regards
Uwe Brauer
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- question to the algpseudocodigo style,
Uwe Brauer <=