Algorithms: LaTeX Made Simple

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 16

  • @ramonr.leonp.4652
    @ramonr.leonp.4652 Год назад

    Hello good! I really like your videos, congratulations. One question: how do I remove the numbering that appears with the caption? That is, the one that appears as "Algorithm 1"

    • @latexmadesimple
      @latexmadesimple  Год назад

      Glad to know that you liked my videos. Thank you.
      To remove the numbers appearing along with the captions, use

      enewcommand{\thealgocf}{}

  • @yswl7693
    @yswl7693 Год назад

    Hi i have one question regarding algorithms... How can i fix the sequence in Algorithm..?

    • @latexmadesimple
      @latexmadesimple  Год назад

      With `amsmath' package, you can use

      umberwithin{algocf}{section}
      to get sectionwise algorithms.
      You can use
      \addtocounter{algocf}{4}
      or
      \setcounter{algocf}{5}
      or

      enewcommand{\thealgocf}{\Roman{algocf}}
      to change algorithm number (or its format).
      You can use

      enewcommand{\thealgocf}{}
      to have just the caption without the algorithm number.

  • @govindmahato6252
    @govindmahato6252 2 года назад

    Thank you sir

  • @swarnas2313
    @swarnas2313 3 года назад

    Thank you for this video sir

  • @denishvirani552
    @denishvirani552 2 года назад

    How to split algorithm in two pages? Can you please explain it??

    • @latexmadesimple
      @latexmadesimple  2 года назад

      Please refer to: tex.stackexchange.com/questions/33866/algorithm-tag-and-page-break/33869#33869

  • @AlhambraDream
    @AlhambraDream 2 года назад

    I love you sir

  • @Sammy123arshad
    @Sammy123arshad 2 года назад

    Can anyone guide how to write foreach (condition) do in latex.

    • @latexmadesimple
      @latexmadesimple  2 года назад

      Your question is not clear to me: given below are two answers.
      1. Typesetting with algorithm2e package:
      You need \ForEach{}{} like:
      \ForEach{triple pattern $t_i \in Q$}{%
      $Q' \gets Q' - t_i$\;
      \If{$[[Q' \wedge Q^*]]_D
      eq \emptyset$}{%
      $Q^* \gets Q^* \wedge t_i$\;
      }
      2. To use \foreach command in your document:
      You have to use tikz package as given below:
      \usepackage{tikz}
      \begin{document}
      \begin{tikzpicture}
      \foreach \x in {0,...,5}
      \foreach \x in {1,...,4, 6,7,...,9, 11,12,...,14,16,17,...,19, 21,22,...,24}
      \end{tikzpicture}
      3. Also watch my video in RUclips: ruclips.net/video/AT5WzpTYtxY/видео.html