Coletando legendas de algoritmos no WinEdt

Coletando legendas de algoritmos no WinEdt

Eu instalei o complementoFiguras e tabelasno WinEdt, que me permite coletar legendas de tabelas e figuras na árvore do WinEdt.

Eu gostaria de poder coletar legendas de algoritmos também.

Com o seguinte MWE

\documentclass{article}

\usepackage{algorithm}

\begin{document}

  \begin{table}[h]
    \caption{Table test}
  \end{table}

  \begin{figure}[h]
    \caption{Figure test}
  \end{figure}

  \begin{algorithm}[h]
    \caption{Algorithm test}
  \end{algorithm}

\end{document} 

A árvore do WinEdt mostra

insira a descrição da imagem aqui

Existe alguma maneira de mostrar uma ramificação para algoritmos?

Responder1

Atualização (10/04/2016)

Ao instalar o complementoFlutuadoresvocê poderá coletar legendas de algoritmos.


Resposta original

Sim, é possível. Siga esses passos:

  1. Mostrar a "Interface de Opções" (Opções -> Interface de Opções)

    insira a descrição da imagem aqui

  2. Na "Interface de opções", clique duas vezes no item "Árvore" ( Tree.inié aberto)

  3. Como você tem o complemento "Figuras e Tabelas" instalado, você deverá ter uma linha

    END="Tables-TeX"
    

    Logo depois disso, insira as seguintes linhas

    BRANCH="Algorithms-TeX"
      BRANCH_CAPTION="Algorithms  (#)"
      // Change Mode from TeX to ? to disable this item
      BRANCH_MODE_FILTER="TeX|DTX;INS;STY;AUX"
      BRANCH_ICON="CodeSample"
      BRANCH_SORTED=0
      BRANCH_CASE_SENSITIVE=1
      BRANCH_IGNORE_COMMENTS=1
      BRANCH_IGNORE_VERBATIM=1
      BRANCH_EXPANDED=0
      ITEM="\begin{algorithm}?\end{algorithm}"
        ALT="\begin{algorithm*}?\end{algorithm*}"
        ALT="\begin{procedure}?\end{procedure}"
        ALT="\begin{procedure*}?\end{procedure*}"
        ALT="\begin{function}?\end{function}"
        ALT="\begin{function*}?\end{function*}"
        ALT="\begin{algorithm2e}?\end{algorithm2e}"
        ALT="\begin{algorithm2e*}?\end{algorithm2e*}"
        MODE_FILTER="TeX"
        CASE_SENSITIVE=1
        BEGINNING_OF_LINE_ONLY=1
        CURRENT_DOCUMENT_ONLY=1
        ALL_OPENED_DOCUMENTS=0
        COMPLETE_PROJECT_TREE=1
        ICON="FlagPurple"
        LEVEL=0
        CAPTION="%[!|Exe('%b\Macros\Gather\FigTab.edt');|];%-0"
        MAX_LINE_SPAN=99
        ON_CLICK_MACRO="TreeTrack(2,1);"
        ON_DBL_CLICK_MACRO="TreeTrack(2,2);"
        ACTION="Find"
          IMAGE="Find"
          MACRO="TreeTrack(2);"
        SUBSTITUTION="\label{*}"
          SUB_FIND="\\label\{*\}"
          SUB_REPLACE=""
          SUB_REG_EX=1
          SUB_CASE_SENSITIVE=1
        SUBSTITUTION="  "
          SUB_FIND=" +{ }"
          SUB_REPLACE=" "
          SUB_REG_EX=1
          SUB_CASE_SENSITIVE=1
        SUBSTITUTION="\dots"
          SUB_FIND="\dots"
          SUB_REPLACE="..."
          SUB_REG_EX=0
          SUB_CASE_SENSITIVE=1
        SUBSTITUTION="\ldots"
          SUB_FIND="\ldots"
          SUB_REPLACE="..."
          SUB_REG_EX=0
          SUB_CASE_SENSITIVE=1
      END="\begin{algorithm}?\end{algorithm}"
    END="Algorithms-TeX"
    
  4. Pressione Shift+Ctrl+F9para recarregar o arquivo.


Agora você poderá coletar legendas de algoritmos para os seguintes ambientes, definidos pelo algorithme pelos algorithm2epacotes:

  • algorithm
  • algorithm*
  • procedure
  • procedure*
  • function
  • function*
  • algorithm2e
  • algorithm2e*

Com o seu MWE você obterá este resultado:

insira a descrição da imagem aqui

informação relacionada