From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Feature request: org-export-format-source-code-or-example and srcname Date: Wed, 2 Dec 2009 18:41:40 +0100 Message-ID: <51b0095d0912020941i4e461639m78b01316810c07c2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFtD0-0006dq-NY for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:41:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFtCw-0006ZX-QX for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:41:46 -0500 Received: from [199.232.76.173] (port=36240 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFtCw-0006ZN-MP for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:41:42 -0500 Received: from mail-fx0-f212.google.com ([209.85.220.212]:41322) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFtCw-0000Jg-5x for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:41:42 -0500 Received: by fxm4 with SMTP id 4so528202fxm.32 for ; Wed, 02 Dec 2009 09:41:40 -0800 (PST) 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: emacs-orgmode 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