Installing mathjax breaks terminal prompt (and sublime text) - sublimetext3

Recently, I installed the arch community package "mathjax" to be able to render some mathematical formulas in a jupyter notebook.
It works for the notebooks, but after the installation, other things are broken, like the rendering of
special symbols in Terminator and Sublime Text 3.
Here is the symbol in question, displayed in Sublime and in the actual prompt in Terminator:
http://imgur.com/a/lYBk1
My question is, how can I keep mathjax from changing these things.
How can this even happen? I thought the package is just relevant to
in-browser Latex rendering.

Ok, so a really bad solution to this is to move the mathjax folder in /usr/share/fonts to a new location and link to this location in the /usr/share/mathjax folder, overwriting the previous link named "fonts".
This fixes the issues with special symbols in Terminator and Sublime.
At least for Jupyter Notebooks, this does not seem to be breaking the rendering of formulas.
This is just a temporary solution, so I hope someone can find a better one.

Related

How to do a bold 1 (\mathbbm{1}) in MathJax

I'm looking for blackboard bold numerals in LaTeX displayed with MathJax.
It seems that the \mathbbm command is not (yet) available from MathJax (as said in the documentation).
Is there anyway to have support for the \mathbbm command, e.g., to have nice bold 1 ?
I tried to load an extension, or trick from this question, but nothing works.
Here is an example showing the failure: with makebigmaths.
It seems to be a known and old issue of MathJax, coming from a font limitation.
And no third party extensions seem to solve it.
However, Jupyter notebooks supports it in its Markdown cells.
You can use Unicode characters directly, e.g., 𝟙, or via the non-standard macro \unicode{x1D7D9}.
Both of these can be used in macro definitions as well, cf. http://docs.mathjax.org/en/latest/tex.html#defining-tex-macros.
One can use \Bbb instead of \mathbbm which is mentioned under "Font control" in the current documentation. Judging by the question Obsolete command \Bbb, it is an obsolete TeX command.
I use \Bbb in an align environment using MathJax version 3.2.2 for doxygen.

How can I use the python idle colours with a non-python file extension

I am currently using a custom file extension in the python idle editor (.ape), but when I open it with the standard IDLE editor, it doesn't show the colours, everything is just black on white. So there a way of opening a non-python extension in the IDLE editor, and still have the colours?
Sorry if this isn't the right place to ask, but I have no idea where else to ask.
Thanks in advance for any help.
I presume you mean syntax coloring, and that your .ape files contain Python code. IDLE currently does not have a way to override file extensions. There is a request somewhere on the Python tracker to be able to turn syntax highlighting on for cases where python code is embedded in another file (.txt, .html, .rst, etc). Such an option would also solve your problem.
On Windows, Notepad++ will apparently apply any language highlighting scheme it knows (about 50) to any file. It is not as nice, though, for running edited code.

SublimeText 3 Anaconda autocomplete bug

I'm new to SublimeText and Python3, so I don't really know how to turn Sublime autocomplete on. I installed Anaconda from Package Control, but I don't know how to use it. Some autocomplete shows up, but I don't think it's Anaconda's. That autocomplete keeps on poping up, then dissapearing. I can't read what it says and it hurts my eyes. How can i properly set up the autocomplete?
in case you are still looking for the answer, I had a similar problem. I had both SublimeJEDI autocompletion as well as Anaconda.
The flashing behavior is a result of you having two separate autocompletes fighting for the same space.
Turning off SublimeJEDI solved this for me - I couldn't find a way to turn off Anaconda's.

How can I use a right to left language in "Sublime Text" editor

I want to use some strings which are in my language (Persian) in "Sublime Text", but the editor does not show them correctly, for example:
it should be:
<title>عنوان صفحه</title>
but this is how sublime is showing it:
The encoding is set to utf-8.
What should I do to fix it?
There is This Plugin But It Does Not Work Properly
https://packagecontrol.io/packages/Bidirectional%20text%20support
added by barlop
Important Note- As comments indicate, this plugin doesn't really work. People have issues copy/pasting from sublime into notepad. It's OK for viewing but that's not much of an answer.
Note, sublime with this plugin might show leters in the correct order but copy/paste in notepad and it might not so try copy/pasting in notepad first before typing a whole load in there. Also this plugin might not move the cursor in a right to left fashion. (i.e. type a letter the cursor when typing in a right to left language should move to the left)
To install,
i've tested this on ST3 portable.
if you go to the tools menu you see there's no bidirectional option
Then if you go here
https://packagecontrol.io/packages/Bidirectional%20text%20support
see it mentions
their github page here
https://github.com/praveenvijayan/Sublime-Text-2-BIDI
Click on Clone/Download then download zip
extract it and Copy the folder to the packages folder.. i.e. open sublime, do preferences..browse packages , and it gives a folder like C:\Users\harvey\Downloads\ST3\Data\Packages Paste the folder there. (maybe it's better to put it in the user subdirectory, I don't know).
Then go to the tools menu and you see bidirectional options like bidirectional text that weren't there before
And while you're at it you may want to install "package control" if it's not already installed. Go to tools..command palette.. type 'package' see if package control appears. Or go to preferences, see if there is package control listed. If not then you don't have 'package control' installed. You can install package control by going to https://packagecontrol.io/ and click install and it gives you some python code in 2 tabs, one for ST2, one for ST3, and you can paste it into your console(view..console). But it's not strictly necessary you can install the bidirectional package without doing that.
The RTL-Mirror plugin for sublime 3 will show you the correct text by hitting Ctrl+F1 on Windows and OSX and Shift+F1 on Linux. it's not the perefect solution but it helps.
For the last few years my workflow has to been use VS Code as an IDE, for coding, and Sublime Text 3 (sorry, 4) for editing plain text because of its startup speed and because VS Code would be overkill.
However, since it's pretty clear by this point that the ST devs don't intend to implement RTL support, and because I would rather not have to install a third text editor just to deal with RTL text (which there are very few of anyway), there were only two convenient options left for me to open up RTL files on Windows.
Use Windows 10's Notepad (yes, really)
This is the superior solution since the new Notepad works well, starts up faster than Sublime, and not only renders RTL text but renders it quite well. The only downside is the lack of a dark mode.
Use VS Code (or whatever your preferred IDE is)
Both free IDEs like VS Code and paid ones like PHPStorm and IntelliJ seem to support RTL out of the box, but pretty much the only good reason to do this is if you absolutely need dark mode or are not on Windows - otherwise all of them up start up far slower than Sublime, and in the case of VS Code, render RTL text worse than Notepad does (I can't speak for JetStorm IDEs on that front).
Who knows, if I find a better alternative text editor that I can move my custom theme over to I may eventually move away from Sublime completely to another editor, but until then, sticking to two editors.

Why is AngularJS package for Sublime Text blocking default buffer words in completion?

I am using Sublime Text 3, and I installed the very useful angularJs package which gives great code completion for both JavaScript and HTML files, and I really don't want to disable it, but it stops the default word completion of Sublime Text.
In Preference->Package Settings->AngularJs I set the disable_default_js_completions option to false in both user and default settings, but it still messes with the word completion.
Found other people with the same issue :
https://github.com/angular-ui/AngularJS-sublime-package/issues/69
The only fix seems to be to install a TernJs package for auto-completion to replace the default functionality.
The issue is reported, and you have a temporary solution, i.e., TernJS package installation. I had to install that too in order to see buffer words and such appear in the autocomplete list, it wasn't folding them in even at the lower priority. The completions that show in Show Completions now appear after installing TernJS. I don't think there is a known hotfix, I've contributed to the report, we'll need to wait on a bug fix, or just keep using TernJS. You probably want to install Emmet and Better Completion packages if you haven't already, as well. Between those, AngularJS and TernJS packages, you're pretty covered, minus any specialities you require.

Resources