Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Text Output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106752] Re: Text Output
  • From: Simon <simonjtyler at gmail.com>
  • Date: Fri, 22 Jan 2010 05:41:31 -0500 (EST)
  • References: <hj9814$fng$1@smc.vnet.net>

Hi,

just break your String up using a Row, then apply Style to the parts
where you need it:
Row@{"He said... ", Style["Lamh Dearg Abu", Italic], ", he drank..."}

Simon

On Jan 21, 5:50 pm, Chris Degnen <deg... at cwgsy.net> wrote:
> Hi all,
>
> Can anyone figure out a way to put bold or italics within justified
> text.  Below is an example of a text segment as used in my
> application.  "Lamh Dearg Abu" should be in italics.
>
> text = Graphics[{White, Rectangle[{0, 0}, {590, 52}], Black,
>     Inset[
>      TextCell[
>       "He said and then lifted he in his rude great brawny \
> strengthy hands the medher of dark strong foamy ale and, \
> uttering his tribal slogan Lamh Dearg Abu, he drank to the \
> undoing of his foes, a race of mighty valorous heroes, rulers \
> of the waves, who sit on thrones of alabaster silent as the \
> deathless gods.",
>       LineSpacing -> {0, 16}, TextJustification -> 1], {0, 0}, {Lef=
t,
>       Bottom}, {590, Automatic}]}, PlotRange -> {{0, 590}, {0, 52}}=
,
>    BaseStyle -> {FontFamily -> "Franklin Gothic Book",
>          FontWeight -> "Plain", FontSize -> 13}];
> box = Graphics[{LightGray, Rectangle[{0, 0}, {629, 90}],
>     Inset[text, {314.5, 45}, {Center, Center}, {590, 52}]},
>    PlotRange -> {{0, 629}, {0, 90}}, ImageSize -> 629];
> Print[box];



  • Prev by Date: Re: Re: Sorting paired columns of dates and values
  • Next by Date: Re: Re: More /.{I->-1} craziness. Schools are conservative.
  • Previous by thread: Re: Text Output
  • Next by thread: NotebookGet/Read/EvaluateSelection Issues