From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Passing font size to exported LaTeX table Date: Tue, 24 May 2011 21:22:19 -1000 Message-ID: References: <80oc2s3v6k.fsf@somewhere.org> <5180.1306265114@alphaville.americas.hpqcorp.net> <6073.1306269772@alphaville.americas.hpqcorp.net> <6564.1306271566@alphaville.americas.hpqcorp.net> <6636.1306271949@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPF5A-00023x-Nq for emacs-orgmode@gnu.org; Wed, 25 May 2011 10:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPF59-0007ka-EI for emacs-orgmode@gnu.org; Wed, 25 May 2011 10:29:08 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:46334) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QPF59-0007jx-7z for emacs-orgmode@gnu.org; Wed, 25 May 2011 10:29:07 -0400 In-Reply-To: <6636.1306271949@alphaville.americas.hpqcorp.net> (Nick Dokos's message of "Tue, 24 May 2011 17:19:09 -0400") 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 Nick Dokos writes: > [Fat-fingered it and sent it prematurely - sorry about that] > > Nick Dokos wrote: > >> Nick Dokos wrote: >> >> > Thomas S. Dye wrote: >> > >> > > >> > > This appears to work for tabular environments only. When I add a >> > > caption the table is set normalsize and the text following it is set >> > > scriptsize. Or, am I doing something wrong? >> > > >> > >> > Oy, vey: I don't think you are doing anything wrong - I get the same >> > thing. >> > >> > Can \scriptsize be used as a macro with argument? I don't have >> > my references here. If I do it the way Seb suggested, inside an >> > environment, it seems to work better, in the sense that it does not >> > change the thing after the table - but the table is unaffected >> > nevertheless. I guess the table environment sets a font size explicitly, >> > overriding outside settings. >> > >> >> table -> float -> xfloat -> floatboxreset -> normalsize >> > > This was supposed to say that yes, indeed, the table environment sets > \normalsize explicitly, through this sequence of macro calls. > >> So you can redefine floatboreset to change the size: > floatboxreset >> >> scripttab.sty: >> \makeatletter >> \def \@floatboxreset {% >> \reset@font >> \scriptsize >> \@setminipage >> } >> \makeatother >> >> scripttab.org: >> > > scripttab.sty: > \makeatletter > \def \@floatboxreset {% > \reset@font > \scriptsize > \@setminipage > } > \makeatother > > scripttab.org: > #+LaTeX_HEADER: \usepackage{scripttab} > > * foo > > What's this? > > > #+tblname: foo > #+CAPTION: foo > | table | here | > |-------+------| > | table | here | > > What's this? > > > I think this works OK. > > Nick > Aloha Nick, This works like a charm. Thanks! All the best, Tom -- Thomas S. Dye http://www.tsdye.com