emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Myles English <mylesenglish@gmail.com>
Cc: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>, emacs-orgmode@gnu.org
Subject: Re: [PATCH] org-e-latex: Tables get correct amount of vertical space
Date: Tue, 13 Nov 2012 10:56:38 -0500	[thread overview]
Message-ID: <11825.1352822198@alphaville> (raw)
In-Reply-To: Message from Myles English <mylesenglish@gmail.com> of "Tue, 13 Nov 2012 15:05:57 GMT." <87a9ulr19m.fsf@gmail.com>

Myles English <mylesenglish@gmail.com> wrote:

> 
> Hi Seb,
> 
> Sebastien Vauban writes:
> 
> > Hi Myles,
> >
> > Myles English wrote:
> >> This patch replaces every occurence of the \begin{center} environment
> >> with \centering in the file contrib/lisp/org-e-latex.el.
> >> ...
> >> -   (format "\\begin{center}\n%s\\end{center}" contents)))
> >> +   (format "\\centering\n%s" contents)))
> >
> > Wouldn't you have to replace
> >
> >   \begin{center}
> >     ...
> >   \end{center}
> >
> > by
> >
> >   {\centering
> >     ...
> >   }
> >
> > ?  That is, add a group around?
> 
> I don't think so, at least I have not come across that usage, and it
> seems to work without.  Do you know different?
> 

If a \centering occurs at top-level in a latex document,
then *everything* after it will be centered: it's a declaration that
remains in force for the current group (which is the rest of the
document if it occurs at top-level).

\begin{center}...\end{center} is essentially {\centering ...} except
that it also starts a new paragraph.

It's not clear to me at least, that wholesale replacement is the correct
thing to do: it needs to be looked at on a case-by-case basis I think.

Nick

  reply	other threads:[~2012-11-13 15:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 14:29 [PATCH] org-e-latex: Tables get correct amount of vertical space Myles English
2012-11-13 14:54 ` Sebastien Vauban
2012-11-13 15:05   ` Myles English
2012-11-13 15:56     ` Nick Dokos [this message]
2012-11-13 16:15       ` Sebastien Vauban
2012-11-13 16:20         ` Nick Dokos
2012-11-13 16:32           ` Nick Dokos
2012-11-14  8:44             ` Sebastien Vauban
2012-11-14  9:40               ` Myles English
2012-11-13 21:31         ` Myles English
2012-11-14 14:03           ` Nicolas Goaziou

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11825.1352822198@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mylesenglish@gmail.com \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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 public 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 read-only IMAP folder(s) and NNTP newsgroup(s).