From: Zhihao Ding <zhihao.ding@imm.ox.ac.uk>
To: Rasmus <rasmus@gmx.us>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: float control in org
Date: Fri, 22 May 2015 12:44:16 +0000 [thread overview]
Message-ID: <11039741-5427-43b8-bf5c-598845ee9c66@HUB02.ad.oak.ox.ac.uk> (raw)
In-Reply-To: <87wq01c4e0.fsf@gmx.us>
Thanks a lot Rasmus.
Zhihao
> On 22 May 2015, at 11:07, Rasmus <rasmus@gmx.us> wrote:
>
> Zhihao Ding <zhihao.ding@imm.ox.ac.uk> 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
prev parent reply other threads:[~2015-05-22 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 9:43 float control in org Zhihao Ding
2015-05-22 10:07 ` Rasmus
2015-05-22 12:44 ` Zhihao Ding [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11039741-5427-43b8-bf5c-598845ee9c66@HUB02.ad.oak.ox.ac.uk \
--to=zhihao.ding@imm.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.