emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Controlling float position in LaTeX export
@ 2009-01-19 16:10 Manish
  2009-01-19 21:18 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Manish @ 2009-01-19 16:10 UTC (permalink / raw)
  To: Emacs-orgmode mailing list

Hello,

A figure is exported to LaTeX with markup like below.

,----
| \begin{figure}[htb]
| \centerline{\includegraphics[scale=0.8]{./time-series.png}}
| \caption{\label{fig:bt}Weekly Business Transaction over Past Two Years}
| \end{figure}
`----

How can I replace [htb] with [H] (during the export itself?)  It is
required by "float" package to ensure that floats appear where I want
them to appear.  Is there an option that controls that?

Thanks,
-- 
Manish

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Controlling float position in LaTeX export
  2009-01-19 16:10 Controlling float position in LaTeX export Manish
@ 2009-01-19 21:18 ` Carsten Dominik
  2009-01-20  2:33   ` Manish
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2009-01-19 21:18 UTC (permalink / raw)
  To: Manish; +Cc: Emacs-orgmode mailing list

No, there is no such option yet.......



- Carsten

On Jan 19, 2009, at 5:10 PM, Manish wrote:

> Hello,
>
> A figure is exported to LaTeX with markup like below.
>
> ,----
> | \begin{figure}[htb]
> | \centerline{\includegraphics[scale=0.8]{./time-series.png}}
> | \caption{\label{fig:bt}Weekly Business Transaction over Past Two  
> Years}
> | \end{figure}
> `----
>
> How can I replace [htb] with [H] (during the export itself?)  It is
> required by "float" package to ensure that floats appear where I want
> them to appear.  Is there an option that controls that?
>
> Thanks,
> -- 
> Manish
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Controlling float position in LaTeX export
  2009-01-19 21:18 ` Carsten Dominik
@ 2009-01-20  2:33   ` Manish
  2009-01-20  5:20     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Manish @ 2009-01-20  2:33 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs-orgmode mailing list

> On Jan 19, 2009, at 5:10 PM, Manish wrote:
>
>> Hello,
>>
>> A figure is exported to LaTeX with markup like below.
>>
>> ,----
>> | \begin{figure}[htb]
>> | \centerline{\includegraphics[scale=0.8]{./time-series.png}}
>> | \caption{\label{fig:bt}Weekly Business Transaction over Past Two Years}
>> | \end{figure}
>> `----
>>
>> How can I replace [htb] with [H] (during the export itself?)  It is
>> required by "float" package to ensure that floats appear where I want
>> them to appear.  Is there an option that controls that?

On Tue, Jan 20, 2009 at 2:48 AM, Carsten Dominik wrote:
> No, there is no such option yet.......

No problem.  Since I only want H all the time, I have modified
org-export-latex.el in a local git branch.

I should be able to maintain my patch on top of your updates quite
easily.  Git is good. :)

-- 
Manish

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Controlling float position in LaTeX export
  2009-01-20  2:33   ` Manish
@ 2009-01-20  5:20     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-01-20  5:20 UTC (permalink / raw)
  To: Manish; +Cc: Emacs-orgmode mailing list


On Jan 20, 2009, at 3:33 AM, Manish wrote:

>> On Jan 19, 2009, at 5:10 PM, Manish wrote:
>>
>>> Hello,
>>>
>>> A figure is exported to LaTeX with markup like below.
>>>
>>> ,----
>>> | \begin{figure}[htb]
>>> | \centerline{\includegraphics[scale=0.8]{./time-series.png}}
>>> | \caption{\label{fig:bt}Weekly Business Transaction over Past Two  
>>> Years}
>>> | \end{figure}
>>> `----
>>>
>>> How can I replace [htb] with [H] (during the export itself?)  It is
>>> required by "float" package to ensure that floats appear where I  
>>> want
>>> them to appear.  Is there an option that controls that?
>
> On Tue, Jan 20, 2009 at 2:48 AM, Carsten Dominik wrote:
>> No, there is no such option yet.......
>
> No problem.  Since I only want H all the time, I have modified
> org-export-latex.el in a local git branch.
>
> I should be able to maintain my patch on top of your updates quite
> easily.  Git is good. :)

There is even an Org-mode FAQ about this very issue.

http://orgmode.org/worg/org-faq.php#keeping-local-changes-current-with-Org-mode-development

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-20  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-19 16:10 Controlling float position in LaTeX export Manish
2009-01-19 21:18 ` Carsten Dominik
2009-01-20  2:33   ` Manish
2009-01-20  5:20     ` Carsten Dominik

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).