ich benutze die Pakete algorithm und algorithmic um meinen Algorithmus zu definieren. Jedoch ist dieser viel zu lang für eine Seite, ich habe schon überall im internet geguckt, aber die vorschläge sind dass ich
\usepackage{algcompatible} und algstore und restore verwende, aber dies funktioniert irgendwie bei mir nicht :S.. Auf die float Umgebung kann ich auch nicht verzichten, da ich eine caption fr mein Algorithmus setzen muss. Weiss vllt jemand was ich falsch mache oder wie ich es machen könnte??
\documentclass[a4paper,10pt, twoside]{book} \usepackage[utf8]{inputenc} \usepackage{algorithm} %\usepackage{algcompatible} funktioniert ja bei mir nicht \usepackage{algorithmic} \renewcommand{\algorithmicrequire}{\textbf{INPUT:}} \begin{document} \begin{algorithm} \caption{My algorithm} \begin{algorithmic} \REQUIRE \(a, c, b ,d \) \STATE some information and values.. \STATE some information and values.. \STATE some information and values.. \STATE some information and values.. \STATE some information and values.. \STATE some information and values.. \STATE some information and values.. \FOR{\(j=e+1\) \TO \(s-1\)} } \STATE do something \ENDIF \IF{(etwas \OR anderes) \AND nochEineBedingug} \STATE Other..... \STATE Other..... \STATE Other..... % hier irgendwo würde ich gerne meinen algorithmus in zwei teilen, \STATE Other..... % die for schleife ist hier immer noch aktiv! \STATE Other..... \ENDIF \ENDFOR \end{algorithmic} \end{algorithm} \end{document}