From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte 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 Message-ID: <87vc7ka45f.fsf@gmail.com> References: <878v5kkxyz.fsf@ericabrahamsen.net> <871ub9frnp.fsf@ericabrahamsen.net> <87obdcverf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfsD-0007OW-7n for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USfs9-00057H-Ee for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:51:01 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:36133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfs9-00057D-7Q for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:50:57 -0400 Received: by mail-pd0-f169.google.com with SMTP id 10so1239667pdc.14 for ; Wed, 17 Apr 2013 20:50:56 -0700 (PDT) In-Reply-To: (John Hendy's message of "Wed, 17 Apr 2013 22:13:05 -0500") 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: John Hendy Cc: shripad sinari , Orgmode Mailing List >> 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