From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Feature request: org-export-format-source-code-or-example and srcname Date: Thu, 17 Dec 2009 10:17:19 +0100 Message-ID: <87vdg6m02o.fsf@mundaneum.com> References: <51b0095d0912020941i4e461639m78b01316810c07c2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Carsten and Nicolas, (BTW, Nicolas, excellent modifications made to the agenda look & feel!) Carsten Dominik wrote: >> 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=3DTeX}[caption=3D{my\_code\_chunk}] >> \begin{lstlisting} >> \usepackage{fontspec,xunicode,xltxtra} >> \end{lstlisting} >> >> (note the added "[caption=3D{my\_code\_chunk}]") > > Is there anyone besides Nicolas what would like to see the source name in > the exported listing? Yes! This is not only desired, but -- for me -- completely required: without it, you simply can't do real literate programming documentation... An example of how it would be nice to be (using NoWeb): http://www.mygooglest.com/sva/ecm-noweb.pdf See my (unanswered) thread of 2009-12-04 at 12:13: "[babel] Org-babel vs No= Web (and the like)". > Is that something that should be done in org-babel, or in the normal expo= rt > stuff? I would answer Org-babel, but if there is one thing I'm sure of, is that I don't understand all the implications of my answer. So, take it with low consideration. Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode