Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-26 Thread John Hendy
Thanks everyone -- placement = [H] was exactly what I needed. I went back
and saw it in the manual paragraph as [h!]. Also, the mailing list
discussion was perfect as well.

One suggestion, then... why not just have a nice list of all possible
ATTR_LaTeX options? I have killed myself before looking for a simplified
list. Maybe even just common ones since perhaps any LaTeX option may be
passed?

I love this page, for example: http://orgmode.org/manual/Export-options.html

It is the holy grail of a simple reference when I need an answer quickly.
Why not the same for possible LaTeX attributes for figures and tables? That
would be awesome.

Thanks again, all.


John

On Wed, May 26, 2010 at 9:00 AM, Nick Dokos  wrote:

> Nick Dokos  wrote:
>
> > Figures (and tables) are floating environments: latex will place them
> > at or after the place where they are mentioned in the latex file, at
> > the first place where it finds space, consistent with the spec ([htb]
> > above).
> >
> Not quite right: depending on the spec, it *can* end up at the top of the
> page with the reference in the text, i.e. *before* that reference.
>
> > ...
> > There was a discussion about such matters some time ago on the mailing
> > list (in particular, how CAPTIONS affect output), but I don't remember
> > the resolution and I'm too tired to go look. Seek and ye shall find.
> >
>
> I looked this up: check
>
>  http://thread.gmane.org/gmane.emacs.orgmode/17814
>
> particularly Carsten's note of 2009/10/03.
>
> Nick
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-26 Thread Nick Dokos
Nick Dokos  wrote:

> Figures (and tables) are floating environments: latex will place them
> at or after the place where they are mentioned in the latex file, at
> the first place where it finds space, consistent with the spec ([htb]
> above).
> 
Not quite right: depending on the spec, it *can* end up at the top of the
page with the reference in the text, i.e. *before* that reference.

> ...
> There was a discussion about such matters some time ago on the mailing
> list (in particular, how CAPTIONS affect output), but I don't remember
> the resolution and I'm too tired to go look. Seek and ye shall find.
> 

I looked this up: check

  http://thread.gmane.org/gmane.emacs.orgmode/17814

particularly Carsten's note of 2009/10/03.

Nick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-26 Thread Thomas S. Dye

Hi John,

Roughly speaking, the larger the floating figure the farther it will  
float in LaTeX.  If there is a large floating figure at the beginning  
of a group of figures, then the later ones will dam up behind it and  
get pushed to the back of the document.  Often, changing figure size  
by a small amount works wonders.  I often try 90% first time around,  
then adjust for appearance and float placement.  This is one of the  
last things one does before a final printing (adjusting figure sizes  
can help eliminate widows and orphans), so you might want to work  
directly on the generated .tex file, rather than try to get it right  
at the org-mode stage.


HTH,
Tom

On May 25, 2010, at 6:23 PM, Nick Dokos wrote:


John Hendy  wrote:



I've inspected the generated .tex file and this shows up where  
expected in

both picture instances:

\begin{figure}[htb]
\centering
\includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf}
\caption{text here}
\end{figure}



Figures (and tables) are floating environments: latex will place them
at or after the place where they are mentioned in the latex file, at
the first place where it finds space, consistent with the spec ([htb]
above).

You can try this:

#+ATTR_LaTeX: width=12cm placement=[H]

The spacing will probably be awful.

Another way to force the order is to forego the CAPTION: that will
translate the images into \includegraphics without the figure
environment. The spacing might be awful but the order will be  
preserved.


There was a discussion about such matters some time ago on the mailing
list (in particular, how CAPTIONS affect output), but I don't remember
the resolution and I'm too tired to go look. Seek and ye shall find.

You can also look in the TeX FAQ,
e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=figurehere, for
more.

HTH,
Nick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-25 Thread Nick Dokos
John Hendy  wrote:

> 
> I've inspected the generated .tex file and this shows up where expected in
> both picture instances:
> 
> \begin{figure}[htb]
> \centering
> \includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf}
> \caption{text here}
> \end{figure}
> 

Figures (and tables) are floating environments: latex will place them
at or after the place where they are mentioned in the latex file, at
the first place where it finds space, consistent with the spec ([htb]
above).

You can try this:

#+ATTR_LaTeX: width=12cm placement=[H]

The spacing will probably be awful.

Another way to force the order is to forego the CAPTION: that will
translate the images into \includegraphics without the figure
environment. The spacing might be awful but the order will be preserved.

There was a discussion about such matters some time ago on the mailing
list (in particular, how CAPTIONS affect output), but I don't remember
the resolution and I'm too tired to go look. Seek and ye shall find.

You can also look in the TeX FAQ,
e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=figurehere, for
more.

HTH,
Nick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-25 Thread John Hendy
Just looked up what [htb] did and will definitely try that when I'm back at
work tomorrow. Though not identical, I have two other emails out to the
group that would be along these lines were this to be the solution. Namely:
what's the best way to pass particular options to LaTeX from org-mode?

Is there any clean way to pass some option like this with a figure or table
or what have you?

I'll try this tomorrow and post back. Thanks for the help.


John

On Wed, May 26, 2010 at 3:37 AM, Erik Iverson  wrote:

> 
>
>  ### latex order ##
>>
>> I've inspected the generated .tex file and this shows up where expected in
>> both picture instances:
>>
>> \begin{figure}[htb]
>> \centering
>> \includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf}
>> \caption{text here}
>> \end{figure}
>>
>> I have generated a pdf from the .tex file and the same happens -- I can't
>> figure out why it's sticking them in places where they are not called for.
>>
>
> Not at all an expert on this, but what if you substitute [!htb] instead of
> [htb] in the LaTeX and generate a PDF?  Obviously, not an org-mode solution,
> but does that do what you want?
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bug? Odd behavior with figures...

2010-05-25 Thread Erik Iverson



### latex order ##

I've inspected the generated .tex file and this shows up where expected 
in both picture instances:


\begin{figure}[htb]
\centering
\includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf}
\caption{text here}
\end{figure}

I have generated a pdf from the .tex file and the same happens -- I 
can't figure out why it's sticking them in places where they are not 
called for.


Not at all an expert on this, but what if you substitute [!htb] instead of [htb] 
in the LaTeX and generate a PDF?  Obviously, not an org-mode solution, but does 
that do what you want?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Latex export bug? Odd behavior with figures...

2010-05-25 Thread John Hendy
Hi,

I've been working on a report and here is the relevant org file section
(edited for brevity and sanitization):

### org file 

* Main header
** Sub section
*** Experiment 1
- an unordered list of several points

|a|table|
|with|data|

 Notes for experiment 1
blah blah blah

To illustrate the notes, here's a picture:

#+ATTR_LaTeX: width=12cm
#+CAPTION: View of something
[[~/Desktop/Pic1.pdf]]


When I change something, here's a picture of what happens:

#+CAPTION:  View of something else
#+ATTR_LaTeX: width=12cm
[[~/Desktop/Pic2.pdf]]

Some further comments on this.

*** Experiment 2
- An unordered list of several points

|a|table|
|with|data|

 Notes for experiment 2
- An unordered list of several points

*** Experiment 3

### org file ##

Now, here's the order in the exported pdf:

### latex export order ###
* Main header
** Sub section
*** Experiment 1
- an unordered list of several points

|a|table|
|with|data|

 Notes for experiment 1
blah blah blah

To illustrate the notes, here's a picture:

*PICTURE 1 SHOULD BE HERE*

When I change something, here's a picture of what happens:

*PICTURE 2 SHOULD BE HERE*

Some further comments on this.

*PICTURE 1 IS ACTUALLY HERE*

*** Experiment 2
- An unordered list of several points

|a|table|
|with|data|

 Notes for experiment 2
- An unordered list of several points

*PICTURE 2 IS ACTUALLY HERE*

*** Experiment 3
### latex order ##

I've inspected the generated .tex file and this shows up where expected in
both picture instances:

\begin{figure}[htb]
\centering
\includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf}
\caption{text here}
\end{figure}

I have generated a pdf from the .tex file and the same happens -- I can't
figure out why it's sticking them in places where they are not called for.


John
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] LaTeX export bug (skipping outline levels)

2009-10-02 Thread Bastien
Carsten Dominik  writes:

> yes, the LaTeX exporter is picky about correct outline structure.
> I am not sure if this can be changed without breaking something.
> Bastien, can you see this?

Now I can see (my @gnu.org email was down for two days.)
But I don't see any straightforward way to fix it, sorry.

-- 
 Bastien


___
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


Re: [Orgmode] LaTeX export bug (skipping outline levels)

2009-10-02 Thread Carsten Dominik

Hi Eric,

yes, the LaTeX exporter is picky about correct outline structure.
I am not sure if this can be changed without breaking something.
Bastien, can you see this?

- Carsten

On Sep 30, 2009, at 4:04 PM, Eric Schulte wrote:


Hi,

I've noticed that when exporting to LaTeX Org-mode will skip levels  
that

are two deeper than their immediate parent level.  See the attached
example where the "*** third level" headline is not exported to LaTeX.


I'll also attach the resulting .tex file


This is using the latest version of Org-mode.

Thanks -- Eric
___
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




___
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


[Orgmode] LaTeX export bug (skipping outline levels)

2009-09-30 Thread Eric Schulte
Hi,

I've noticed that when exporting to LaTeX Org-mode will skip levels that
are two deeper than their immediate parent level.  See the attached
example where the "*** third level" headline is not exported to LaTeX.



simple.org
Description: Binary data

I'll also attach the resulting .tex file



simple.tex
Description: TeX document

This is using the latest version of Org-mode.

Thanks -- Eric
___
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


Re: [Orgmode] LaTeX export bug

2009-08-05 Thread Dan Griswold
Carsten Dominik  writes:

> Hi,
>
> I believe the issue is now fixed, please verify.
>
> - Carsten

It is! Outstanding! Thank you.

Dan


___
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


Re: [Orgmode] LaTeX export bug

2009-08-05 Thread Carsten Dominik

Hi,

I believe the issue is now fixed, please verify.

- Carsten

On Jul 30, 2009, at 2:51 AM, Dan Griswold wrote:


Hi there,

Well, I think this a bug.

Given this org input file:

,
| * Things
| ** A Heading
|- some
|- stuff
|- in
|- a
|- list
| ** Another heading
|- another
|- list
`

then if I select the level one heading (titled "Things") with C-c @,  
and

export to LaTeX using C-c C-e l, I get this output:

,
| % Created 2009-07-29 Wed 20:24
| \documentclass[12pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{graphicx}
| \usepackage{longtable}
| \usepackage{hyperref}
|
|
| \title{Things}
| \author{Daniel M. Griswold}
| \date{July 29, 2009}
|
| \begin{document}
|
| \maketitle
|
| ** A Heading
| \begin{itemize}
| \item some
| \item stuff
| \item in
| \item a
| \item list
| \end{itemize}
| ** Another heading
| \begin{itemize}
| \item another
| \item list
| \end{itemize}
|
| \end{document}
`

Note that the top level headings ("A Heading" and "Another Heading")  
are

not exported as \section, but with the asterisks they have in the org
file:

,
| ** A Heading
| \begin{itemize}
|
|   ... snip ...
|
| \end{itemize}
| ** Another heading
`

Exporting the whole file does what it's supposed to do: export the
headlines as \section and \subsection.

Can any of you reproduce this?

Thanks,
Dan


--
--
Dan Griswold
Rochester, NY
--



___
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




___
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


Re: [Orgmode] LaTeX export bug

2009-07-30 Thread Bastien
Dan Griswold  writes:

> Hi there,
>
> Well, I think this a bug.

I can also reproduce this, I will fix it by sunday.

Thanks,

-- 
 Bastien


___
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


[Orgmode] LaTeX export bug

2009-07-29 Thread Dan Griswold
Hi there,

Well, I think this a bug.

Given this org input file:

,
| * Things
| ** A Heading
|- some
|- stuff
|- in
|- a
|- list
| ** Another heading
|- another
|- list
`

then if I select the level one heading (titled "Things") with C-c @, and
export to LaTeX using C-c C-e l, I get this output:

,
| % Created 2009-07-29 Wed 20:24
| \documentclass[12pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{graphicx}
| \usepackage{longtable}
| \usepackage{hyperref}
| 
| 
| \title{Things}
| \author{Daniel M. Griswold}
| \date{July 29, 2009}
| 
| \begin{document}
| 
| \maketitle
| 
| ** A Heading
| \begin{itemize}
| \item some
| \item stuff
| \item in
| \item a
| \item list
| \end{itemize}
| ** Another heading
| \begin{itemize}
| \item another
| \item list
| \end{itemize}
| 
| \end{document}
`

Note that the top level headings ("A Heading" and "Another Heading") are
not exported as \section, but with the asterisks they have in the org
file:

,
| ** A Heading
| \begin{itemize}
| 
|   ... snip ...
| 
| \end{itemize}
| ** Another heading
`

Exporting the whole file does what it's supposed to do: export the
headlines as \section and \subsection.

Can any of you reproduce this?

Thanks,
Dan


-- 
--
Dan Griswold
Rochester, NY
--



___
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


Re: [Orgmode] latex-export bug

2008-12-12 Thread Carsten Dominik

--Apple-Mail-1--438738747
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

Fixed, I am now using \verb instead of \texttt for these strings,  
which works OK.

Thanks.

- Carsten

On Nov 17, 2008, at 1:20 PM, Chris Gray wrote:

> Hi,
>
> The text =~/a_b= is not handled correctly by org-export-as-latex.  It
> should either be put in math mode or the tilde and underscore should  
> be
> escaped.  I favor the latter solution, because I often put path  
> names in
> fixed-width mode.
>
> Cheers,
> Chris
>
>
>
> ___
> 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


--Apple-Mail-1--438738747
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Fixed, I am now using \verb =
instead of \texttt for these strings, which works =
OK.Thanks.- =
CarstenOn Nov 17, 2008, at 1:20 PM, Chris Gray =
wrote:Hi,The text =3D~/a_b=3D is not handled =
correctly by org-export-as-latex.  Itshould either be put in =
math mode or the tilde and underscore should beescaped.  I =
favor the latter solution, because I often put path names =
infixed-width =
mode.Cheers,Chris_=
__Emacs-orgmode mailing listRemember: use `Reply =
All' to send replies to the list.mailto:Emacs-orgmode@gnu.org";>Emacs-orgmode@gnu.orghttp://=
lists.gnu.org/mailman/listinfo/emacs-orgmode<=
br>

=

--Apple-Mail-1--438738747--


___
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


[Orgmode] latex-export bug

2008-11-17 Thread Chris Gray
Hi,

The text =~/a_b= is not handled correctly by org-export-as-latex.  It
should either be put in math mode or the tilde and underscore should be
escaped.  I favor the latter solution, because I often put path names in
fixed-width mode.

Cheers,
Chris



___
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