From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [babel] using #+call for inline results Date: Mon, 27 Jun 2011 18:09:04 +0100 Message-ID: <87mxh38amn.fsf@ucl.ac.uk> References: <87mxhaunsi.fsf@ucl.ac.uk> <87mxh9omwb.fsf@gmail.com> <87mxh9pvz8.fsf@ucl.ac.uk> <87sjr1i040.fsf@gmail.com> <4E030676.3070504@christianmoe.com> <87hb7ej1pu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGIF-0007rV-Ay for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbGID-0001OO-4k for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:12:18 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:58662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGIC-0001Nz-P3 for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:12:16 -0400 In-Reply-To: <87hb7ej1pu.fsf@gmail.com> (Eric Schulte's message of "Fri, 24 Jun 2011 15:36:19 -0700") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric Schulte writes: > > I've just pushed up an implementation for inline call blocks, the new > syntax is described in the documentation but a simple example is below. > > #+source: square > #+begin_src emacs-lisp :var it=0 > (* it it) > #+end_src > > Here is a call_square(it=4) stuck in the middle of some prose. > > Please let me know how it works and if you have any problems or > recommendations. > > Cheers -- Eric Eric, this was working on Friday but seems to have stopped working for me now completely. For instance, your snippet above exports as --8<---------------cut here---------------start------------->8--- \lstset{language=Lisp} \begin{lstlisting} (* it it) \end{lstlisting} Here is a call$_{\mathrm{square}}$(it=4) stuck in the middle of some prose. --8<---------------cut here---------------end--------------->8--- I do not believe I have changed anything in my settings... I do note from the git log that you have made quite a few changes. Has some setting crept in that I need to configure? Also, I note from the comments that you expect the inline call to be whitespace delimited. I haven't tested this but, just in case, could I request that the delimiting be either whitespace or punctuation? There are cases where I would like the inline evaluation to be at the end of a sentence, for instance, or even something like: 25^2=call_square(it=25) Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.461.g6d18)