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

Adding symbols #24

Open
DrWaleedAYousef opened this issue Oct 3, 2016 · 3 comments
Open

Adding symbols #24

DrWaleedAYousef opened this issue Oct 3, 2016 · 3 comments

Comments

@DrWaleedAYousef
Copy link

How can I add new symbols to magic-latex-buffer and keep them after any update? E.g., adding \Vert to render as ||

Thanks

@zk-phi
Copy link
Owner

zk-phi commented Oct 3, 2016

@DrWaleedAYousef,

magic-latex-buffer currently does not have any (user-friendly) interface to add symbols dynamically.

A workaround is to push '(regexp . symbol) pairs to ml/symbols (defconst marks the symbol value to be constant, but it actually can be updated dynamically).

(push '("\\\\Vert\\>" . "||") ml/symbols)

@DrWaleedAYousef
Copy link
Author

Thanks so much; it works!

zk-phi notifications@github.com writes:

@DrWaleedAYousef,

magic-latex-buffer currently does not have any (user-friendly) interface to add symbols dynamically.

A workaround is to push '(regexp . symbol) pairs to ml/symbols (defconst marks the symbol value to be constant, but it actually can be updated dynamically).

(push '("\Vert>" . "||") ml/symbols)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.*

@DrWaleedAYousef
Copy link
Author

DrWaleedAYousef commented Sep 11, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants