From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Passing font size to exported LaTeX table Date: Sun, 12 Jun 2011 21:56:59 -0700 Message-ID: <20110612215659.253928e5@kuru.homelinux.net> References: <5180.1306265114@alphaville.americas.hpqcorp.net> <6073.1306269772@alphaville.americas.hpqcorp.net> <6564.1306271566@alphaville.americas.hpqcorp.net> <6636.1306271949@alphaville.americas.hpqcorp.net> <20110527095013.385082e0@bhishma.homelinux.net> <20110527113013.253f79d9@bhishma.homelinux.net> <8988.1306954234@alphaville.dokosmarshall.org> <20110601120825.4ae3d622@kuru.homelinux.net> <20110610153121.189b6ffb@kuru.homelinux.net> <21819.1307929971@alphaville.dokosmarshall.org> <24109.1307939251@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVzdZ-0002dU-6n for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVzdY-0001c5-15 for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:24:33 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:33536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVzdX-0001bv-Qm for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:24:31 -0400 Received: by pwi12 with SMTP id 12so2352450pwi.0 for ; Sun, 12 Jun 2011 22:24:30 -0700 (PDT) In-Reply-To: <24109.1307939251@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Sebastien Vauban , emacs-orgmode@gnu.org Hi Nick and Tom, On Mon, 13 Jun 2011 00:27:31 -0400 Nick Dokos wrote: > Thomas S. Dye wrote: > > > Nick's got a good editorial eye: "compatible options" is probably > > not correct. In the example on Worg hacks, \footnotesize is not an > > optional argument to the \table environment, it is a LaTeX command > > whose scope is determined by the \table environment within which it > > is issued. So, instead of "One can also pass other compatible > > options" it would be good to say "One can also pass LaTeX commands > > into the \table environment" or something along those lines. > > > > The entry in Worg hacks looks good to me. Thanks for taking care of > > this, Suvayu. > > > > Many thanks to Nick and Suvayu for figuring out how to get inside > > the table environment from Org-mode. I can't remember how many > > times I tried and failed to figure this out on my own ... > > > > Now that the Worg entry exists, I'd like to expand it a bit to add > essentially what Tom mentions in his first paragraph and also to add a > pointer to the "other" solution of this problem. > I have modified the Worg entry like this *** Specifying LaTeX commands to floating environments The keyword ~placement~ can be used to specify placement options to floating environments (like =\begin{figure}= and =\begin{table}=}) in LaTeX export. Org passes along everything passed in options as long as there are no spaces. One can take advantage of this to pass other LaTeX commands limited within the scope of the floating environment. For example one can set the fontsize of a table different from the rest of the document by putting something like =\footnotesize= right after the placement options. During LaTeX export using the ~#+ATTR_LaTeX:~ line below: #+begin_src org ,#+ATTR_LaTeX: placement=[]\footnotesize #+end_src exports the associated floating environment as shown in the following block. #+begin_src latex \begin{table}[]\footnotesize ... \end{table} #+end_src If both of you agree and there is no important detail or subtlety missing, I will commit this to Worg. > Suvauy, is that OK with you? Or would you rather I created a > separate hack? > Worg is a community resource. I would definitely be okay with and encourage others improving upon whatever I contribute. :) > Nick > -- Suvayu Open source is the future. It sets us free.