From: Eric Schulte <schulte.eric@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: shripad sinari <shripad.sinari@gmail.com>,
Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: scaling the text in the results block of some code chunk when exported using LaTeX
Date: Wed, 17 Apr 2013 21:50:20 -0600 [thread overview]
Message-ID: <87vc7ka45f.fsf@gmail.com> (raw)
In-Reply-To: <CA+M2ft8Ez1M-2jRvAskt8NPrCJS70157L0mrT2BqcyOtOkL4Jg@mail.gmail.com> (John Hendy's message of "Wed, 17 Apr 2013 22:13:05 -0500")
>> Hello all,
>> A quick update. Only the named block solution from Jay Kerns currently
>> works. I have tried out variants of other proposed solutions here but none
>> worked.
One option I used recently was to resize *all* verbatim blocks using the
fancyvrb package. The following export filter converts all "verbatim"
environments to "Verbatim" environments.
(defun org-latex-filter-fancyvrb (text backend info)
"Convert begin/end{verbatim} to begin/end{Verbatim}.
Allows use of the fancyvrb latex package."
(when (org-export-derived-backend-p backend 'latex)
(replace-regexp-in-string
"\\\\\\(begin\\|end\\){verbatim}"
"\\\\\\1{Verbatim}"
text)))
(add-to-list 'org-export-filter-final-output-functions
'org-latex-filter-fancyvrb)
Then adding the following to the top of your file will change the font
size for these blocks.
\usepackage{fancyvrb}
\fvset{fontsize=\scriptsize}
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
prev parent reply other threads:[~2013-04-18 3:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 23:44 scaling the text in the results block of some code chunk when exported using LaTeX shripad sinari
2013-03-19 0:26 ` Jay Kerns
2013-03-19 1:07 ` Thomas S. Dye
2013-03-19 2:08 ` shripad sinari
2013-03-19 0:57 ` Eric Abrahamsen
[not found] ` <CAA_SOTZwUcdvt4tbQTV5PLWxSE=C6vZ0k+bBEshHXG8FkFaK0g@mail.gmail.com>
[not found] ` <871ub9frnp.fsf@ericabrahamsen.net>
[not found] ` <CAA_SOTZoqTufBQkckeBXJoiJe6j+TqWqa=PiSWJQ3Xn35h2bhA@mail.gmail.com>
[not found] ` <87obdcverf.fsf@ericabrahamsen.net>
2013-04-18 2:46 ` shripad sinari
2013-04-18 3:13 ` John Hendy
2013-04-18 3:43 ` shripad sinari
2013-04-18 3:53 ` John Hendy
2013-04-18 3:57 ` shripad sinari
2013-04-18 4:12 ` shripad sinari
2013-04-18 4:18 ` John Hendy
2013-04-18 4:20 ` shripad sinari
2013-04-18 4:25 ` John Hendy
2013-04-18 4:59 ` shripad sinari
2013-04-18 3:50 ` Eric Schulte [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=87vc7ka45f.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
--cc=shripad.sinari@gmail.com \
/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).