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

newcommandFile not robust #1460

Closed
musm opened this issue Jun 24, 2019 · 2 comments
Closed

newcommandFile not robust #1460

musm opened this issue Jun 24, 2019 · 2 comments
Labels
feature request Feature request

Comments

@musm
Copy link

musm commented Jun 24, 2019

latex-workshop.hover.preview.newcommand.newcommandFile

setting this to sty file containing

\usepackage{mathtools}
\newcommand*{\tran}{\mathsf{T}}

fails in terms of the hover preview

@musm musm added the feature request Feature request label Jun 24, 2019
@jlelong
Copy link
Collaborator

jlelong commented Jun 24, 2019

The latex-workshop.hover.preview.newcommand.newcommandFile must not contain \usepackage instructions but only newcommands, because mathjax does not accept it. See stackoverflow.

@jlelong jlelong closed this as completed Jun 24, 2019
@musm
Copy link
Author

musm commented Jun 24, 2019

Could we keep the issue open? I know sublime latex tools uses a different approach, somewhat akin to the approach taken #1450 by generating a texfile and cropping the corresponding output.

Repository owner locked as resolved and limited conversation to collaborators Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants