From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-preview-latex-fragment for @@latex:stuff@@? Date: Mon, 23 Nov 2015 14:42:24 -0500 Message-ID: References: <87wpta17ey.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0x0R-0000mx-JL for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 14:42:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0x0M-0006Yi-BI for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 14:42:31 -0500 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:35753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0x0M-0006Ya-7Y for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 14:42:26 -0500 Received: by qgec40 with SMTP id c40so121162065qge.2 for ; Mon, 23 Nov 2015 11:42:26 -0800 (PST) In-reply-to: <87wpta17ey.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org True enough! I wasn't thinking very large when I had the question in mind! I end up with a lot of chemical formulas like this @@latex:\ce{H_{2}O}@@ in my writing because the {} inside the {} makes them render incorrectly in LaTeX, and I was looking for a way to visualize them. your points are good ones though, there could be many things that don't make sense to preview in these. Rasmus writes: > John Kitchin writes: > >> Should the inline latex fragments like @@latex:\ce{H_{2}O}@@ be >> previewable in org files with org-preview-latex-fragment? >> >> They don't seem to be, and just wanted to confirm that is intended >> behavior. > > Is there a general solution for this? E.g. how should these cases be > previewed: > > My text @@latex:% my end of line comment@@ > @@latex:\input{myfile}@@ > > Rasmus -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu