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:19:09 -0400 Message-ID: <6636.1306271949@alphaville.americas.hpqcorp.net> References: <80oc2s3v6k.fsf@somewhere.org> <5180.1306265114@alphaville.americas.hpqcorp.net> <6073.1306269772@alphaville.americas.hpqcorp.net> <6564.1306271566@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOz0S-0007Dh-Fw for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOz0R-0007r1-61 for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:19:12 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:37782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOz0Q-0007qv-Tk for emacs-orgmode@gnu.org; Tue, 24 May 2011 17:19:11 -0400 In-Reply-To: Message from Nick Dokos of "Tue, 24 May 2011 17:12:46 EDT." <6564.1306271566@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 [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: --8<---------------cut here---------------start------------->8--- \makeatletter \def \@floatboxreset {% \reset@font \scriptsize \@setminipage } \makeatother --8<---------------cut here---------------end--------------->8--- scripttab.org: --8<---------------cut here---------------start------------->8--- #+LaTeX_HEADER: \usepackage{scripttab} * foo What's this? #+tblname: foo #+CAPTION: foo | table | here | |-------+------| | table | here | What's this? --8<---------------cut here---------------end--------------->8--- I think this works OK. Nick