From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Request for suggestions including source code Date: Wed, 04 May 2011 16:59:14 -0500 Message-ID: <4DC1CC32.4090003@sift.info> References: <4DC1BCE7.8060503@sift.info> <3B495FCF-216C-4B81-BC13-DC74B8C401B9@tsdye.com> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHk6L-00074q-N1 for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHk6J-0007lp-50 for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:59:21 -0400 Received: from mpls.sift.info ([75.146.46.193]:59823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHk6J-0007lY-1S for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:59:19 -0400 In-Reply-To: <3B495FCF-216C-4B81-BC13-DC74B8C401B9@tsdye.com> 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: "Thomas S. Dye" Cc: Org Mode On 5/4/11 May 4 -4:13 PM, Thomas S. Dye wrote: > Aloha Robert, > > Have a look at the listings and minted packages. You can specify font > size on a per-document or per-language basis. I believe listings has an > option to wrap long lines (don't remember this for minted, though). > > The instructions here might be helpful: > > http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12_2 Hm. I'm still grappling with this. I am including many of these examples by using a source snippet (in sh) that goes out and pulls the example out of a source code file. Even after adding #+LaTeX_HEADER \usepackage{listings} and #+src: setup-listings to the top of my file, and setting org-export-latex-listings to 'listings the :results of the source blocks, which look like, e.g., the following: #+begin_src sh :exports results :results output sourceSample.perl single code/ontology/top.prxo 'Class Pattern' #+end_src come out wrapped in \begin{verbatim} ... \end{verbatim} Maybe I'm not doing enough. I'm a bit confused by the listings example in the tutorial because it has the configuration examples be in their own source block, and adds all of the options for specially typesetting particular programming languages. It's not altogether clear to me which bits of that are critical to getting the listings stuff to work at all, and which are only specially tailoring its function. Is it necessary to specify what programming language is used in order to typeset using listings? I am using a domain specific language for which there is no obvious listings setting and, anyway, what I am trying to typeset is the /results/ of the source blocks, which are in a different programming language from the /source/ of the source blocks. I suspect I am just looking for a simpler solution, e.g., one which would make org-mode give me the source blocks in {\small \begin{verbatim} ... \end{verbatim} } instead of \begin{verbatim} ... \end{verbatim} or something like that. best, r