3

Since version 10.2, Winedt allows completing commands while writing. Nevertheless, not all commands are possible to be completed.

Is there a way to adds further commands or an environment?

In particular,

\begin{definition}

 - 

\end{definition} 

automatically

karlkoeller
  • 124,410
Zbigniew
  • 2,292

1 Answers1

3

It is possible.

To add commands, open the file LaTeX.dic (you can find it in %B\Dict\LaTeX folder), add all the commands you want (one per line).

Then sort the file as a dictionary (Tools -> Sort Lines).

enter image description here

Choose "Dictionary" as a Compare Table, press Sort and then OK.

Save the file and restart WinEdt.


To add more environments, it is a bit more complicated. Do the following:

  1. Show the "Options Interface" (Options -> Options Interface)

    enter image description here

  2. Double-click the "Auto Complete" item (AutoComplete.ini gets opened)

  3. Just before the line

    END="LaTeX Environments"
    

    add the following lines

        OBJECT="definition"
          MACRO="LetReg(-1,!'  ');"+        // Content placeholder (optionally indented)
                "Exe('%b\Macros\Auto Complete\TeXEnv.edt');"
    

    Substitute definition and do the same for other environments you want to add.

  4. Press Shift+Ctrl+F9 to reload the file.

That's all.

karlkoeller
  • 124,410