From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Overlay mechanic improvements Date: Tue, 30 Sep 2014 19:35:20 +0300 Message-ID: <838ul1kqwn.fsf@gnu.org> References: <871tr6qup8.fsf@fencepost.gnu.org> <87ppepne6d.fsf@fencepost.gnu.org> <87mw9smxaz.fsf@fencepost.gnu.org> <87sijii1cd.fsf@fencepost.gnu.org> <87vbo7j7yy.fsf@fencepost.gnu.org> <87a95hx5re.fsf@uwakimon.sk.tsukuba.ac.jp> <8761g5jy6e.fsf@fencepost.gnu.org> <87iok5cs6b.fsf@gmx.us> <83sij9kx2r.fsf@gnu.org> <871tqtjd1l.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1412094961 32635 80.91.229.3 (30 Sep 2014 16:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 16:36:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 30 18:35:53 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XZ0P3-0004lA-Ea for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2014 18:35:53 +0200 Original-Received: from localhost ([::1]:44385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ0P2-00005Q-VP for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2014 12:35:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ0Ou-000058-1a for emacs-devel@gnu.org; Tue, 30 Sep 2014 12:35:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ0Oo-0002vf-4n for emacs-devel@gnu.org; Tue, 30 Sep 2014 12:35:43 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:34603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ0Oh-0002uL-7e; Tue, 30 Sep 2014 12:35:31 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NCQ006003BC2Q00@a-mtaout21.012.net.il>; Tue, 30 Sep 2014 19:35:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCQ0066I3F21840@a-mtaout21.012.net.il>; Tue, 30 Sep 2014 19:35:26 +0300 (IDT) In-reply-to: <871tqtjd1l.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174872 Archived-At: > From: David Kastrup > Date: Tue, 30 Sep 2014 18:20:06 +0200 >=20 > Since preview-latex is trivial to install via ELPA (as it's include= d in > AUCTeX), I=A0am somewhat at a loss figuring out what point people a= re > trying to make by stating that they are not going to bother looking= at > it, preferring me to type descriptions for hours. I doubt that just installing preview-latex would give me the insight into the issues you were alluding to, without some serious study of the code. > Emacs does not offer any default support for rendering images on-de= mand > from source code in a buffer. The pipelines that preview-latex can= be > something like >=20 > buffer -> LaTeX -> Dvips -> Ghostscript -> PNG > buffer -> PDFLaTeX -> pdftodsc -> Ghostscript -> PNG > buffer -> LaTeX -> Dvipng -> PNG >=20 > It will also run several of those in parallel, like running > LaTeX->Dvipng but falling back to Dvips->Ghostscript for those imag= es > which contain embedded PostScript. The Ghostscript pipeline will r= ender > the on-screen images first to make for better interactive response.= In > addition to the images, LaTeX produces geometry, baseline, source > location and various other info (for example, default font size in = order > to match the rendering scale to the current default screen font) wh= ich > is parsed by Emacs and used for integrating the resulting images in= the > right place and scale into the originating buffer. >=20 > So there are prioritized rendering pipelines and information side p= aths > that deliver information crucial for tying the image stream back in= to > the proper buffer locations, with proper scale and baseline. >=20 > There is other stuff like being able to paste text plus images into= MIME > mails (with the obvious loss of baseline and other formatting > information, but for display math it is somewhat helpful), and desk= top > mode saving and restoring the images associated with a buffer. >=20 > All of that is not specific to LaTeX, and Emacs does not really pro= vide > anything helpful for creating that kind of facility apart from the > display feature itself and the possibility to run processes and pro= cess > filters. Thanks, this is the information I was missing.