From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: latex export of org-mode: verbatim block in a figure Date: Fri, 15 Mar 2013 06:21:02 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGXO1-0004nv-98 for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 12:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGXNv-00010Q-TL for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 12:21:41 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:57577) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UGXNv-0000yj-KJ for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 12:21:35 -0400 In-Reply-To: (Rob Stewart's message of "Fri, 15 Mar 2013 11:50:34 +0000") 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: Rob Stewart Cc: emacs-orgmode@gnu.org Aloha Rob, Rob Stewart writes: >> There are some things I don't quite understand: Would you like to export to >> LaTeX, or would you simply like to have a <> to refer to in an orgmode >> file? > > I'd like. in my orgmode file, to be able to say, "see Figure > \ref{fig:my-api}". When I export to LaTeX, I'd like it to then > correctly export the reference as it would be in LaTeX e.g. if the > Figure is 1.1, then then pdflatex would produce: "see Figure 1.1". > >> And why have a figure, instead of -- in LaTeX terminology -- a listing? > > Good point. Yes, Listing would be good. Any idea how to solve this > reference problem as a listing? The LaTeX minted package has a facility for "floated listings" that might do what you want. hth, Tom -- Thomas S. Dye http://www.tsdye.com