Evpok / latex-autocomplete

LaTeX autocompletion for atom
Other
9 stars 3 forks source link

Beamer Autocomplete #19

Closed sww1235 closed 6 years ago

sww1235 commented 7 years ago

I use latex-beamer to make presentations. The most common task I face is inserting a new slide or "frame" which takes the form:

\begin{frame}
  \frametitle{title}
\end{frame}

I am wondering if there is a way to define a custom autocomplete like the itemize environment that will auto insert:

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

when typing 'it'

I have looked at autocomplete-plus but cannot find anything in their documentation unless I wanted to write my own custom provider.

Thank you for your time

Evpok commented 6 years ago

Coming back to this issue after a long time, I realize that I did not actually understood what you wanted ! What you want looks like a custom snippet, which is definitely supported in atom independently of this package : see http://flight-manual.atom.io/using-atom/sections/snippets/

sww1235 commented 6 years ago

This sounds perfect. Once again there are too many ways to do things. Thanks for coming back to this.