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

jlatexmath should not be used for tikz preview #3314

Closed
Lichtschalter-5000 opened this issue Nov 15, 2023 · 3 comments · Fixed by #3450
Closed

jlatexmath should not be used for tikz preview #3314

Lichtschalter-5000 opened this issue Nov 15, 2023 · 3 comments · Fixed by #3450
Assignees
Labels
bug Deficiencies in TeXiFy behaviour.
Milestone

Comments

@Lichtschalter-5000
Copy link

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA Ultimate 2023.2.5

Operating System

Win 10 (fresh install by the way)

TeXiFy IDEA version

0.9.1

Minimal example to reproduce the problem

\documentclass{article}
%! begin preamble = math
%! begin preamble = tikz
\usepackage{tikz}
\usepackage{amsmath}
%! end preamble = math
%! end preamble = tikz
\begin{document}
    \begin{tikzpicture}
        \draw (0,0) rectangle (10,20);
    \end{tikzpicture}
 \begin{equation*}
        a=b
    \end{equation*}
\end{document}

Trigger the TikZ or math preview

Actual behavior

grafik
Please ignore the typo behind \end{document}, that just happened when taking the screenshot... Also this only demonstrates the TikZ preview.
No preview, error message Unknown environment: tikzpicture at position 1:8
Or equation* respectively.
I haven't explicitly tested with other math environments but before re-installing everything (including OS, MiKTeX and IDE!) I also often had problems with math previews...

@Lichtschalter-5000 Lichtschalter-5000 added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Nov 15, 2023
@PHPirates
Copy link
Collaborator

This sounds very much like #3201

@Lichtschalter-5000
Copy link
Author

You're right, sorry for not checking first.
But is jlatexmath also used for TikZ preview?

@PHPirates
Copy link
Collaborator

Good question, not sure. It probably shouldn't because that will not work in jlatexmath.
In any case, if I try your example I get a Can't read input file! as well, so something is not working at least.
The equation preview is working fine for me.

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Nov 21, 2023
@PHPirates PHPirates changed the title TikZ/Math Preview not working: Unknown environment: tikzpicture/equation* at position ... jlatexmath should not be used for tikz preview Jan 11, 2024
@PHPirates PHPirates self-assigned this Feb 7, 2024
@PHPirates PHPirates added this to the Next milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants