From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: more LaTeX (was: Re: emacs and beginning of lines) Date: Wed, 10 Sep 2014 02:12:17 +0200 Organization: WMI UAM Message-ID: <20140910021217.2715807f@aga-netbook> 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; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410307972 20494 80.91.229.3 (10 Sep 2014 00:12:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 00:12:52 +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 02:12:47 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 1XRVWf-0000fi-E6 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 02:12:45 +0200 Original-Received: from localhost ([::1]:52463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRVWe-0002QM-Tt for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 20:12:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRVWN-0002Oq-MD for help-gnu-emacs@gnu.org; Tue, 09 Sep 2014 20:12:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRVWJ-0003li-AO for help-gnu-emacs@gnu.org; Tue, 09 Sep 2014 20:12:27 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:42678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRVWI-0003kr-Vs for help-gnu-emacs@gnu.org; Tue, 09 Sep 2014 20:12:23 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 44E6046C98 for ; Wed, 10 Sep 2014 02:12:20 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qeg-S-yPjbdv for ; Wed, 10 Sep 2014 02:12:20 +0200 (CEST) Original-Received: from aga-netbook (abvd91.neoplus.adsl.tpnet.pl [83.8.201.91]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id EAF0946C61 for ; Wed, 10 Sep 2014 02:12:19 +0200 (CEST) In-Reply-To: <87fvg0y345.fsf_-_@debian.uxu> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 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:99757 Archived-At: Dnia 2014-09-09, o godz. 22:02:02 Emanuel Berg napisa=C5=82(a): > Marcin Borkowski writes: >=20 > >>> If you use a VCS and look at a diff from time to > > >>> time, filling might be a bad idea. (Though > > >>> visual-line-mode is not helpful then, either.) > >> Indeed, there are many times - notably all > >> programming and configuration modes - where you > >> don't want filling and absolutely not automatically > >> so. > > > > Is LaTeX mode a programming one? ;-) >=20 > LaTeX is definitely programming, but it is not > general-purpose programming (like C), or data-oriented > programming (like SQL), or anything like that. >=20 > I think the term is "domain-specific" and the domain is > typesetting documents and arranging material in > structured ways. >=20 > 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? > HTML on the other hand, I don't consider > programming but as with LaTeX, the text parts of an > .html file I would like filled, but not the tags that > set (and should so reflect) structure. True. Doesn't the difference between TeX and HTML you mean here lie in the fact that TeX is Turing-complete and HTML is not? See here (when you run out of real problems, that is;-)): http://tex.stackexchange.com/questions/58042/ Also, search for "basix" on that very page. (Only for people with strong nerves.) And there are a few numerical engines, a few drawing libraries, one regex library and *a lot* of other things /programmed/ in TeX. (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. (Also, as a side-note for Lispers: TeX has macros which are "expanded", but it doesn't have functions which would be "called". This means in particular that you don't need loops in the language - you can /implement/ them. And you can change the order of expansion, which is left-to-right by default, to a right-to-left one, though only temporarily, for the next two tokens. Actually, this is extremely useful. And btw: macro expansion happens at a different moment than /assignments/, that is, state changes. And writing to external files happens at yet another moment (at least usually, it doesn't have to if you explicitly demand that it doesn't). And due to the catcode mechanism you can pretty much redefine all of TeX syntax on the fly. One guy used this to build an XML parser /entirely in TeX/. Yes, TeX is /not/ a "normal" programming language.) > > And Org's tables - exportable to LaTeX & HTML - are > > really, really great. One time I had a table in LaTeX > > - two rows and lots of columns - and needed to > > transpose it. Good luck, unless you convert it to > > Org-mode (manually, but fast due to string > > replacing), then transpose it in Org (one command) > > and export back to LaTeX's tabular. >=20 > Stuff like that is great - when they work :) Also true. --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University