dense-analysis / dense-analysis/ale

Disable latex check in asy environments

Open
#4,729 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

Ale mistakes Asymptote code for LaTeX inside asydef and asy environments. Until Asymptote is supported by Ale (https://github.com/dense-analysis/ale/issues/4728), please consider disabling syntax checking within asy environments:

Example:
```latex
\begin{document}

\begin{asydef}
// Global Asymptote definitions can be put here.
settings.prc=true;
import three;
usepackage("bm");
texpreamble("\def\V#1{\bm{#1}}");
\end{asydef}

Here is a venn diagram produced with Asymptote, drawn to width 4cm:

\def\A{A}
\def\B{\V{B}}

%\begin{figure}
\begin{center}
\begin{asy}
size(4cm,0);
pen colour1=red;
pen colour2=green;
\end{asy}
\end{center}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.