From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Passing font size to exported LaTeX table Date: Tue, 24 May 2011 17:12:46 -0400 Message-ID: <6564.1306271566@alphaville.americas.hpqcorp.net> References: <80oc2s3v6k.fsf@somewhere.org> <5180.1306265114@alphaville.americas.hpqcorp.net> <6073.1306269772@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyuH-0004x5-I9 for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOyuG-0006ly-C2 for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:12:49 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:20747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyuG-0006lt-70 for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:12:48 -0400 In-Reply-To: Message from Nick Dokos of "Tue, 24 May 2011 16:42:52 EDT." <6073.1306269772@alphaville.americas.hpqcorp.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 Cc: Sebastien Vauban , nicholas.dokos@hp.com, emacs-orgmode@gnu.org 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 So you can redefine floatboreset to change the size: scripttab.sty: --8<---------------cut here---------------start------------->8--- \makeatletter \def \@floatboxreset {% \reset@font \scriptsize \@setminipage } \makeatother --8<---------------cut here---------------end--------------->8--- scripttab.org: