From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: Source blocks with captions Date: Mon, 23 Jun 2014 20:47:43 +0200 Message-ID: <87y4wnmpio.fsf@mailbox.org> References: <8738evodqe.fsf@student.kit.edu> <87oaxj8wda.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz9Hf-00064I-9x for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 14:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz9HY-0006Jt-UE for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 14:48:03 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:57044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz9HY-0006JS-Kg for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 14:47:56 -0400 In-Reply-To: <87oaxj8wda.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 23 Jun 2014 17:43:29 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode@gnu.org On 2014-06-23 17:43 Thorsten Jolitz wrote: > Alexander Baier writes: > >> Hello org-moders! >> >> I just tried to put a caption under/on/above (or anywhere for that >> matter) my source code block. When exporting to latex, I didn't see any >> caption belonging to my code block. Other backends have not been >> tried. How can I achieve this? >> >> For reference, I run Org-mode version 8.2.6 (release_8.2.6 @ >> /home/delexi/.emacs.d/ext/org-mode/lisp/) and this is the org file: >> >> * Test >> #+CAPTION: Test >> #BEGIN_SRC java >> // some code >> #END_SRC > > shouldn't that be > > ,---- > | #+NAME: Test > `---- > > instead of > > ,---- > | #+CAPTION: Test > `---- > > ? This does not work for me - I still see no caption or a similar thing in the vicinity of my code block. Does "#+NAME" work for you? Regards, -- Alexander Baier