From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: float control in org Date: Fri, 22 May 2015 12:07:03 +0200 Message-ID: <87wq01c4e0.fsf@gmx.us> References: <23489a2c-1e91-4eff-8179-e33e3de97f9b@HUB04.ad.oak.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvjrM-0008S4-GV for emacs-orgmode@gnu.org; Fri, 22 May 2015 06:07:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvjrD-0008KI-E8 for emacs-orgmode@gnu.org; Fri, 22 May 2015 06:07:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:44033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvjrD-0008Jm-7Z for emacs-orgmode@gnu.org; Fri, 22 May 2015 06:07:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YvjrA-0006F9-Ha for emacs-orgmode@gnu.org; Fri, 22 May 2015 12:07:08 +0200 Received: from 46.166.186.218 ([46.166.186.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2015 12:07:08 +0200 Received: from rasmus by 46.166.186.218 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2015 12:07:08 +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: emacs-orgmode@gnu.org Zhihao Ding writes: > Hi there, > > Could I ask for some advice on using the latex float > package in org mode? I’d like to have some control on > the positions of the figures, tables, code blocks etc. > Currently I am doing it using latex entirely, just for > my code blocks, as below > > #+BEGIN_LaTeX > \floatstyle{ruled} > \newfloat{Program}{tbp}{lop}[section] > \begin{Program} > \begin{verbatim} > ./somescripts.sh someargs > \end{verbatim} > \caption{my caption} > \label{mylabel} > \end{Program} > #+END_LaTeX > > There must be better ways of doing this? Maybe something like this #+latex_header: \floatstyle{ruled} #+latex_header: \newfloat{program}{tbp}{lop}[section] #+caption: my program #+begin_program #+BEGIN_SRC sh ./somescripts.sh someargs #+END_SRC #+end_program —Rasmus -- It was you, Jezebel, it was you