3 ms·
Testing new HN version of script: [;A\boldsymbol{x}=\lambda\boldsymbol{x};] Seems to be working, in Chrome at least. Can some other people try it out? http:/
by mkl 15y ago
Testing new HN version of script: [;A\boldsymbol{x}=\lambda\boldsymbol{x};]
Seems to be working, in Chrome at least. Can some other people try it out? http://userscripts.org/scripts/show/112966 http://userscripts.org/scripts/show/112966
Put latex code inside square bracket semicolon pairs: [;...code...;]
- deleted 15y ago[deleted]
- nhamann 15y agoWorks for me on Chrome 14. Testing: [;\frac{du}{dt};] [;\left[ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right];]
- mkl 15y agoNow changed to use the MathJax default delimeters, as tzs explains.
- tzs 15y agoNote that /r/math on Reddit is using those delimiters because that's what Tex The World uses. I don't see any particular reason to use those over just sticking with the MathJax defaults, which are backslash-brackets and dollar dollar for display math, and backslash-parens for inline math. For your script, this can be achieved simply by deleting the line in the configuration that sets the inline math delimiters. I've tested, and the default delimiters seem to work fine on HN.
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- mkl 15y agoCool, thanks. That would be better. Testing new version: \(\sum_{i=1}^n c_i \phi(\|\boldsymbol{x}-\boldsymbol{x}_i\|)\)
- mkl 15y agoNow updated and tested successfully in Chrome and Firefox (multiple versions of each) on Linux and Windows, with http or https. Not working in Tampermonkey on Android (the script runs, but the notation doesn't happen). Now using standard MathJax delimeters, \(...code...\) for inline or \[...code...\] for an equation.