From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Halder Subject: Re: [Babel] size limit of #+call Date: Sat, 24 Mar 2012 22:00:13 +0100 Message-ID: <5FC1691B-A2A0-428B-8E87-FB39178C8A8D@gmail.com> References: <8889A3B3-267B-4E41-B52D-D33DC9162523@gmail.com> <32138.1332615602@alphaville> Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBY4S-0007qY-Hf for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 17:00:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBY4Q-0002ti-Sp for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 17:00:20 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:63905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBY4Q-0002tV-FV for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 17:00:18 -0400 Received: by werj55 with SMTP id j55so4373628wer.0 for ; Sat, 24 Mar 2012 14:00:16 -0700 (PDT) In-Reply-To: <32138.1332615602@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Am 24.03.2012 um 20:00 schrieb Nick Dokos: > Martin Halder wrote: >=20 >> Hi all, >>=20 >> trying to use a function to output a latex file using python with =3D >> #+call. >>=20 >> The example below does work but when pycalltest gets too big it just = =3D >> output "nil". >> When I call pycalltest directly with C-c C-c it works even with a big = =3D >> function. >>=20 >> Is there a size limit when I use #+call ? >>=20 >> Thanks for help, >> Martin >>=20 >> #+name: =3D >> = pycalltest(trans=3D3Dtranslation,items=3D3Ditems,cust=3D3Dcustomer,deta=3D= 3Ddetail=3D >> s,lang=3D3D"german",cur=3D3D"chf") >> #+begin_src python :results output >> execfile('latex.py') >> print lx_config >> #+end_src >> #+call: pycalltest(translation,items,customer,details,"german","chf") = =3D >> :file "test.tex" >=20 > Can you please provide all the pieces needed to run this? I presume at = least > latex.py is needed - anything else? ok, found with options hlines and colnames I get the same result for = direct evaluation and call. Problem solved, thanks and sorry for the noise. Martin ** input table translation #+tblname: transl | field | german | english | |---------+---------+-------------| | country | Schweiz | Switzerland | #+name: pycalltest(trans=3Dtransl) #+begin_src python :results output :hlines yes :colnames no print trans #+end_src #+call: pycalltest(transl) :file "test.tex"