MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: StylePrint and 2D strings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69436] Re: StylePrint and 2D strings
  • From: bghiggins at ucdavis.edu
  • Date: Tue, 12 Sep 2006 06:53:30 -0400 (EDT)
  • References: <e8ipv6$rkh$1@smc.vnet.net><200607090850.EAA24660@smc.vnet.net> <200607101038.GAA01667@smc.vnet.net> <ee3bo3$orn$1@smc.vnet.net>

one can use the following:

CellPrint[Cell[BoxData["blabla (\!\(x\&_\),\!\(y\&_\))"], "Section"]]

This creates a Section cell

Brian

Chris Chiasson wrote:
> I am guessing you might need to use CellPrint or NotebookWrite your
> own cell to the active notebook.
>
> On 7/10/06, Chris Chiasson <chris at chiasson.name> wrote:
> > I don't know much about the escaped string form for box expressions.
> > However, if you are willing to write your expressions using RowBox,
> > FractionBox, etc, you may then use DisplayForm on them to get
> > pretty-printed forms that you can send to Text.
> >
> > On 7/9/06, bghiggins at ucdavis.edu <bghiggins at ucdavis.edu> wrote:
> > > Use
> > >
> > > Print[StyleForm[myText, "Section"]]
> > >
> > > This forces Mathematica to wrap myText in a StyleBox
> > >
> > > Cheers,
> > >
> > > Brian
> > >
> > > kalymereau at yahoo.fr wrote:
> > > > Hi Group
> > > > I have problems with two-dimensional strings. Consider for example:
> > > >
> > > > myText = "blabla (\!\(x\&_\),\!\(y\&_\))"
> > > >
> > > > The output of Print[myText] is nice. However with
> > > > StylePrint[myText,"Section"] the bars over the characters are not at
> > > > the right place. How can I use StylePrint[ ,"Section"] with such
> > > > strings ?
> > > >
> > > > Thanks
> > >
> > >
> >
> >
> > --
> > http://chris.chiasson.name/
> >
> >
> 
> 
> -- 
> http://chris.chiasson.name/


  • Prev by Date: Locating common subexpressions
  • Next by Date: Re: generalized foldlist problem - part 2
  • Previous by thread: Re: Re: Re: StylePrint and 2D strings
  • Next by thread: options as a matter of course (any advice?)