For Programmers: Free Programming Magazines  


Home > Archive > Mathematica > October 2006 > simple question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author simple question
dimitris

2006-10-21, 4:11 am

After you type Mathematica in a e.g. Text Cell and you continue to
write something
other the FontSlant of the text Mathematica is changed to Italic
automatically.

Cell[TextData[{
StyleBox["Mathematica",
FontSlant->"Italic"],
" HELLO TO ALL"
}], "Text"]

How exactly happens this change?

Thanks.

David Reiss

2006-10-22, 4:27 am

It is due to the AutoItalicWords option for the cell.
In[1]:= ?AutoItalicWords

"AutoItalicWords is an option for Cell which gives a list of
words which should automatically be put in italics when they are
entered.



In particular the AutoItalicWords option for a Text cell has the value

AutoItalicWords -> {Mathematica, MathLink, MathSource, MathReader,
MathScript}

Hence these words will be italizized after you have typed them into a
Text cell and then typed a space or a punctuation mark.

This option is set at the level of the notebook style sheet for the
case you are encountering.

If nb is your notebook and you seldect a cell in that notebook then
executing

Options[NotebookSelection[nb], AutoItalicWords]

in another notebook will sowyou the option setting for AutoItalicWords
for the selection in the notebook nb.

--David


"A WorkLife FrameWork" The essential add-on for all Mathematica users:
http://scientificarts.com/worklife




dimitris wrote:
> After you type Mathematica in a e.g. Text Cell and you continue to
> write something
> other the FontSlant of the text Mathematica is changed to Italic
> automatically.
>
> Cell[TextData[{
> StyleBox["Mathematica",
> FontSlant->"Italic"],
> " HELLO TO ALL"
> }], "Text"]
>
> How exactly happens this change?
>
> Thanks.


Carl Woll

2006-10-22, 4:27 am

dimitris wrote:

>After you type Mathematica in a e.g. Text Cell and you continue to
>write something
>other the FontSlant of the text Mathematica is changed to Italic
>automatically.
>
>Cell[TextData[{
> StyleBox["Mathematica",
> FontSlant->"Italic"],
> " HELLO TO ALL"
>}], "Text"]
>
>How exactly happens this change?
>
>Thanks.
>
>

Check out the option AutoItalicWords in the option inspector.

Carl

Jean-Marc Gulliet

2006-10-22, 4:27 am

dimitris wrote:
> After you type Mathematica in a e.g. Text Cell and you continue to
> write something
> other the FontSlant of the text Mathematica is changed to Italic
> automatically.
>
> Cell[TextData[{
> StyleBox["Mathematica",
> FontSlant->"Italic"],
> " HELLO TO ALL"
> }], "Text"]
>
> How exactly happens this change?
>
> Thanks.
>

Hi Dimitris,

Open the Options Inspector -> Formating Options -> TextLayout Options ->
AutoItalicWords. There you will see a list of words that you can modify
if you wish.

Regards,
Jean-Marc

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com