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

Disable latex check in asy environments #4729

Open
avidseeker opened this issue Feb 27, 2024 · 0 comments
Open

Disable latex check in asy environments #4729

avidseeker opened this issue Feb 27, 2024 · 0 comments
Labels

Comments

@avidseeker
Copy link

Ale mistakes Asymptote code for LaTeX inside asydef and asy environments. Until Asymptote is supported by Ale (#4728), please consider disabling syntax checking within asy environments:

Example:

\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}
@avidseeker avidseeker added the bug label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant