all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Space around tables in LaTeX export?
@ 2014-02-14 17:08 Peter Davis
  2014-02-14 17:18 ` Charles Millar
  2014-02-14 17:23 ` John Hendy
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Davis @ 2014-02-14 17:08 UTC (permalink / raw)
  To: emacs-orgmode

I'm trying to export a document to PDF via LaTeX, but my tables appear with no preceding or trailing whitespace, even if I put several blank lines before and after. For example:

---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---
blah blah blahbeddy-blah and still more blah


|------------+------+--------|
|            | Some | Stuff  |
|------------+------+--------|
| First row  | yes  | n/a    |
| 2nd row    | no   | maybe  |
|------------+------+--------|


blah blah blahbeddy-blah and still more blah
---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---

In the resulting PDF, there's no space between the table and the surrounding text.

I couldn't find anything here [[http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-13]] on how to fix this.

Thanks!

-pd


-- 
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:08 Space around tables in LaTeX export? Peter Davis
@ 2014-02-14 17:18 ` Charles Millar
  2014-02-14 17:23   ` Peter Davis
  2014-02-14 17:23 ` John Hendy
  1 sibling, 1 reply; 7+ messages in thread
From: Charles Millar @ 2014-02-14 17:18 UTC (permalink / raw)
  To: emacs-orgmode

Peter Davis wrote:
> In the resulting PDF, there's no space between the table and the surrounding text.
how about

#+BEGIN_LATEX
\vspace{/somelength}/
#+END_LATEX


//

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:08 Space around tables in LaTeX export? Peter Davis
  2014-02-14 17:18 ` Charles Millar
@ 2014-02-14 17:23 ` John Hendy
  1 sibling, 0 replies; 7+ messages in thread
From: John Hendy @ 2014-02-14 17:23 UTC (permalink / raw)
  To: Peter Davis; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

On Fri, Feb 14, 2014 at 11:08 AM, Peter Davis <pfd@pfdstudio.com> wrote:
> I'm trying to export a document to PDF via LaTeX, but my tables appear with no preceding or trailing whitespace, even if I put several blank lines before and after. For example:
>
> ---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---
> blah blah blahbeddy-blah and still more blah
>
>
> |------------+------+--------|
> |            | Some | Stuff  |
> |------------+------+--------|
> | First row  | yes  | n/a    |
> | 2nd row    | no   | maybe  |
> |------------+------+--------|
>
>
> blah blah blahbeddy-blah and still more blah
> ---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---cut---
>
> In the resulting PDF, there's no space between the table and the surrounding text.

How much are you looking for? I just exported (emacs -Q with minimal
config, see attached) and get one blank line before and after. Is this
what you get, or are you stating that you get literally *no*
whitespace? If you just want more, then Charles' suggestion is the
easiest way to go, and what I use. You can reduce the verbosity
slightly with:

#+begin_src org

blah blah blah...

#+latex: \vspace{1cm}

| table |

#+latex: \vspace{1cm}

blah blah blah...


Best regards,
John

>
> I couldn't find anything here [[http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-13]] on how to fix this.
>
> Thanks!
>
> -pd
>
>
> --
> ----
> Peter Davis
> The Tech Curmudgeon
> www.techcurmudgeon.com
>

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 59664 bytes --]

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:18 ` Charles Millar
@ 2014-02-14 17:23   ` Peter Davis
  2014-02-14 17:27     ` Rasmus
  2014-02-14 17:27     ` Charles Millar
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Davis @ 2014-02-14 17:23 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Feb 14, 2014 at 12:18:20PM -0500, Charles Millar wrote:
> Peter Davis wrote:
> >In the resulting PDF, there's no space between the table and the surrounding text.
> how about
> 
> #+BEGIN_LATEX
> \vspace{/somelength}/
> #+END_LATEX
> 

Ok, but I was hoping for a more org-mode-y solution.

Thanks!

-pd


-- 
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:23   ` Peter Davis
@ 2014-02-14 17:27     ` Rasmus
  2014-02-14 18:16       ` Peter Davis
  2014-02-14 17:27     ` Charles Millar
  1 sibling, 1 reply; 7+ messages in thread
From: Rasmus @ 2014-02-14 17:27 UTC (permalink / raw)
  To: emacs-orgmode

Peter Davis <pfd@pfdstudio.com> writes:

> On Fri, Feb 14, 2014 at 12:18:20PM -0500, Charles Millar wrote:
>> Peter Davis wrote:
>> >In the resulting PDF, there's no space between the table and the surrounding text.
>
>> how about
>> 
>> #+BEGIN_LATEX
>> \vspace{/somelength}/
>> #+END_LATEX

It will become a float if you give it a caption.  That's probably what
you want.  You can still force it to be at a particular location.

–Rasmus

-- 
Hvor meget poesi tror De kommer ud af et glas isvand?

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:23   ` Peter Davis
  2014-02-14 17:27     ` Rasmus
@ 2014-02-14 17:27     ` Charles Millar
  1 sibling, 0 replies; 7+ messages in thread
From: Charles Millar @ 2014-02-14 17:27 UTC (permalink / raw)
  To: emacs-orgmode

Peter Davis wrote:
> On Fri, Feb 14, 2014 at 12:18:20PM -0500, Charles Millar wrote:
>> Peter Davis wrote:
>>> In the resulting PDF, there's no space between the table and the surrounding text.
>> how about
>>
>> #+BEGIN_LATEX
>> \vspace{/somelength}/
>> #+END_LATEX
>>
> Ok, but I was hoping for a more org-mode-y solution.
>
> Thanks!
>
> -pd
>
>
Correction
somehow a couple of  "/" crept in

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

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

* Re: Space around tables in LaTeX export?
  2014-02-14 17:27     ` Rasmus
@ 2014-02-14 18:16       ` Peter Davis
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Davis @ 2014-02-14 18:16 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Feb 14, 2014 at 06:27:28PM +0100, Rasmus wrote:
> 
> It will become a float if you give it a caption.  That's probably what
> you want.  You can still force it to be at a particular location.
> 

Ah! Yes, that works, even with a blank caption.

Thank you!

-pd


-- 
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com

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

end of thread, other threads:[~2014-02-14 18:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 17:08 Space around tables in LaTeX export? Peter Davis
2014-02-14 17:18 ` Charles Millar
2014-02-14 17:23   ` Peter Davis
2014-02-14 17:27     ` Rasmus
2014-02-14 18:16       ` Peter Davis
2014-02-14 17:27     ` Charles Millar
2014-02-14 17:23 ` John Hendy

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.