emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Change font size temporarily for pdf export
Date: Sat, 28 Jun 2014 23:48:29 -0700	[thread overview]
Message-ID: <CAOm4EMtDziFgPOWRhqJXpWn47OT_ga1YPjAPD7Gw7cRK9sKSjA@mail.gmail.com> (raw)
In-Reply-To: <CAOm4EMvETsLAJDJUiFLy=voUr3L=9jhxqAo2Eo-9bXA9R4mbBg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

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 <gshy2014@gmail.com> 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.
>

[-- Attachment #2: Type: text/html, Size: 1367 bytes --]

      reply	other threads:[~2014-06-29  6:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-29  6:09 Change font size temporarily for pdf export Shiyuan
2014-06-29  6:48 ` Shiyuan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOm4EMtDziFgPOWRhqJXpWn47OT_ga1YPjAPD7Gw7cRK9sKSjA@mail.gmail.com \
    --to=gshy2014@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).