From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Name of code pieces when exported to PDF
Date: Mon, 26 Sep 2016 17:32:08 -0400 [thread overview]
Message-ID: <87mviuwdnr.fsf@gmail.com> (raw)
In-Reply-To: m2d1jq4jic.fsf@gmail.com
Sebastian Christ <rudolfo.christ@gmail.com> writes:
> 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 ...
>
That seems indeed to be necessary (at least in a few experiments that
I've run), but it's less than ideal (duplication of information).
I was under the impression that #+CAPTION is deprecated and #+NAME is
to be used in its place going forward. If that's the case, then the
listings problem needs fixing. If not, can somebody summarize the
actual situation?
Thanks!
--
Nick
next prev parent reply other threads:[~2016-09-26 21:32 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
2016-09-26 21:32 ` Nick Dokos [this message]
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=87mviuwdnr.fsf@gmail.com \
--to=ndokos@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).