From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: more LaTeX (was: Re: emacs and beginning of lines) Date: Wed, 10 Sep 2014 03:12:09 +0200 Organization: Aioe.org NNTP Server Message-ID: <87sik0uvme.fsf@debian.uxu> References: <87r3zpko3s.fsf@mithlond.arda> <87lhpvglqu.fsf@debian.uxu> <87vboxepal.fsf@debian.uxu> <87fvg0y345.fsf_-_@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410311726 1789 80.91.229.3 (10 Sep 2014 01:15:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 01:15:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 03:15:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRWVE-0000Vt-A0 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 03:15:20 +0200 Original-Received: from localhost ([::1]:52680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRWVD-00057P-A9 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 21:15:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.mb-net.net!open-news-network.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 73 Original-NNTP-Posting-Host: P0uMB9BthHuWo8+BJXB4Mw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:AkH8cC7ZOQ3LWjzcXLAuLEnDKXI= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:207484 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99759 Archived-At: Marcin Borkowski writes: >> When I wrote what you quote, I meant >> general-purpose, like C. But now that you say it, >> LaTeX offers a borderline case: the programming >> parts of it, I don't want to be filled, but I want >> the text part of it to be (perhaps with the >> modification I suggested). > > How do you decide which is which? It has to be based on where the point is and what is before/after it. > Doesn't the difference between TeX and HTML you mean > here lie in the fact that TeX is Turing-complete and > HTML is not? Well, Turing-complete is CS lingo and I only did CS at the university... But what I remember is that it wasn't easy to apply those paradigms and classification to technology, not then and not now. Feel free to try, tho. No, I think HTML isn't programming because of the lack of algorithms. HTML is also domain-specific, marking-up text so that it can be displayed and interlinked in certain ways. But where you can do seemingly anything in LaTeX HTML is very limited when it comes to logic and "execution" flow. It is just a 1:1 textual representation of what will turn up in the browser. But actually that doesn't have to be bad. I like static web pages that only present textual material, with a couple of images, and a link to the "next" section. So even though LaTeX seems to be much more powerful than HTML, I don't wish for a "LaTeX-web"... > And there are a few numerical engines, a few drawing > libraries, one regex library and *a lot* of other > things /programmed/ in TeX. Yes. This is the coolest thing I did in LaTeX: http://user.it.uu.se/~embe8573/about/matte.pdf (But it doesn't contain anything dynamic.) But, I did a CV once which used this chunk of code (which I didn't wrote) to automatically update my age (ha! how depressing to have to do that each year while the rest of the CV stays the same...) http://user.it.uu.se/~embe8573/latex/year.tex But it is a good example. I think the programming in LaTeX is good, and probably it will be the most useful with and around documents and typesetting. > (I read an article about some LaTeX code generating > tests in differential equations. With solutions. > Though it didn't actually solve them, it first chose > the solutions (pseudo-randomly) and then generated an > equation with that very solution.) So while it is > indeed a domain-specific language, it /can/ be > coerced to doing really strange things. Yeah, it reminds me of groff (roff) which is also like that. But just because you can do lots in both doesn't mean a more modern solution isn't preferable all the same (like C, walkie-talkies, and e-mails). -- underground experts united