From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: Change font size temporarily for pdf export Date: Sat, 28 Jun 2014 23:48:29 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1bd8c23a91204fcf3ee8d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X18ud-0000lt-5G for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:48:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X18uc-0000mo-99 for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:48:31 -0400 Received: from mail-ve0-x22d.google.com ([2607:f8b0:400c:c01::22d]:34140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X18uc-0000mi-4K for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:48:30 -0400 Received: by mail-ve0-f173.google.com with SMTP id db11so7055881veb.32 for ; Sat, 28 Jun 2014 23:48:29 -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: "emacs-orgmode@gnu.org" --001a11c1bd8c23a91204fcf3ee8d Content-Type: text/plain; charset=UTF-8 I found one solution which surrounds the src block by #+LATEX: \scriptsize #+BEGIN_SRC R print("This block is in scriptsize") #+END_SRC R #+LATEX: \normalize On Sat, Jun 28, 2014 at 11:09 PM, Shiyuan wrote: > Hi, > When a src code block is exported to latex-pdf, the src lines sometimes > are too long to fit in a pdf line. One easy way to handle this problem I > can think of is to temporarily change font size. What is the best way to do > that in org model? Say that if I have two src blocks, I want the first > code block to be typeset in scriptsize but the second block typeset in > normalsize . > > #+BEGIN_SRC R > print("This block in scriptsize") > ...... > #+END > > #+BEGIN_SRC R > print("This block back to normalsize") > ...... > #+END > > Thanks. > --001a11c1bd8c23a91204fcf3ee8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I found one solution which surrounds the src block by=C2= =A0
#+LATEX: \scriptsize
#+BEGIN_SRC R
print(&q= uot;This block is in scriptsize")
#+END_SRC R=C2=A0
#+LATEX: \normalize



On Sat, Jun 28, 2014 at 11:09 PM, Shiyuan <g= shy2014@gmail.com> wrote:
Hi,=C2=A0
=C2=A0 =C2=A0= When a src code block is exported to latex-pdf, the src lines sometimes are= too long to fit in a pdf line. One easy way to handle this problem I can t= hink of is to temporarily change font size. What is the best way to do that= in org model? =C2=A0Say that if I have two src blocks, I want the first co= de block to be typeset in scriptsize but the second block typeset in normal= size .=C2=A0

#+BEGIN_SRC R
print("This block in scrip= tsize")
......
#+END

#+BEGIN_SRC R
print("This block back to normalsize")
......
#+END

Thanks.=C2=A0

--001a11c1bd8c23a91204fcf3ee8d--