From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Passing font size to exported LaTeX table Date: Mon, 13 Jun 2011 01:29:03 -0400 Message-ID: <24877.1307942943@alphaville.dokosmarshall.org> 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> <20110612215659.253928e5@kuru.homelinux.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVzi0-0003Yw-QF for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:29:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVzhz-0002RK-8f for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:29:08 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:48283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVzhy-0002Qm-Pl for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 01:29:06 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMP00CDPR8GYQ40@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 00:29:05 -0500 (CDT) In-reply-to: Message from Suvayu Ali of "Sun, 12 Jun 2011 21:56:59 PDT." <20110612215659.253928e5@kuru.homelinux.net> 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: Suvayu Ali Cc: Sebastien Vauban , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Suvayu Ali wrote: > 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. > I'd rewrite this last line slightly - the scope belongs to the command and the environment withing which the command is placed, limits the scope of the command: "...LaTeX commands and have their scope limited to 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 This is not quite right: the fontsize in the table is by default set to normal size, but the rest of the document does not have to be normal size. I suggest "...For example one can set the fontsize of a table different from the default normal size 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. > Otherwise, looks good. > > 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. :) > But common courtesy dictates that I should at least ask :-) In any case, I'm planning to post to the ML for review whatever changes I come up with. Thanks, Nick