Author Topic: LaTex for EEVBlog  (Read 19697 times)

0 Members and 1 Guest are viewing this topic.

Offline MorgorothTopic starter

  • Regular Contributor
  • *
  • Posts: 123
  • Country: cl
Re: LaTex for EEVBlog
« Reply #25 on: March 15, 2016, 02:17:50 pm »
why not translate to pesky English ?   ^-^
----------------------------------------------------------
If works, doesn't means it is right.
 

Offline calli

  • Regular Contributor
  • *
  • Posts: 100
  • Country: de
  • 3D Blender and Maker
    • Blender Buch
Re: LaTex for EEVBlog
« Reply #26 on: March 15, 2016, 02:39:36 pm »
Actually the second edition was translated to English and published by nonstarch press. And then they translated that into Italian and Indonesien. Quite strange languages 😁😁😈😈

Carsten
Carsten Wartmann: Make Magazin DE - Autor - Dozent - 3D - Grafik - Maker
http://blenderbuch.de/
 

Offline Zbig

  • Frequent Contributor
  • **
  • Posts: 927
  • Country: pl
Re: LaTex for EEVBlog
« Reply #27 on: April 10, 2016, 11:40:18 am »
Testing Tex export from Casio FX-991EX QR code function. The calculator generates a QR code you can scan with your smart device. From there, you can e-mail yourself a link to wes.casio.com service with your result. Tex format is available there, among others. Here it goes:

\$\frac{4\rm{\pi}{\left(6.37814\rm{k}\right)}^{3}}{3.2\rm{M}}\$

Oh, bummer. Does anyone have a clue what went wrong?

Ok, figured it out. Had to enclose the whole thing as is in the backslash-dollar tags.

In case anyone is interested, that's the link the calculator has generated as a QR code:
http://wes.casio.com/math/index.php?q=I-23B-+U-000000000000+M-C10000AD00+S-001410101000110E1010B0000542+R-0101892455638533010600000000000000000000+E-C81D1A342260362E3337383134E2D0C91A331B1B1A332E32E11B1E

Ok, I cheated ;) I don't really have this calculator yet. Just scanned the sample code from CASIO's marketing material on the site (image of a calculator displaying the code, actually). But I'm sold now. Running out to grab one right away!
« Last Edit: April 10, 2016, 02:38:57 pm by Zbig »
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: LaTex for EEVBlog
« Reply #28 on: April 10, 2016, 02:32:42 pm »
EEVblog's implementation of LaTex support using mathjax is currently unsafe and allows posters to inject arbitrary javascript.  See https://www.eevblog.com/forum/chat/so-now-we-can-get-mathy-in-here/msg868990/#msg868990

Can something be done about the security issue?
 

Offline Zbig

  • Frequent Contributor
  • **
  • Posts: 927
  • Country: pl
Re: LaTex for EEVBlog
« Reply #29 on: April 10, 2016, 02:41:33 pm »
EEVblog's implementation of LaTex support using mathjax is currently unsafe and allows posters to inject arbitrary javascript.  See https://www.eevblog.com/forum/chat/so-now-we-can-get-mathy-in-here/msg868990/#msg868990

Can something be done about the security issue?

Oh, that's unfortunate :( Have you tried PMing Dave about that one?
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37740
  • Country: au
    • EEVblog
Re: LaTex for EEVBlog
« Reply #30 on: April 10, 2016, 11:51:02 pm »
EEVblog's implementation of LaTex support using mathjax is currently unsafe and allows posters to inject arbitrary javascript.  See https://www.eevblog.com/forum/chat/so-now-we-can-get-mathy-in-here/msg868990/#msg868990
Can something be done about the security issue?

I can disable the feature entirely?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: LaTex for EEVBlog
« Reply #31 on: April 11, 2016, 03:21:08 am »
To enable safe mode, which prevents javascript in LaTex etc. you need to add ,Safe at the end of the full URL + parameters in the line in the header that invokes Mathjax.
See http://mathjax.readthedocs.org/en/latest/safe-mode.html
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37740
  • Country: au
    • EEVblog
Re: LaTex for EEVBlog
« Reply #32 on: April 11, 2016, 04:13:05 am »
To enable safe mode, which prevents javascript in LaTex etc. you need to add ,Safe at the end of the full URL + parameters in the line in the header that invokes Mathjax.
See http://mathjax.readthedocs.org/en/latest/safe-mode.html

I don't know how to use that, I'm using a plugin.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: LaTex for EEVBlog
« Reply #33 on: April 11, 2016, 04:31:49 am »
If you are still using it the way you set up here: https://www.eevblog.com/forum/suggestions/latex-for-eevblog/msg866703/#msg866703, just edit the custom script to insert the ,Safe immediately before the "> on the line with the mathjax URL
Code: [Select]
<script type="text/javascript" async="async"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML,Safe">
</script>
 
The following users thanked this post: EEVblog

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37740
  • Country: au
    • EEVblog
Re: LaTex for EEVBlog
« Reply #34 on: April 11, 2016, 04:35:11 am »
If you are still using it the way you set up here: https://www.eevblog.com/forum/suggestions/latex-for-eevblog/msg866703/#msg866703, just edit the custom script to insert the ,Safe immediately before the "> on the line with the mathjax URL
Code: [Select]
<script type="text/javascript" async="async"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML,Safe">
</script>

Added, thanks.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: LaTex for EEVBlog
« Reply #35 on: April 11, 2016, 05:11:39 am »
I've just checked the test post in the other topic.  Clicking the = now does absolutely nothing so it looks like that vulnerability is now safely blocked.
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: LaTex for EEVBlog
« Reply #36 on: August 28, 2016, 10:32:05 am »
Is there a way to make \$\LaTeX\$ work for post Preview?

Alexander.
« Last Edit: August 28, 2016, 10:37:25 am by firewalker »
Become a realist, stay a dreamer.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf