From: Sebastian Christ <rudolfo.christ@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Name of code pieces when exported to PDF
Date: Mon, 26 Sep 2016 20:13:15 +0200 [thread overview]
Message-ID: <m2d1jq4jic.fsf@gmail.com> (raw)
In-Reply-To: 0f3e4791-c495-b386-3262-56576000a9b9@fuhrer.ch
On 2016-09-26 18:48, claude fuhrer <claude@fuhrer.ch> wrote:
> \lstset{language=java,label=secondBlock,caption= ,captionpos=b,numbers=none}
> \begin{lstlisting}
> .....
> \end{lstlisting}
>
> But I wanted to have the "caption" filled with the same value as the
> label. Is it possible ?
>
Yes, use caption!
#+caption: MainClass
#+name: MainClass
#+begin_src ...
Regards,
Sebastian
--
Sebastian (Rudolfo) Christ
http://rudolfochrist.github.io
GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061
CE71 6407 D6F8 2AC5 55DD
next prev parent reply other threads:[~2016-09-26 18:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 14:28 Name of code pieces when exported to PDF claude fuhrer
2016-09-26 15:34 ` Nicolas Goaziou
2016-09-26 16:48 ` claude fuhrer
2016-09-26 18:13 ` Sebastian Christ [this message]
2016-09-26 21:32 ` Nick Dokos
2016-09-26 21:43 ` John Kitchin
2016-09-27 0:17 ` Nick Dokos
2016-09-27 11:11 ` Sebastian Christ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2d1jq4jic.fsf@gmail.com \
--to=rudolfo.christ@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).