From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex Listings & Floats Date: Thu, 15 Mar 2012 15:56:35 -0400 Message-ID: <30603.1331841395@alphaville> References: <20120315174519.GS31713@x201> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Gmw-0001a5-BU for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 15:57:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8Gmu-0004Dk-5l for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 15:56:41 -0400 Received: from g1t0028.austin.hp.com ([15.216.28.35]:38435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Gmu-0004DF-0R for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 15:56:40 -0400 Received: from g1t0038.austin.hp.com (g1t0038.austin.hp.com [16.236.32.44]) by g1t0028.austin.hp.com (Postfix) with ESMTP id 71A0E1C280 for ; Thu, 15 Mar 2012 19:56:37 +0000 (UTC) In-Reply-To: Message from Russell Adams of "Thu, 15 Mar 2012 12:45:19 CDT." <20120315174519.GS31713@x201> 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: emacs-orgmode Cc: nicholas.dokos@hp.com Russell Adams wrote: > Folks, > > I've had to fight in the past to set placement on every graphic I > include in a Latex document to insert *RIGHT HERE* instead of floating > to the end of the section. > > I just encountered this issue on source listings (listing / > lstlisting), and can't seem to get the placement to stick. > I don't understand: from the docs, it seems you *can* make listings float by adding a [float,caption=foo] option to the lstlisting environment, but they do not float by default. So why do yours float? A small org example (plus the tex file) might help. > Does anyone know how to force a global default to force all placements > to *RIGHT HERE*? > > I am including the float package, because it adds the "H" option > versus "h". Now I just need a way to set a global default. > >From a cursory read of the float doc, I don't think you can. Nick