Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I type "ite" in TeXnicCenter, I see the autocomplete option:

\begin{itemize}
    \item 
\end{itemize} 

Pressing ctrl+space will activate the auto-completion. How do I add additional auto-completion options?

In particular, I would like "ali" to activate

\begin{align}

\end{align}

upon pressing ctrl+space.

share|improve this question
    
Great question. –  Simon Hayward Nov 27 '12 at 14:04

1 Answer 1

up vote 15 down vote accepted

In your TeXnicCenter installation folder and subfolders look out for xml files, such as base.xml and math.xml. Edit these files or create your own xml file.

Some example lines for align autocompletion:

<lxEnvironment name="align"
        parameters="1" 
        desc="Math environment"
        icon="math.bmp"
        index="10"
        expafter="}&#xA;&#x9;&amp; \\%&#xA;\end{align}" 
        expbefore="\begin{" />

Houston has posted instructions and a customized xml file here: Missing autocompletition for \paragraph. The align example is taken from that file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.