emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Change font size temporarily for pdf export
@ 2014-06-29  6:09 Shiyuan
  2014-06-29  6:48 ` Shiyuan
  0 siblings, 1 reply; 2+ messages in thread
From: Shiyuan @ 2014-06-29  6:09 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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: 730 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Change font size temporarily for pdf export
  2014-06-29  6:09 Change font size temporarily for pdf export Shiyuan
@ 2014-06-29  6:48 ` Shiyuan
  0 siblings, 0 replies; 2+ messages in thread
From: Shiyuan @ 2014-06-29  6:48 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-29  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-29  6:09 Change font size temporarily for pdf export Shiyuan
2014-06-29  6:48 ` Shiyuan

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).