From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature request: org-export-format-source-code-or-example and srcname Date: Thu, 17 Dec 2009 08:40:53 +0100 Message-ID: References: <51b0095d0912020941i4e461639m78b01316810c07c2@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLAyw-0004wc-8Z for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:41:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLAyq-0004v9-OD for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:41:05 -0500 Received: from [199.232.76.173] (port=45723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLAyp-0004v0-BK for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:40:59 -0500 Received: from mx20.gnu.org ([199.232.41.8]:57902) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NLAyo-0002H1-Gd for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:40:58 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLAyn-0006o0-Qw for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:40:57 -0500 Received: by ewy24 with SMTP id 24so1966070ewy.26 for ; Wed, 16 Dec 2009 23:40:56 -0800 (PST) In-Reply-To: <51b0095d0912020941i4e461639m78b01316810c07c2@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Girard Cc: emacs-orgmode Hi > > Hi, > when using the listings LaTeX package, it would be very useful if the > value of srcname was added to the output. For instance, > > #+srcname: my_code_chunk > #+begin_src latex :results latex :exports code :tangle no > \usepackage{fontspec,xunicode,xltxtra} > #+end_src > > would give: > > \lstset{language=TeX}[caption={my\_code\_chunk}] > \begin{lstlisting} > \usepackage{fontspec,xunicode,xltxtra} > \end{lstlisting} > > (note the added "[caption={my\_code\_chunk}]") > > Cheers, Nicolas Is there anyone besides Nicolas what would like to see the source name in the exported listing? Is that something that should be done in org-babel, or in the normal export stuff? - Carsten On Dec 2, 2009, at 6:41 PM, Nicolas Girard wrote: > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten