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

Treat align as equation #31

Closed
tildemy opened this issue Jul 24, 2018 · 3 comments
Closed

Treat align as equation #31

tildemy opened this issue Jul 24, 2018 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@tildemy
Copy link

tildemy commented Jul 24, 2018

Hi again

align should be treated as equation (such that there does not come unnecessary grammar suggestions)

\begin{align}
\end{align}

Similarly, new theorems and other should be handled like standard theorem, lemma etc.

I guess some kind of ignoring grammar on \begin{xxx} and \end{xxx} whenever there is
\begin{xxx}__\end{xxx} in the text... ?

@sylvainhalle
Copy link
Owner

Hi!

align should be treated as equation (such that there does not come unnecessary grammar suggestions)

This is easy to do. Will be added to release 0.6.

Similarly, new theorems and other should be handled like standard theorem, lemma etc.

This is much harder to do. It requires interpreting LaTeX markup, and once you start doing this, there is no end to it --TeXtidote will end up as a reimplementation of LaTeX. In addition, currently there is a way around this problem, using special comments as mentioned in the Readme:

%% textidote: ignore begin
\begin{mycustomenvironment}
...
\end{mycustomenvironment}
%% textidote: ignore end

Still, I'll keep from your suggestion the capability to add new environment names that TeXtidote should ignore, and I'll make it a separate issue.

I guess some kind of ignoring grammar on \begin{xxx} and \end{xxx} whenever there is
\begin{xxx}__\end{xxx} in the text... ?

This can't be applied to all environments, as some of them must be kept (e.g. center, quote, minipage, etc.). I prefer to explicitly blacklist environments you want to ignore than to explicitly whitelist those you want to keep.

@sylvainhalle sylvainhalle added the enhancement New feature or request label Jul 29, 2018
@sylvainhalle sylvainhalle added this to the v0.6 milestone Jul 29, 2018
@sylvainhalle sylvainhalle changed the title align and newtheorem Treat align as equation Jul 29, 2018
@tildemy
Copy link
Author

tildemy commented Jul 29, 2018

Super

@vanabel
Copy link

vanabel commented Sep 10, 2018

Looking forward for new version...

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

No branches or pull requests

3 participants