emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [babel] Feature request: org-export-format-source-code-or-


From: Eric Schulte
Subject: [Orgmode] Re: [babel] Feature request: org-export-format-source-code-or-example and srcname
Date: Wed, 02 Dec 2009 13:23:12 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin)

Hi Nicolas,

There have been a couple of requests for this functionality, and the
main slowdown in not previously implementing this as part of the
org-babel source block export was not having a good standard way to
specify the srcname (or possibly header arguments) in HTML LaTeX and
ASCII export.  The LaTeX caption option you mentioned below looks like a
good solution for users who are using the listings package.

A previous suggestion was to use macros which the user could overdefine
to customize the behavior.  I do not know much about org-mode export
macros but this approach sounds promising to me.

Thanks for providing more motivation for this development.  If you have
any more suggestions I'd be interested to hear them.

Best -- Eric

Nicolas Girard <address@hidden> writes:

> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]