Re: Re: Developer`UseFrontEnd + FrontEndExecute + GetBoundingBoxSizePacket
- To: mathgroup at smc.vnet.net
- Subject: [mg71340] Re: [mg71307] Re: [mg71278] Developer`UseFrontEnd + FrontEndExecute + GetBoundingBoxSizePacket
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Wed, 15 Nov 2006 06:44:00 -0500 (EST)
- References: <200611141006.FAA06715@smc.vnet.net>
Thank you, sir. On 11/14/06, John Fultz <jfultz at wolfram.com> wrote: > Evaluate this at the beginning of your kernel session... > > Developer`SetSystemOptions[LegacyFrontEnd->False] > > The option should have been set to False by default in 5.2, but wasn't due > to an oversight which will be fixed in the next release. > > Sincerely, > > John Fultz > jfultz at wolfram.com > User Interface Group > Wolfram Research, Inc. > > > On Tue, 14 Nov 2006 05:06:26 -0500 (EST), Chris Chiasson wrote: > > This is just strange: > > > > {blah1=Developer`UseFrontEnd@FrontEndExecute[GetBoundingBoxSizePacket[Box > Da > > ta[ToBoxes[Expand[(1+x)^11]]]]],blah2=Developer`UseFrontEnd@AbsoluteOptio > ns > > [$FrontEnd,Magnification]} > > > > gives > > > > AbsoluteOptions::optx: Unknown option Magnification in -FrontEndObject-. > > > > {Null, {{597., 14.1875, 5.8125}}} > > > > If you will notice, the answer for the packet size is in the wrong > > slot, and the answer for the Magnification is nowhere to be seen, even > > though it issues a message. (Don't messages travel through a side > > channel in MathLink?) > > > > This can be kept up by calling for other options. Then the > > Magnification answer will come out... > > > > Developer`UseFrontEnd@AbsoluteOptions[$FrontEnd,whatever] > > > > gives > > > > AbsoluteOptions::optx: Unknown option whatever in -FrontEndObject-. > > > > Out[2]= {Magnification -> 1.19444} > > > > ... > > > > help? > > > > > > On 11/12/06, Chris Chiasson <chris at chiasson.name> wrote: > >> In the front end, the statement inside Developer`UseFrontEnd, below, > >> will return {{width,top,bottom}}. When executing the statement below > >> in the text interface (Mathematica 5.2 Kernel from the start menu), it > >> hangs Mathematica. This is also the case when running Mathematica from > >> Ant using the Mathematica Ant task. > >> > >> Developer`UseFrontEnd[blah=FrontEndExecute[GetBoundingBoxSizePacket[BoxD > ata > >> [ToBoxes[Expand[(1 > >> +x)^11]]]]]] > >> > >> Does anyone know a way to make this statement (or one like it) work? I > >> have a good use for it. The baseline to bottom distance will be > >> written to a processing instruction in an XML file that eventually > >> tells a PDF writing program how to adjust the inline positioning of > >> Mathematica graphics relative to a line of text. > >> > >> -- > >> http://chris.chiasson.name/ > > -- http://chris.chiasson.name/
- References:
- Re: Developer`UseFrontEnd + FrontEndExecute + GetBoundingBoxSizePacket
- From: "Chris Chiasson" <chris@chiasson.name>
- Re: Developer`UseFrontEnd + FrontEndExecute + GetBoundingBoxSizePacket