Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #16986 > unrolled thread

HOW2 see LaTex in *.html?

Started byWhoCares@gmail.com
First post2016-03-15 08:12 +0000
Last post2016-03-15 20:00 +0000
Articles 8 — 4 participants

Back to article view | Back to comp.os.linux.misc


Contents

  HOW2 see LaTex in *.html? WhoCares@gmail.com - 2016-03-15 08:12 +0000
    Re: HOW2 see LaTex in *.html? JohnF <john@please.see.sig.for.email.com> - 2016-03-15 11:54 +0000
    Re: HOW2 see LaTex in *.html? Bob Tennent <BobT@cs.queensu.ca> - 2016-03-15 13:27 +0000
      Re: HOW2 see LaTex in *.html? WhoCares@gmail.com - 2016-03-16 04:51 +0000
        Re: HOW2 see LaTex in *.html? Bob Tennent <BobT@cs.queensu.ca> - 2016-03-16 05:19 +0000
        Re: HOW2 see LaTex in *.html? Bob Tennent <BobT@cs.queensu.ca> - 2016-03-16 12:29 +0000
    Re: HOW2 see LaTex in *.html? William Unruh <unruh@invalid.ca> - 2016-03-15 19:47 +0000
      Re: HOW2 see LaTex in *.html? Bob Tennent <BobT@cs.queensu.ca> - 2016-03-15 20:00 +0000

#16986 — HOW2 see LaTex in *.html?

FromWhoCares@gmail.com
Date2016-03-15 08:12 +0000
SubjectHOW2 see LaTex in *.html?
Message-ID<nc8g64$mpg$1@dont-email.me>
All 3 'web-browsers' show:
We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 

No don't tell me to update my brrowser !!

Latex has been used for decades.

Is it possible to render an already fetched & saved *.html,
which contains Latex?

==TIA.



[toc] | [next] | [standalone]


#16996

FromJohnF <john@please.see.sig.for.email.com>
Date2016-03-15 11:54 +0000
Message-ID<nc8t5r$95b$1@reader1.panix.com>
In reply to#16986
In alt.os.linux.slackware WhoCares@gmail.com wrote:
> All 3 'web-browsers' show:
>   We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset
>   \exists q, r {:} \N.\, mq + r = n\] 
> Latex has been used for decades.
> Is it possible to render an already fetched & saved *.html,
> which contains Latex?

I take it you mean latex "markup" directly inline with the html markup.
Then as far as I know, the answer's "no". And note that I wrote both
http://www.forkosh.com/mimetex.html and http://www.forkosh.com/mathtex.html
so I've researched this kind of thing pretty thoroughly.
You can use either program above, or mathjax has become the much more
widely used tool nowadays. But either way, the latex markup can't just
be transparently embedded inline with your html.
-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )

[toc] | [prev] | [next] | [standalone]


#16997

FromBob Tennent <BobT@cs.queensu.ca>
Date2016-03-15 13:27 +0000
Message-ID<slrnneg3dp.jkc.BobT@linus.cs.queensu.ca>
In reply to#16986
On Tue, 15 Mar 2016 08:12:53 -0000 (UTC), WhoCares@gmail.com wrote:
 > All 3 'web-browsers' show:
 > We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 
 >
 > Is it possible to render an already fetched & saved *.html,
 > which contains Latex?

If one submits that example to the MathJax Live Demo at

https://www.mathjax.org/

the standard TeX math is rendered perfectly in Firefox. But
how can you expect "undefined" commands such as \divi or \N
to be rendered out of context?

Bob T.


[toc] | [prev] | [next] | [standalone]


#17011

FromWhoCares@gmail.com
Date2016-03-16 04:51 +0000
Message-ID<ncaop5$q4s$1@dont-email.me>
In reply to#16997
In article <slrnneg3dp.jkc.BobT@linus.cs.queensu.ca>, Bob Tennent <BobT@cs.queensu.ca> wrote: 

> On Tue, 15 Mar 2016 08:12:53 -0000 (UTC), WhoCares@gmail.com wrote:
>  > All 3 'web-browsers' show:
>  > We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 
>  >
>  > Is it possible to render an already fetched & saved *.html,
>  > which contains Latex?
> 
> If one submits that example to the MathJax Live Demo at
> 
> https://www.mathjax.org/
> 
OK  https://www.mathjax.org/  could be interesting;
but I'm not looking for a solution for a single 'text'.
And I want to know the general solution.
And especially since prominent organisations publish
such stuff: how do other readers manage.

> the standard TeX math is rendered perfectly in Firefox. But
> how can you expect "undefined" commands such as \divi or \N
> to be rendered out of context?

What do you see at: 
http://plato.stanford.edu/entries/type-theory-intuitionistic/
---------------------------------
JohnF  wrote:--
> > All 3 'web-browsers' show:
> >   We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset
> >   \exists q, r {:} \N.\, mq + r = n\] 
> > Latex has been used for decades.
> > Is it possible to render an already fetched & saved *.html,
> > which contains Latex?
> 
> I take it you mean latex "markup" directly inline with the html markup.
> Then as far as I know, the answer's "no". And note that I wrote both
> http://www.forkosh.com/mimetex.html and
>     http://www.forkosh.com/mathtex.html
> so I've researched this kind of thing pretty thoroughly.
> You can use either program above, or mathjax has become the much more
> widely used tool nowadays. But either way, the latex markup can't just
> be transparently embedded inline with your html.
> -- ---------

OK, thanks, I'll check that out.

[toc] | [prev] | [next] | [standalone]


#17012

FromBob Tennent <BobT@cs.queensu.ca>
Date2016-03-16 05:19 +0000
Message-ID<slrnnehr74.j0.BobT@linus.cs.queensu.ca>
In reply to#17011
On Wed, 16 Mar 2016 04:51:50 -0000 (UTC), WhoCares@gmail.com wrote:
 > In article <slrnneg3dp.jkc.BobT@linus.cs.queensu.ca>, Bob Tennent <BobT@cs.queensu.ca> wrote: 
 >
 >> On Tue, 15 Mar 2016 08:12:53 -0000 (UTC), WhoCares@gmail.com wrote:
 >>  > All 3 'web-browsers' show:
 >>  > We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 
 >>  >
 >>  > Is it possible to render an already fetched & saved *.html,
 >>  > which contains Latex?
 >> 
 >> If one submits that example to the MathJax Live Demo at
 >> 
 >> https://www.mathjax.org/
 >> 
 > OK  https://www.mathjax.org/  could be interesting;
 > but I'm not looking for a solution for a single 'text'.
 > And I want to know the general solution.

I just suggested the Live Demo for you to see what's
possible. If you'd bothered to check out the site you'd see
that it is a "general solution".

 > What do you see at: 
 > http://plato.stanford.edu/entries/type-theory-intuitionistic/

What I see is text with LaTeX-driven mathematics.  And of course
they're using MathJax. Look at lines 2478-9 of the source file:

<script type="text/javascript"
src="../../MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

What do you see in your browsers?

Bob T.

[toc] | [prev] | [next] | [standalone]


#17016

FromBob Tennent <BobT@cs.queensu.ca>
Date2016-03-16 12:29 +0000
Message-ID<slrnneike7.7g9.BobT@linus.cs.queensu.ca>
In reply to#17011
On Wed, 16 Mar 2016 04:51:50 -0000 (UTC), WhoCares@gmail.com wrote:
 >
 > What do you see at: 
 > http://plato.stanford.edu/entries/type-theory-intuitionistic/

In *any* modern browser, one should see text with
interspersed mathematics. And if you download the index.html
and local.js files from there and either download MathJax.js
into a suitable sub-directory or replace the MathJax
reference by

<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

you'll again get mathematics rather than LaTeX code
when viewing the local copy. (To get the same overall
appearance as the web page, you'll need to download into
sub-directories other .js files, and .css and .png files.)

The html file must have been generated from an original .tex
source in some way, perhaps by a variant of tex4ht. I've
seen this kind of web page at publisher's sites.

Bob T.

[toc] | [prev] | [next] | [standalone]


#17005

FromWilliam Unruh <unruh@invalid.ca>
Date2016-03-15 19:47 +0000
Message-ID<nc9ost$kpf$2@dont-email.me>
In reply to#16986
On 2016-03-15, WhoCares@gmail.com <WhoCares@gmail.com> wrote:
> All 3 'web-browsers' show:
> We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 
>
> No don't tell me to update my brrowser !!
>
> Latex has been used for decades.
>
> Is it possible to render an already fetched & saved *.html,
> which contains Latex?

I have never in the 30 years I have used Latex and computers seen a
browser which can interpret Latex. 

>
>==TIA.
>
>
>
>

[toc] | [prev] | [next] | [standalone]


#17007

FromBob Tennent <BobT@cs.queensu.ca>
Date2016-03-15 20:00 +0000
Message-ID<slrnnegqeq.p9v.BobT@linus.cs.queensu.ca>
In reply to#17005
On Tue, 15 Mar 2016 19:47:41 -0000 (UTC), William Unruh wrote:
 > On 2016-03-15, WhoCares@gmail.com <WhoCares@gmail.com> wrote:
 >> All 3 'web-browsers' show:
 >> We write \[\divi : \forall m, n {:} \N.\, m > 0 \supset \exists q, r {:} \N.\, mq + r = n\] 
 >>
 >> No don't tell me to update my brrowser !!
 >>
 >> Latex has been used for decades.
 >>
 >> Is it possible to render an already fetched & saved *.html,
 >> which contains Latex?
 >
 > I have never in the 30 years I have used Latex and computers seen a
 > browser which can interpret Latex. 

But browsers can interpret javascript and MathJax translates
LaTeX to javascript.

https://www.mathjax.org/

Bob T.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web