Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment auto-completion is overzealous and creates \end{} when one already exists #48

Open
engnadeau opened this issue Jul 23, 2016 · 1 comment

Comments

@engnadeau
Copy link

Useful Info

  • latexer 0.3.0
  • Beamer presentation

Expected Behaviour

Beginning with:

\begin{columns}
    \begin{column}{0.5\textwidth}

    \end{column}
\end{columns}

Paste the following :

\begin{block}{A vs. B \citep{cite-example}}
    \begin{itemize}
              \item View volumes instead of slices
              \item Enhanced comprehension of the anatomy
    \end{itemize}
\end{block}

Expect the following :

\begin{columns}
    \begin{column}{0.5\textwidth}
    \begin{block}{A vs. B \citep{cite-example}}
    \begin{itemize}
              \item View volumes instead of slices
              \item Enhanced comprehension of the anatomy
    \end{itemize}
    \end{block}
    \end{column}
\end{columns}

Actual Behaviour

Get the following :

\begin{columns}
    \begin{column}{0.5\textwidth}
    \end{column}    \begin{block}{A vs. B \citep{cite-example}}
    \begin{itemize}
              \item View volumes instead of slices
              \item Enhanced comprehension of the anatomy
    \end{itemize}
    \end{block}
    \end{column}
\end{columns}

Notice the extra \end{column} that pops up right before the \begin{block}{A vs. B \citep{cite-example}} at the top, even though there exists an \end{column} already.

@vitasiku
Copy link
Contributor

vitasiku commented Aug 1, 2017

Additionally, is there a way to remove the opening '{' and closing '}'. As a workaround to the issue reported above, for an 'enumerate', I simply type {enumerate} and let the autocomplete do its magic. However, what is produced is

{begin{enumerate}
\item ...
end{enumerate}}

I don't need the {} surrounding the 'begin' and the 'end' commands. Is there a config for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants