MathGroup Archive 2006

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

Search the Archive

Re: StylePrint and 2D strings


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?)