How to add input and output before algorithm procedure











up vote
4
down vote

favorite
1












I am using ACM format for writing a paper. I use the following algorithm sample that is taken from this form. I want to add input and output before MyProcedure. I tried many ways but all fails. Can someone guide me? Thank you



usepackage{algorithm}
usepackage[noend]{algpseudocode}
begin{algorithm}
caption{My algorithm}label{euclid}
begin{algorithmic}[1]
% Input:
% Output:
Procedure{MyProcedure}{}
State $textit{stringlen} gets text{length of }textit{string}$
State $i gets textit{patlen}$
BState emph{top}:
If {$i > textit{stringlen}$} Return false
EndIf
State $j gets textit{patlen}$
BState emph{loop}:
If {$textit{string}(i) = textit{path}(j)$}
State $j gets j-1$.
State $i gets i-1$.
State textbf{goto} emph{loop}.
State textbf{close};
EndIf
State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
State textbf{goto} emph{top}.
EndProcedure
end{algorithmic}
end{algorithm}









share|improve this question






















  • Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
    – Bobyandbob
    Feb 27 '17 at 6:58












  • Here is an example: tex.stackexchange.com/a/215651/124842
    – Bobyandbob
    Feb 27 '17 at 8:13










  • @Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
    – Torbjørn T.
    Jun 3 '17 at 21:46












  • @TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
    – Bobyandbob
    Jun 4 '17 at 10:07










  • Does the answer fits your question?
    – Bobyandbob
    Feb 23 at 23:27















up vote
4
down vote

favorite
1












I am using ACM format for writing a paper. I use the following algorithm sample that is taken from this form. I want to add input and output before MyProcedure. I tried many ways but all fails. Can someone guide me? Thank you



usepackage{algorithm}
usepackage[noend]{algpseudocode}
begin{algorithm}
caption{My algorithm}label{euclid}
begin{algorithmic}[1]
% Input:
% Output:
Procedure{MyProcedure}{}
State $textit{stringlen} gets text{length of }textit{string}$
State $i gets textit{patlen}$
BState emph{top}:
If {$i > textit{stringlen}$} Return false
EndIf
State $j gets textit{patlen}$
BState emph{loop}:
If {$textit{string}(i) = textit{path}(j)$}
State $j gets j-1$.
State $i gets i-1$.
State textbf{goto} emph{loop}.
State textbf{close};
EndIf
State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
State textbf{goto} emph{top}.
EndProcedure
end{algorithmic}
end{algorithm}









share|improve this question






















  • Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
    – Bobyandbob
    Feb 27 '17 at 6:58












  • Here is an example: tex.stackexchange.com/a/215651/124842
    – Bobyandbob
    Feb 27 '17 at 8:13










  • @Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
    – Torbjørn T.
    Jun 3 '17 at 21:46












  • @TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
    – Bobyandbob
    Jun 4 '17 at 10:07










  • Does the answer fits your question?
    – Bobyandbob
    Feb 23 at 23:27













up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I am using ACM format for writing a paper. I use the following algorithm sample that is taken from this form. I want to add input and output before MyProcedure. I tried many ways but all fails. Can someone guide me? Thank you



usepackage{algorithm}
usepackage[noend]{algpseudocode}
begin{algorithm}
caption{My algorithm}label{euclid}
begin{algorithmic}[1]
% Input:
% Output:
Procedure{MyProcedure}{}
State $textit{stringlen} gets text{length of }textit{string}$
State $i gets textit{patlen}$
BState emph{top}:
If {$i > textit{stringlen}$} Return false
EndIf
State $j gets textit{patlen}$
BState emph{loop}:
If {$textit{string}(i) = textit{path}(j)$}
State $j gets j-1$.
State $i gets i-1$.
State textbf{goto} emph{loop}.
State textbf{close};
EndIf
State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
State textbf{goto} emph{top}.
EndProcedure
end{algorithmic}
end{algorithm}









share|improve this question













I am using ACM format for writing a paper. I use the following algorithm sample that is taken from this form. I want to add input and output before MyProcedure. I tried many ways but all fails. Can someone guide me? Thank you



usepackage{algorithm}
usepackage[noend]{algpseudocode}
begin{algorithm}
caption{My algorithm}label{euclid}
begin{algorithmic}[1]
% Input:
% Output:
Procedure{MyProcedure}{}
State $textit{stringlen} gets text{length of }textit{string}$
State $i gets textit{patlen}$
BState emph{top}:
If {$i > textit{stringlen}$} Return false
EndIf
State $j gets textit{patlen}$
BState emph{loop}:
If {$textit{string}(i) = textit{path}(j)$}
State $j gets j-1$.
State $i gets i-1$.
State textbf{goto} emph{loop}.
State textbf{close};
EndIf
State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
State textbf{goto} emph{top}.
EndProcedure
end{algorithmic}
end{algorithm}






algorithms algorithm2e algorithmicx






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 27 '17 at 6:18









Steven

28114




28114












  • Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
    – Bobyandbob
    Feb 27 '17 at 6:58












  • Here is an example: tex.stackexchange.com/a/215651/124842
    – Bobyandbob
    Feb 27 '17 at 8:13










  • @Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
    – Torbjørn T.
    Jun 3 '17 at 21:46












  • @TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
    – Bobyandbob
    Jun 4 '17 at 10:07










  • Does the answer fits your question?
    – Bobyandbob
    Feb 23 at 23:27


















  • Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
    – Bobyandbob
    Feb 27 '17 at 6:58












  • Here is an example: tex.stackexchange.com/a/215651/124842
    – Bobyandbob
    Feb 27 '17 at 8:13










  • @Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
    – Torbjørn T.
    Jun 3 '17 at 21:46












  • @TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
    – Bobyandbob
    Jun 4 '17 at 10:07










  • Does the answer fits your question?
    – Bobyandbob
    Feb 23 at 23:27
















Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
– Bobyandbob
Feb 27 '17 at 6:58






Input x,y with:Procedure{Algo name}{$x,y$}. Or Comment{Input: } and Comment{Output:}
– Bobyandbob
Feb 27 '17 at 6:58














Here is an example: tex.stackexchange.com/a/215651/124842
– Bobyandbob
Feb 27 '17 at 8:13




Here is an example: tex.stackexchange.com/a/215651/124842
– Bobyandbob
Feb 27 '17 at 8:13












@Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
– Torbjørn T.
Jun 3 '17 at 21:46






@Bobyandbob Would you like to write up an answer, or is that question a duplicate? (I didn't look at it.)
– Torbjørn T.
Jun 3 '17 at 21:46














@TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
– Bobyandbob
Jun 4 '17 at 10:07




@TorbjørnT. No the link is an alternativ with algorithm, but Steven do not respond to comments. Nevertheless i added some ideas.
– Bobyandbob
Jun 4 '17 at 10:07












Does the answer fits your question?
– Bobyandbob
Feb 23 at 23:27




Does the answer fits your question?
– Bobyandbob
Feb 23 at 23:27










2 Answers
2






active

oldest

votes

















up vote
2
down vote













Answer:



To add input and output before MyProcedure a possibility is to add the text before begin{algorithmic} with starred hspace hspace*{}(see 6.3.3 Horizontal Space) and the indentation algorithmicindent (see 4.1 Blocks and loops). LaTeX normally removes horizontal space at the beginning of a line, to preserve this space, use the starred version.



 ...
hspace*{algorithmicindent} textbf{Input} \
hspace*{algorithmicindent} textbf{Output}
begin{algorithmic}[1]
...


enter image description here



Complete full MWE:
A minimal working example (MWE) starts with documentclass and ends with end{document}.



To complete the MWE and to avoid the following error:




! Undefined control sequence. BState ->State algbackskip l.24
BState




You have to use the following definition (the solution is from @Werner see: Undefined control sequence.BState ->State algbackskip BState):



makeatletter
% Reinsert missing algbackskip
defalgbackskip{hskip-ALG@thistlm}
makeatother


MWE:



documentclass{article}
usepackage{algorithm}
usepackage[noend]{algpseudocode}

makeatletter
% Reinsert missing algbackskip
defalgbackskip{hskip-ALG@thistlm}
makeatother

begin{document}
begin{algorithm}
caption{My algorithm}label{euclid}
hspace*{algorithmicindent} textbf{Input} \
hspace*{algorithmicindent} textbf{Output}
begin{algorithmic}[1]
Procedure{MyProcedure}{}
% Procedure{MyProcedure}{$x,y$}
% % Input:
% Comment{Input: x}
% % Output:
% Comment{Output:y}
State $textit{stringlen} gets textit{length of } textit{string}$
State $i gets textit{patlen}$
BState emph{top}:
If {$i > textit{stringlen}$} Return false
EndIf
State $j gets textit{patlen}$
BState emph{loop}:
If {$textit{string}(i) = textit{path}(j)$}
State $j gets j-1$.
State $i gets i-1$.
State textbf{goto} emph{loop}.
State textbf{close};
EndIf
State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
State textbf{goto} emph{top}.
EndProcedure
end{algorithmic}
end{algorithm}
end{document}


enter image description here



Alternative: You can add the input and output after MyProcedure with Procedure{MyProcedure}{$x,y$} ...



enter image description here



or Comment{Input: x}/Comment{Output: y}.



enter image description here






share|improve this answer




























    up vote
    0
    down vote













    If one is using the algorithmic environment, one can make REQUIRE and ENSURE to print Input and Output by adding in the preamble:



    renewcommand{algorithmicrequire}{textbf{Input:}}
    renewcommand{algorithmicensure}{textbf{Output:}}





    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',
      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f355937%2fhow-to-add-input-and-output-before-algorithm-procedure%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      Answer:



      To add input and output before MyProcedure a possibility is to add the text before begin{algorithmic} with starred hspace hspace*{}(see 6.3.3 Horizontal Space) and the indentation algorithmicindent (see 4.1 Blocks and loops). LaTeX normally removes horizontal space at the beginning of a line, to preserve this space, use the starred version.



       ...
      hspace*{algorithmicindent} textbf{Input} \
      hspace*{algorithmicindent} textbf{Output}
      begin{algorithmic}[1]
      ...


      enter image description here



      Complete full MWE:
      A minimal working example (MWE) starts with documentclass and ends with end{document}.



      To complete the MWE and to avoid the following error:




      ! Undefined control sequence. BState ->State algbackskip l.24
      BState




      You have to use the following definition (the solution is from @Werner see: Undefined control sequence.BState ->State algbackskip BState):



      makeatletter
      % Reinsert missing algbackskip
      defalgbackskip{hskip-ALG@thistlm}
      makeatother


      MWE:



      documentclass{article}
      usepackage{algorithm}
      usepackage[noend]{algpseudocode}

      makeatletter
      % Reinsert missing algbackskip
      defalgbackskip{hskip-ALG@thistlm}
      makeatother

      begin{document}
      begin{algorithm}
      caption{My algorithm}label{euclid}
      hspace*{algorithmicindent} textbf{Input} \
      hspace*{algorithmicindent} textbf{Output}
      begin{algorithmic}[1]
      Procedure{MyProcedure}{}
      % Procedure{MyProcedure}{$x,y$}
      % % Input:
      % Comment{Input: x}
      % % Output:
      % Comment{Output:y}
      State $textit{stringlen} gets textit{length of } textit{string}$
      State $i gets textit{patlen}$
      BState emph{top}:
      If {$i > textit{stringlen}$} Return false
      EndIf
      State $j gets textit{patlen}$
      BState emph{loop}:
      If {$textit{string}(i) = textit{path}(j)$}
      State $j gets j-1$.
      State $i gets i-1$.
      State textbf{goto} emph{loop}.
      State textbf{close};
      EndIf
      State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
      State textbf{goto} emph{top}.
      EndProcedure
      end{algorithmic}
      end{algorithm}
      end{document}


      enter image description here



      Alternative: You can add the input and output after MyProcedure with Procedure{MyProcedure}{$x,y$} ...



      enter image description here



      or Comment{Input: x}/Comment{Output: y}.



      enter image description here






      share|improve this answer

























        up vote
        2
        down vote













        Answer:



        To add input and output before MyProcedure a possibility is to add the text before begin{algorithmic} with starred hspace hspace*{}(see 6.3.3 Horizontal Space) and the indentation algorithmicindent (see 4.1 Blocks and loops). LaTeX normally removes horizontal space at the beginning of a line, to preserve this space, use the starred version.



         ...
        hspace*{algorithmicindent} textbf{Input} \
        hspace*{algorithmicindent} textbf{Output}
        begin{algorithmic}[1]
        ...


        enter image description here



        Complete full MWE:
        A minimal working example (MWE) starts with documentclass and ends with end{document}.



        To complete the MWE and to avoid the following error:




        ! Undefined control sequence. BState ->State algbackskip l.24
        BState




        You have to use the following definition (the solution is from @Werner see: Undefined control sequence.BState ->State algbackskip BState):



        makeatletter
        % Reinsert missing algbackskip
        defalgbackskip{hskip-ALG@thistlm}
        makeatother


        MWE:



        documentclass{article}
        usepackage{algorithm}
        usepackage[noend]{algpseudocode}

        makeatletter
        % Reinsert missing algbackskip
        defalgbackskip{hskip-ALG@thistlm}
        makeatother

        begin{document}
        begin{algorithm}
        caption{My algorithm}label{euclid}
        hspace*{algorithmicindent} textbf{Input} \
        hspace*{algorithmicindent} textbf{Output}
        begin{algorithmic}[1]
        Procedure{MyProcedure}{}
        % Procedure{MyProcedure}{$x,y$}
        % % Input:
        % Comment{Input: x}
        % % Output:
        % Comment{Output:y}
        State $textit{stringlen} gets textit{length of } textit{string}$
        State $i gets textit{patlen}$
        BState emph{top}:
        If {$i > textit{stringlen}$} Return false
        EndIf
        State $j gets textit{patlen}$
        BState emph{loop}:
        If {$textit{string}(i) = textit{path}(j)$}
        State $j gets j-1$.
        State $i gets i-1$.
        State textbf{goto} emph{loop}.
        State textbf{close};
        EndIf
        State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
        State textbf{goto} emph{top}.
        EndProcedure
        end{algorithmic}
        end{algorithm}
        end{document}


        enter image description here



        Alternative: You can add the input and output after MyProcedure with Procedure{MyProcedure}{$x,y$} ...



        enter image description here



        or Comment{Input: x}/Comment{Output: y}.



        enter image description here






        share|improve this answer























          up vote
          2
          down vote










          up vote
          2
          down vote









          Answer:



          To add input and output before MyProcedure a possibility is to add the text before begin{algorithmic} with starred hspace hspace*{}(see 6.3.3 Horizontal Space) and the indentation algorithmicindent (see 4.1 Blocks and loops). LaTeX normally removes horizontal space at the beginning of a line, to preserve this space, use the starred version.



           ...
          hspace*{algorithmicindent} textbf{Input} \
          hspace*{algorithmicindent} textbf{Output}
          begin{algorithmic}[1]
          ...


          enter image description here



          Complete full MWE:
          A minimal working example (MWE) starts with documentclass and ends with end{document}.



          To complete the MWE and to avoid the following error:




          ! Undefined control sequence. BState ->State algbackskip l.24
          BState




          You have to use the following definition (the solution is from @Werner see: Undefined control sequence.BState ->State algbackskip BState):



          makeatletter
          % Reinsert missing algbackskip
          defalgbackskip{hskip-ALG@thistlm}
          makeatother


          MWE:



          documentclass{article}
          usepackage{algorithm}
          usepackage[noend]{algpseudocode}

          makeatletter
          % Reinsert missing algbackskip
          defalgbackskip{hskip-ALG@thistlm}
          makeatother

          begin{document}
          begin{algorithm}
          caption{My algorithm}label{euclid}
          hspace*{algorithmicindent} textbf{Input} \
          hspace*{algorithmicindent} textbf{Output}
          begin{algorithmic}[1]
          Procedure{MyProcedure}{}
          % Procedure{MyProcedure}{$x,y$}
          % % Input:
          % Comment{Input: x}
          % % Output:
          % Comment{Output:y}
          State $textit{stringlen} gets textit{length of } textit{string}$
          State $i gets textit{patlen}$
          BState emph{top}:
          If {$i > textit{stringlen}$} Return false
          EndIf
          State $j gets textit{patlen}$
          BState emph{loop}:
          If {$textit{string}(i) = textit{path}(j)$}
          State $j gets j-1$.
          State $i gets i-1$.
          State textbf{goto} emph{loop}.
          State textbf{close};
          EndIf
          State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
          State textbf{goto} emph{top}.
          EndProcedure
          end{algorithmic}
          end{algorithm}
          end{document}


          enter image description here



          Alternative: You can add the input and output after MyProcedure with Procedure{MyProcedure}{$x,y$} ...



          enter image description here



          or Comment{Input: x}/Comment{Output: y}.



          enter image description here






          share|improve this answer












          Answer:



          To add input and output before MyProcedure a possibility is to add the text before begin{algorithmic} with starred hspace hspace*{}(see 6.3.3 Horizontal Space) and the indentation algorithmicindent (see 4.1 Blocks and loops). LaTeX normally removes horizontal space at the beginning of a line, to preserve this space, use the starred version.



           ...
          hspace*{algorithmicindent} textbf{Input} \
          hspace*{algorithmicindent} textbf{Output}
          begin{algorithmic}[1]
          ...


          enter image description here



          Complete full MWE:
          A minimal working example (MWE) starts with documentclass and ends with end{document}.



          To complete the MWE and to avoid the following error:




          ! Undefined control sequence. BState ->State algbackskip l.24
          BState




          You have to use the following definition (the solution is from @Werner see: Undefined control sequence.BState ->State algbackskip BState):



          makeatletter
          % Reinsert missing algbackskip
          defalgbackskip{hskip-ALG@thistlm}
          makeatother


          MWE:



          documentclass{article}
          usepackage{algorithm}
          usepackage[noend]{algpseudocode}

          makeatletter
          % Reinsert missing algbackskip
          defalgbackskip{hskip-ALG@thistlm}
          makeatother

          begin{document}
          begin{algorithm}
          caption{My algorithm}label{euclid}
          hspace*{algorithmicindent} textbf{Input} \
          hspace*{algorithmicindent} textbf{Output}
          begin{algorithmic}[1]
          Procedure{MyProcedure}{}
          % Procedure{MyProcedure}{$x,y$}
          % % Input:
          % Comment{Input: x}
          % % Output:
          % Comment{Output:y}
          State $textit{stringlen} gets textit{length of } textit{string}$
          State $i gets textit{patlen}$
          BState emph{top}:
          If {$i > textit{stringlen}$} Return false
          EndIf
          State $j gets textit{patlen}$
          BState emph{loop}:
          If {$textit{string}(i) = textit{path}(j)$}
          State $j gets j-1$.
          State $i gets i-1$.
          State textbf{goto} emph{loop}.
          State textbf{close};
          EndIf
          State $i gets i+max(textit{delta}_1(textit{string}(i)),textit{delta}_2(j))$.
          State textbf{goto} emph{top}.
          EndProcedure
          end{algorithmic}
          end{algorithm}
          end{document}


          enter image description here



          Alternative: You can add the input and output after MyProcedure with Procedure{MyProcedure}{$x,y$} ...



          enter image description here



          or Comment{Input: x}/Comment{Output: y}.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 4 '17 at 10:03









          Bobyandbob

          3,88851264




          3,88851264






















              up vote
              0
              down vote













              If one is using the algorithmic environment, one can make REQUIRE and ENSURE to print Input and Output by adding in the preamble:



              renewcommand{algorithmicrequire}{textbf{Input:}}
              renewcommand{algorithmicensure}{textbf{Output:}}





              share|improve this answer

























                up vote
                0
                down vote













                If one is using the algorithmic environment, one can make REQUIRE and ENSURE to print Input and Output by adding in the preamble:



                renewcommand{algorithmicrequire}{textbf{Input:}}
                renewcommand{algorithmicensure}{textbf{Output:}}





                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  If one is using the algorithmic environment, one can make REQUIRE and ENSURE to print Input and Output by adding in the preamble:



                  renewcommand{algorithmicrequire}{textbf{Input:}}
                  renewcommand{algorithmicensure}{textbf{Output:}}





                  share|improve this answer












                  If one is using the algorithmic environment, one can make REQUIRE and ENSURE to print Input and Output by adding in the preamble:



                  renewcommand{algorithmicrequire}{textbf{Input:}}
                  renewcommand{algorithmicensure}{textbf{Output:}}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 at 19:53









                  User525412790

                  16410




                  16410






























                      draft saved

                      draft discarded




















































                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f355937%2fhow-to-add-input-and-output-before-algorithm-procedure%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

                      How to send String Array data to Server using php in android

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Is anime1.com a legal site for watching anime?