Some help needed with pseudocode in LaTeXPseudocode in latex with multiple for cyclesAlgorithm and IEEEtranPseudocode: Function vs. Procedure?Pseudocode in LaTeXProblem in Algorithm CodeFormatting in Latex - PseudocodeWritting Pseudocode by using package algorithmicPseudocode LatexStyle Pseudocode in LaTeXLatex formatting a pseudocodePseudocode in latex with multiple for cycles

Does Shadow Sorcerer's Eyes of the Dark work on all magical darkness or just his/hers?

Help with identifying unique aircraft over NE Pennsylvania

Don't understand why (5 | -2) > 0 is False where (5 or -2) > 0 is True

Is "inadequate referencing" a euphemism for plagiarism?

What is the tangent at a sharp point on a curve?

Why doesn't the chatan sign the ketubah?

Unfrosted light bulb

Emojional cryptic crossword

Do people actually use the word "kaputt" in conversation?

Asserting that Atheism and Theism are both faith based positions

Why are there no stars visible in cislunar space?

Someone scrambled my calling sign- who am I?

Acquisition - what happens to stock?

Make the largest box from a cardboard sheet

What will the french man say?

Does convergence of polynomials imply that of its coefficients?

Is xar preinstalled on macOS?

Nested Dynamic SOQL Query

10 year ban after applying for a UK student visa

UK Tourist Visa- Enquiry

Have any astronauts/cosmonauts died in space?

Isn't the word "experience" wrongly used in this context?

How much propellant is used up until liftoff?

Jem'Hadar, something strange about their life expectancy



Some help needed with pseudocode in LaTeX


Pseudocode in latex with multiple for cyclesAlgorithm and IEEEtranPseudocode: Function vs. Procedure?Pseudocode in LaTeXProblem in Algorithm CodeFormatting in Latex - PseudocodeWritting Pseudocode by using package algorithmicPseudocode LatexStyle Pseudocode in LaTeXLatex formatting a pseudocodePseudocode in latex with multiple for cycles













0















Hello trying to writte pseudocode in Latex



I cant fix mistake in line 8



code:



beginalgorithm captionUčící mechanismus všech obcí
beginalgorithmic[1]
While Obce ještě nedokonvergovaly
State t=t+1
ForEach KNIES_p $in$ Population
For$X_i$ $in$ Zařazené body
State KNIES_p.quad textbfLearn($X_i$, $beta_t = fractbeta_TT$)
EndFor
IfKNIES_p $qaq$ KNIES
State KNIES(t) = KNIES_p
endalgorithmic
endalgorithm


enter image description here










share|improve this question









New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 3





    Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

    – leandriis
    3 hours ago







  • 1





    Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

    – Kurt
    2 hours ago















0















Hello trying to writte pseudocode in Latex



I cant fix mistake in line 8



code:



beginalgorithm captionUčící mechanismus všech obcí
beginalgorithmic[1]
While Obce ještě nedokonvergovaly
State t=t+1
ForEach KNIES_p $in$ Population
For$X_i$ $in$ Zařazené body
State KNIES_p.quad textbfLearn($X_i$, $beta_t = fractbeta_TT$)
EndFor
IfKNIES_p $qaq$ KNIES
State KNIES(t) = KNIES_p
endalgorithmic
endalgorithm


enter image description here










share|improve this question









New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 3





    Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

    – leandriis
    3 hours ago







  • 1





    Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

    – Kurt
    2 hours ago













0












0








0


1






Hello trying to writte pseudocode in Latex



I cant fix mistake in line 8



code:



beginalgorithm captionUčící mechanismus všech obcí
beginalgorithmic[1]
While Obce ještě nedokonvergovaly
State t=t+1
ForEach KNIES_p $in$ Population
For$X_i$ $in$ Zařazené body
State KNIES_p.quad textbfLearn($X_i$, $beta_t = fractbeta_TT$)
EndFor
IfKNIES_p $qaq$ KNIES
State KNIES(t) = KNIES_p
endalgorithmic
endalgorithm


enter image description here










share|improve this question









New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Hello trying to writte pseudocode in Latex



I cant fix mistake in line 8



code:



beginalgorithm captionUčící mechanismus všech obcí
beginalgorithmic[1]
While Obce ještě nedokonvergovaly
State t=t+1
ForEach KNIES_p $in$ Population
For$X_i$ $in$ Zařazené body
State KNIES_p.quad textbfLearn($X_i$, $beta_t = fractbeta_TT$)
EndFor
IfKNIES_p $qaq$ KNIES
State KNIES(t) = KNIES_p
endalgorithmic
endalgorithm


enter image description here







algorithmic pseudocode






share|improve this question









New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 12 mins ago









egreg

727k8819223231




727k8819223231






New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









Petr HrobařPetr Hrobař

11




11




New contributor




Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Petr Hrobař is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 3





    Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

    – leandriis
    3 hours ago







  • 1





    Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

    – Kurt
    2 hours ago












  • 3





    Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

    – leandriis
    3 hours ago







  • 1





    Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

    – Kurt
    2 hours ago







3




3





Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

– leandriis
3 hours ago






Welcome to TeX.SX! Could you please turn your code fragment into a compilabe minimal working example (MWE) by adding the documentclass and the relevant packages. Please also explain the connection to biblatex as you used this tag.

– leandriis
3 hours ago





1




1





Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

– Kurt
2 hours ago





Please do not shout on us (Change chapital letters in title of question)! How is this related to your last question tex.stackexchange.com/questions/479937/… ? Which error do you get and please make your code snippet compilable ....

– Kurt
2 hours ago










1 Answer
1






active

oldest

votes


















0














You have many errors, mostly due to improper treatment of math symbols.



There is no predefined ForEach block, you have to define it yourself.



Supply a definition for qaq, that's not a standard command.



documentclass[a4paper]article
usepackage[T1]fontenc
usepackage[czech]babel

usepackagealgorithm,algpseudocode

algblockxForEachEndForEachtextbfforeach textbfend foreach
newcommandivar[1]mathit#1
newcommandtvar[1]textrm#1

newcommandqaq??? % what's this?

begindocument

beginalgorithm captionUčící mechanismus všech obcí
beginalgorithmic[1]
While Obce ještě nedokonvergovaly
State $t=t+1$
ForEach $ivarKNIES_p in tvarPopulation$
For$X_iintvarZařazené body$
State $ivarKNIES_p$.quad
textbfLearn($X_i$, $beta_t = fractbeta_TT$)
EndFor
EndForEach
If$ivarKNIES_p qaq ivarKNIES$
State $ivarKNIES(t) = ivarKNIES_p$
EndIf
EndWhile
endalgorithmic
endalgorithm

enddocument


enter image description here






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Petr Hrobař is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480139%2fsome-help-needed-with-pseudocode-in-latex%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You have many errors, mostly due to improper treatment of math symbols.



    There is no predefined ForEach block, you have to define it yourself.



    Supply a definition for qaq, that's not a standard command.



    documentclass[a4paper]article
    usepackage[T1]fontenc
    usepackage[czech]babel

    usepackagealgorithm,algpseudocode

    algblockxForEachEndForEachtextbfforeach textbfend foreach
    newcommandivar[1]mathit#1
    newcommandtvar[1]textrm#1

    newcommandqaq??? % what's this?

    begindocument

    beginalgorithm captionUčící mechanismus všech obcí
    beginalgorithmic[1]
    While Obce ještě nedokonvergovaly
    State $t=t+1$
    ForEach $ivarKNIES_p in tvarPopulation$
    For$X_iintvarZařazené body$
    State $ivarKNIES_p$.quad
    textbfLearn($X_i$, $beta_t = fractbeta_TT$)
    EndFor
    EndForEach
    If$ivarKNIES_p qaq ivarKNIES$
    State $ivarKNIES(t) = ivarKNIES_p$
    EndIf
    EndWhile
    endalgorithmic
    endalgorithm

    enddocument


    enter image description here






    share|improve this answer



























      0














      You have many errors, mostly due to improper treatment of math symbols.



      There is no predefined ForEach block, you have to define it yourself.



      Supply a definition for qaq, that's not a standard command.



      documentclass[a4paper]article
      usepackage[T1]fontenc
      usepackage[czech]babel

      usepackagealgorithm,algpseudocode

      algblockxForEachEndForEachtextbfforeach textbfend foreach
      newcommandivar[1]mathit#1
      newcommandtvar[1]textrm#1

      newcommandqaq??? % what's this?

      begindocument

      beginalgorithm captionUčící mechanismus všech obcí
      beginalgorithmic[1]
      While Obce ještě nedokonvergovaly
      State $t=t+1$
      ForEach $ivarKNIES_p in tvarPopulation$
      For$X_iintvarZařazené body$
      State $ivarKNIES_p$.quad
      textbfLearn($X_i$, $beta_t = fractbeta_TT$)
      EndFor
      EndForEach
      If$ivarKNIES_p qaq ivarKNIES$
      State $ivarKNIES(t) = ivarKNIES_p$
      EndIf
      EndWhile
      endalgorithmic
      endalgorithm

      enddocument


      enter image description here






      share|improve this answer

























        0












        0








        0







        You have many errors, mostly due to improper treatment of math symbols.



        There is no predefined ForEach block, you have to define it yourself.



        Supply a definition for qaq, that's not a standard command.



        documentclass[a4paper]article
        usepackage[T1]fontenc
        usepackage[czech]babel

        usepackagealgorithm,algpseudocode

        algblockxForEachEndForEachtextbfforeach textbfend foreach
        newcommandivar[1]mathit#1
        newcommandtvar[1]textrm#1

        newcommandqaq??? % what's this?

        begindocument

        beginalgorithm captionUčící mechanismus všech obcí
        beginalgorithmic[1]
        While Obce ještě nedokonvergovaly
        State $t=t+1$
        ForEach $ivarKNIES_p in tvarPopulation$
        For$X_iintvarZařazené body$
        State $ivarKNIES_p$.quad
        textbfLearn($X_i$, $beta_t = fractbeta_TT$)
        EndFor
        EndForEach
        If$ivarKNIES_p qaq ivarKNIES$
        State $ivarKNIES(t) = ivarKNIES_p$
        EndIf
        EndWhile
        endalgorithmic
        endalgorithm

        enddocument


        enter image description here






        share|improve this answer













        You have many errors, mostly due to improper treatment of math symbols.



        There is no predefined ForEach block, you have to define it yourself.



        Supply a definition for qaq, that's not a standard command.



        documentclass[a4paper]article
        usepackage[T1]fontenc
        usepackage[czech]babel

        usepackagealgorithm,algpseudocode

        algblockxForEachEndForEachtextbfforeach textbfend foreach
        newcommandivar[1]mathit#1
        newcommandtvar[1]textrm#1

        newcommandqaq??? % what's this?

        begindocument

        beginalgorithm captionUčící mechanismus všech obcí
        beginalgorithmic[1]
        While Obce ještě nedokonvergovaly
        State $t=t+1$
        ForEach $ivarKNIES_p in tvarPopulation$
        For$X_iintvarZařazené body$
        State $ivarKNIES_p$.quad
        textbfLearn($X_i$, $beta_t = fractbeta_TT$)
        EndFor
        EndForEach
        If$ivarKNIES_p qaq ivarKNIES$
        State $ivarKNIES(t) = ivarKNIES_p$
        EndIf
        EndWhile
        endalgorithmic
        endalgorithm

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 mins ago









        egregegreg

        727k8819223231




        727k8819223231




















            Petr Hrobař is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Petr Hrobař is a new contributor. Be nice, and check out our Code of Conduct.












            Petr Hrobař is a new contributor. Be nice, and check out our Code of Conduct.











            Petr Hrobař is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480139%2fsome-help-needed-with-pseudocode-in-latex%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

            How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

            How to remove border form elements in the last row?Targeting flex items on the last rowHow to vertically wrap content with flexbox?Remove border from IFrameCSS3's border-radius property and border-collapse:collapse don't mix. How can I use border-radius to create a collapsed table with rounded corners?Div width 100% minus fixed amount of pixelsBorder around specific rows in a table?How to remove border (outline) around text/input boxes? (Chrome)How do I remove the space between inline-block elements?Flex-box: Align last row to gridRemove blue border from css custom-styled button in ChromeFill remaining vertical space with CSS using display:flexhow style elements in the last row of flexbox row layout with pure css without js