From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-latex, bug?] :caption forces environment Date: Thu, 19 Feb 2015 16:28:42 +0100 Message-ID: <87d255or85.fsf@nicolasgoaziou.fr> References: <87sie23qe7.fsf@gmx.us> <87h9uindd5.fsf@nicolasgoaziou.fr> <87lhju3p56.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOT0r-000527-Vp for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:27:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOT0n-0001iY-Ua for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:27:37 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOT0n-0001i1-Ot for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:27:33 -0500 In-Reply-To: <87lhju3p56.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 19 Feb 2015 16:19:17 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou writes: > >> This is a feature. A caption implies, at least, a "table" environment. > > Except when it doesn't=EF=BB=BF=C2=B9 ... That's your problem since Org didn't request the minipage in the first place. You don't want a caption but still provide one. > And in this case I told Org that it doesn't by specifying :environment > nil. :environment should be stronger than :caption. This is really a matter of taste. I don't mind either way. > There no explicit interface for \captonof, and reading the manual of > capt-of, I don't want to, as the author says care should be taken in > documents where floats are also used. Again, this is the user's problem. But it could be reasonable to use "captionof" when no environment is explicitly required. IOW "ox-latex" could fall-back to caption of when a caption is specified and there's no environment to hold it. Regards,