From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: org-article.cls generated empty after tangling Date: Fri, 27 Jun 2014 06:14:01 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0YnB-0001K6-0p for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 12:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Yn2-0006iB-HC for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 12:14:24 -0400 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:36418) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X0Yn2-0006hU-24 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 12:14:16 -0400 In-Reply-To: (Onur Solmaz's message of "Fri, 27 Jun 2014 12:43:31 +0200") 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: Onur Solmaz Cc: Org-mode Aloha Onur, Onur Solmaz writes: > Ah, so this example is for org-mode < 8? > http://orgmode.org/worg/org-contrib/babel/examples/article-class.html > I got confused because on some sites, it explicitly says for version < 8, > like this one: http://orgmode.org/worg/org-tutorials/org-latex-export.html. > > I just want to export a latex document which has source code, and I want it > to have numbered lines + more decorations if possible. Is it? Yes, the example is for Org mode < 8. See the Org mode manual Section 11.3, Literal examples, for how to have numbered lines with source code blocks and to have them fontified in the buffer. See the variable org-latex-listings for the various ways to export source code blocks. You'll probably also want to explore the two LaTeX packages listings and minted, as well, depending on your export requirements. hth, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com