ojsheikh / unicode-latex Goto Github PK
View Code? Open in Web Editor NEWA visual studio code extension to insert Unicode symbols given LaTeX symbol names
License: MIT License
A visual studio code extension to insert Unicode symbols given LaTeX symbol names
License: MIT License
When trying to insert a Unicode character in an interactive Julia REPL, it inserts it instead into a source code buffer.
Reproduce:
Hello,
I see that the .ts
code is generated from julia, and the reason I use this extension is to use it for editing .jl
files. Any chance that julia source files are included in the set of file types for which this extension is activated?
How come subscripts don't work ?
Neither of the following work
\alpha_1312
\alpha\_32
Use case: I'm using some Unicode API and want to know how to type the Unicode symbol they're using.
The best way, right now, is to copy the symbol and search it through https://github.com/ojsheikh/unicode-latex/blob/master/src/latex.ts. It'd be convenient to automate that.
Currently, this extension is disabled if the workspace is in "restricted mode":
As mentioned on stackoverflow, ideally the extension can indicate whether it is safe to run in restricted mode. This is also echoed by the [vscode docs]:
Most extensions run code on your behalf and could potentially do harm. Some extensions have settings that could cause them to act maliciously if configured to run an unexpected executable. For this reason, extensions that have not explicitly opted into Workspace Trust are disabled by default in Restricted Mode.
See the Workspace Trust Extension Guide for how to do it.
Since this extension is just tab completions, it should be safe to run when editing untrusted files, no?
I am new to VSC but have installed this and extensions for python and julia.
When I open a new document, I can get \alpha to because the green symbol.
However, when I save the file as test.py or test.jl, then I can't get \alpha to become the symbol
Any advice?
Would it be realistic to add support for every Latex symbol listed here:
http://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf ?
Thanks for the work. Its very useful.
When I'm inserting a symbol using autocompletion (the behaviour is correct for inserting from the menu), and my cursor is like this: start|end
, then I trigger an autocomplete (e.g. \sigma
), the resulting word is startΣ|
, rather than startΣ|end
, which can be annoying (especially as this happens for symbols like brackets, not just word characters).
Is there any way to change this behaviour?
After I use the command "Unicode: Replace LaTeX", all the replaced symbols caused a problem when building the PDF file, following with the message:
Package inputenc Error: Unicode character ... not set up for use with LaTeX
How can I fix this?
Thanks in advance for your support
It would be great to have the releases tags created so people may install it through vsix
when using non Microsoft products.
For instance, I constantly need to use ▷
to call a certain library API I need, but that's not available; \triangleright
is taken by ▹
, a different character.
For example, if I want \lambda
, I want to only need to type as may starting characters so as to distinguish it from other possibilities.
So, I'd only need to type \lam
and then the extension will activate with a λ
, without me checking the dropdown and hitting tab.
This might not be suitable for people using the fuzzy matching (rather than "starts with"), so this new functionality should be available as an option.
There may be nuances to this feature request that I have not thought of. So, please let's discuss them.
My overall aim is to reduce cognitive load when writing latex and to be able to type as fast as possible.
Would it be conceivable to transfer this repo to an organization like https://github.com/JuliaEditorSupport so that more maintainers can help update it?
In the code editor, \varphi gives ϕ and \phi gives φ. In LaTeX however, it is the opposite, eg. \phi gives ϕ and \varphi gives φ. This can be kind of annoying when plotting, since the phi symbol in the code and the plot are different.
I would suggest switching \varphi to give φ in the editor and \phi to give ϕ, to be consistent with LaTeX notation.
I am thinking of the behavior of the atom latex completions extension:
https://github.com/JunoLab/atom-latex-completions
For me having to open the command, enter "Insert Unicode ...", and finally typing '\alpha', is a hassle. It would be nice if (perhaps by doing some config), \alpha
be replaced directly with the unicode character, maybe by pressing TAB.
Could this be supported with this extension?
circ
), use that rather than something else (e.g. ocirc
).Edit: the last two issues seem to have been addressed in a recent version of VS Code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.