From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: example or source blocks with captions Date: Wed, 27 Apr 2011 21:36:47 +0200 Message-ID: <80iptzwkog.fsf@somewhere.org> References: 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Neilen, Neilen Marais wrote: > Is it possible to caption a #+begin_src or #+begin_example block? Doing > > #+CAPTION: dipole_analytical_balanis.mac > #+begin_example > .... > #+end_example > > doesn't seem to do the trick. I would find this useful to include > suggested filenames when quoting source on a web page. Would such block be better for you? --8<---------------cut here---------------start------------->8--- #+srcname: dipole_analytical_balanis.mac #+begin_src mac .... #+end_src --8<---------------cut here---------------end--------------->8--- The source name should be exported in HTML. If not, this is a feature.[1] Best regards, Seb Footnotes: [1] I know for sure it does when the block has "grounded" parameters (ie, w= ith a given value). --=20 S=C3=A9bastien Vauban