From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Elasady, Summer" Subject: Exporting Code Blocks to PDF Date: Tue, 22 Apr 2014 23:28:38 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_CF7C65474CF6srestowersorg_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wck7T-0002Jv-F3 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 19:29:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wck7O-00081y-Fu for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 19:28:55 -0400 Received: from smtp01.stowers.org ([12.201.176.61]:36173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wck7O-00081t-8K for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 19:28:50 -0400 Received: from pps.filterd (smtp01.stowers.org [127.0.0.1]) by smtp01.stowers.org (8.14.7/8.14.7) with SMTP id s3MNRGHV013927 for ; Tue, 22 Apr 2014 18:28:49 -0500 Received: from mbsrv01.sgc.loc (mbsrv01.sgc.loc [10.0.52.150]) by smtp01.stowers.org with ESMTP id 1ke1mdg06n-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 22 Apr 2014 18:28:49 -0500 In-Reply-To: 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" --_000_CF7C65474CF6srestowersorg_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello Emacs World- I=92m using LaTex to export documents to PDF, but the code blocks are not f= itting to the page properly and the code is being cutoff. Is there a way to= turn on word-wrapping for export to PDF, or to resize code blocks? Also, does anyone have a good system for dealing with exporting large table= s? Right now I=92m just linking to a file, but I=92m curious if anyone else= is doing anything clever. Thanks in advance! Summer SRE@stowers.org --_000_CF7C65474CF6srestowersorg_ Content-Type: text/html; charset="Windows-1252" Content-ID: <861F2ACFE1893546A68C208F2B7F5BD6@sgc.loc> Content-Transfer-Encoding: quoted-printable
Hello Emacs World-

I=92m using LaTex to export documents to PDF, but the code blocks are = not fitting to the page properly and the code is being cutoff. Is there a w= ay to turn on word-wrapping for export to PDF, or to resize code blocks?&nb= sp;

Also, does anyone have a good system for dealing with exporting large = tables? Right now I=92m just linking to a file, but I=92m curious if anyone= else is doing anything clever. 

Thanks in advance! 

Summer 

--_000_CF7C65474CF6srestowersorg_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Exporting Code Blocks to PDF Date: Tue, 22 Apr 2014 19:43:38 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WclHr-0005t8-Oe for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 20:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WclHn-0007xF-4S for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 20:43:43 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:64488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WclHm-0007xA-V4 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 20:43:39 -0400 Received: by mail-oa0-f41.google.com with SMTP id j17so273356oag.0 for ; Tue, 22 Apr 2014 17:43:38 -0700 (PDT) In-Reply-To: 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: "Elasady, Summer" Cc: "emacs-orgmode@gnu.org" On Tue, Apr 22, 2014 at 6:28 PM, Elasady, Summer wrote: > Hello Emacs World- > > I=E2=80=99m using LaTex to export documents to PDF, but the code blocks a= re not > fitting to the page properly and the code is being cutoff. Is there a way= to > turn on word-wrapping for export to PDF, or to resize code blocks? > I don't know if there's a way to wrap, but in my one formal programming class, the convention was only to write 80 characters or less -- are you exceeding that? If not, and it's just a font size thing, you can always use LaTeX to reduce the font. I frequently do this, especially using code in Beamer presentations: #+latex: \scriptsize #+begin_src R blah blah code here #+end_src #+latex: \normalsize This way, the block is downsized, and then resumes to regular font size for the rest of the document. You can use any size command you want; I frequently use \footnotesize, \scriptsize, and \tiny. I hardly notice a difference with \small, though you can try that, too. > Also, does anyone have a good system for dealing with exporting large > tables? Right now I=E2=80=99m just linking to a file, but I=E2=80=99m cur= ious if anyone else > is doing anything clever. > For tables that are /close/ in size already, I do the same thing as above, at least if we're talking about fitting to width. You can also flip sideways and extend over multiple pages to handle both wide and long: #+latex: \begin{landscape} #+attr_latex: :environment longtable | *alpha* | *beta* | *gamma* | *delta* | |---------+--------+---------+---------| | 1 | 1 | 1 | 1 | | 2 | 2 | 2 | 2 | | 3 | 3 | 3 | 3 | | 4 | 4 | 4 | 4 | #+latex: \end{landscape} You can use them independently, too. Initially I tried the Org syntax for sidewaystable, but it didn't seem to work with longtable: - http://orgmode.org/manual/LaTeX-specific-attributes.html As in, technically it would seem you could do: #+attr_latex: :environment longtable :float sidewaystable But perhaps that's more of a LaTex issue: - http://tex.stackexchange.com/questions/63585/sidewaystable-together-with-= longtable Anyway, the above works, and that covers any handles I've ever used (font, rotate, extend over multiple pages). Other than trying to wordsmith my column names where the title exceeds the contents... that's all the tricks up my sleeve! John > Thanks in advance! > > Summer > SRE@stowers.org > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard =?iso-8859-1?Q?Pr=F6ll?= Subject: Re: Exporting Code Blocks to PDF Date: Wed, 23 Apr 2014 09:22:25 +0200 Message-ID: <20140423072225.GA11900@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcrVs-00041K-1W for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 03:22:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcrVl-0001RL-MI for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 03:22:35 -0400 Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]:54354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcrVl-0001RH-EQ for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 03:22:29 -0400 Received: by mail-ee0-f46.google.com with SMTP id t10so393242eei.5 for ; Wed, 23 Apr 2014 00:22:27 -0700 (PDT) Received: from localhost (84-112-193-251.dynamic.surfer.at. [84.112.193.251]) by mx.google.com with ESMTPSA id t4sm3659643eeb.29.2014.04.23.00.22.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 00:22:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 Instead of switching fontsizes regularly, you might want to set the monofon= t size or scale: #+LATEX_HEADER: \setmonofont[Scale=3D0.8]{Source Code Pro} Bernhard John Hendy schrieb am Tue, 22. Apr 19:43: >On Tue, Apr 22, 2014 at 6:28 PM, Elasady, Summer wrote: >> Hello Emacs World- >> >> I=E2=80=99m using LaTex to export documents to PDF, but the code blocks = are not >> fitting to the page properly and the code is being cutoff. Is there a wa= y to >> turn on word-wrapping for export to PDF, or to resize code blocks? >> > >I don't know if there's a way to wrap, but in my one formal >programming class, the convention was only to write 80 characters or >less -- are you exceeding that? If not, and it's just a font size >thing, you can always use LaTeX to reduce the font. I frequently do >this, especially using code in Beamer presentations: > >#+latex: \scriptsize >#+begin_src R blah blah > >code here > >#+end_src >#+latex: \normalsize > >This way, the block is downsized, and then resumes to regular font >size for the rest of the document. You can use any size command you >want; I frequently use \footnotesize, \scriptsize, and \tiny. I hardly >notice a difference with \small, though you can try that, too. > >> Also, does anyone have a good system for dealing with exporting large >> tables? Right now I=E2=80=99m just linking to a file, but I=E2=80=99m cu= rious if anyone else >> is doing anything clever. >> > >For tables that are /close/ in size already, I do the same thing as >above, at least if we're talking about fitting to width. You can also >flip sideways and extend over multiple pages to handle both wide and >long: > >#+latex: \begin{landscape} >#+attr_latex: :environment longtable >| *alpha* | *beta* | *gamma* | *delta* | >|---------+--------+---------+---------| >| 1 | 1 | 1 | 1 | >| 2 | 2 | 2 | 2 | >| 3 | 3 | 3 | 3 | >| 4 | 4 | 4 | 4 | >#+latex: \end{landscape} > >You can use them independently, too. Initially I tried the Org syntax >for sidewaystable, but it didn't seem to work with longtable: >- http://orgmode.org/manual/LaTeX-specific-attributes.html > >As in, technically it would seem you could do: > >#+attr_latex: :environment longtable :float sidewaystable > >But perhaps that's more of a LaTex issue: >- http://tex.stackexchange.com/questions/63585/sidewaystable-together-with= -longtable > >Anyway, the above works, and that covers any handles I've ever used >(font, rotate, extend over multiple pages). Other than trying to >wordsmith my column names where the title exceeds the contents... >that's all the tricks up my sleeve! > > >John > > >> Thanks in advance! >> >> Summer >> SRE@stowers.org >> >