From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Change font size temporarily for pdf export Date: Sat, 28 Jun 2014 23:09:47 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11339974ba3f9904fcf36390 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X18JA-0004hC-OD for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:09:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X18J9-0006HL-SU for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:09:48 -0400 Received: from mail-ve0-x22e.google.com ([2607:f8b0:400c:c01::22e]:61110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X18J9-0006HE-O5 for emacs-orgmode@gnu.org; Sun, 29 Jun 2014 02:09:47 -0400 Received: by mail-ve0-f174.google.com with SMTP id jx11so6895008veb.5 for ; Sat, 28 Jun 2014 23:09:47 -0700 (PDT) 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" --001a11339974ba3f9904fcf36390 Content-Type: text/plain; charset=UTF-8 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. --001a11339974ba3f9904fcf36390 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
=C2=A0 =C2=A0When a src code block is export= ed 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 chang= e font size. What is the best way to do that in org model? =C2=A0Say that i= f I have two src blocks, I want the first code block to be typeset in scrip= tsize but the second block typeset in normalsize .=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
--001a11339974ba3f9904fcf36390--