From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Question on formatting result blocks in LaTeX Date: Sun, 9 Sep 2012 16:47:24 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A3347089E6598@EXMAIL7.haas.uc.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TArEr-0002hd-Ah for emacs-orgmode@gnu.org; Sun, 09 Sep 2012 19:48:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TArEq-0002jG-8x for emacs-orgmode@gnu.org; Sun, 09 Sep 2012 19:48:29 -0400 Received: from gateway-a.haas.berkeley.edu ([128.32.222.29]:32100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TArEq-0002j8-2d for emacs-orgmode@gnu.org; Sun, 09 Sep 2012 19:48:28 -0400 Content-Language: en-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: "emacs-orgmode@gnu.org" Using Org-mode version 7.9.1 (release_7.9.1-163-g27101a @ c:/emacs/site-lis= p/org-mode/lisp/), here's an example of some Python code with an output blo= ck: #+name: read_excel #+begin_src python :results output :exports both from pandas import * import requests, StringIO xls =3D requests.get('http://www.econ.yale.edu/~shiller/data/chapt26.xls') f =3D io.parsers.ExcelFile(StringIO.StringIO(xls.content)) dat=3Df.parse('Data',skiprows=3D[0,1,3,4,5,6,7],index_col=3D0).dropna(thres= h=3D3).ix[:,'P':'CPI'].convert_objects() print dat.head(5) #+end_src #+RESULTS: read_excel : NOTE *** Ignoring non-worksheet data named u'PDVPlot' (type 0x02 =3D Char= t) : NOTE *** Ignoring non-worksheet data named u'ConsumptionPlot' (type 0x02 = =3D Chart) : P D E R RLONG CPI : 1871 4.44 0.26 0.40 6.35 5.32 12.464061 : 1872 4.86 0.30 0.43 7.81 5.36 12.654392 : 1873 5.11 0.33 0.46 8.35 5.58 12.939807 : 1874 4.66 0.33 0.46 6.86 5.47 12.368896 : 1875 4.54 0.30 0.36 4.96 5.07 11.512651 When I export this org file to HTML, the output block has the same format (= colors, etc.) as the source block. When I export to PDF via LaTeX, however= , the result block seems to get formatted as regular text, and looks nothin= g like the source block. Is there any way to get the same formatting for th= e result block as for the source block when exporting to LaTeX/PDF? Thanks. Richard Stanton