left alignment in table

General discussion about Mathematica features and functionality...
Forum Rules
By using the Wolfram Faculty Program Forum, you agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, or sexually oriented material. Wolfram Faculty Program Forum administrators have the right to remove, edit, move or close any topic at any time should we see fit.

Personal Information: Posts in this forum may be viewed by non-members; however, the forum prohibits non-members from viewing your profile. Although your email address is hidden from both non-members and members, your account is initially configured to allow members to contact you via email through the forum. If you wish to hide your profile, or prohibit others from contacting you directly, you may change these settings by updating your profile through the User Control Panel.

Attachments: Attachments are not currently enabled on this forum. To share a file with others on this site, simply upload your file to the online storage service of your choice and include a link to the file within your post. If your school does not offer an online file storage and sharing service, the following sites provide free basic online file storage and sharing: Mozy, FilesAnywhere, Adrive, and KeepandShare.

left alignment in table

Postby Ravi_Vare » Thu Mar 01, 2012 3:35 am

Hi Kathy and all,
{I am trying to attach screenshot here) :)
http://www.box.com/s/cilh17v0f0q9kdo68g14

I want to give left alignment in table (Plz. see screenshot)

I also got resource
http://reference.wolfram.com/mathematic ... alsSection

But, I can't understand how to get expected result.

Plz. Just direct me.

TIA
Best Regards,
Ravi
Last edited by Ravi_Vare on Thu Mar 01, 2012 4:31 pm, edited 3 times in total.
User avatar
Ravi_Vare
 
Posts: 8
Joined: Tue Jan 17, 2012 5:56 pm
Organization: Sun Infosys
Department: Mathematics

Re: fdhg

Postby Kathy_Bautista » Thu Mar 01, 2012 2:05 pm

Hi Ravi,

The link to the image you posted seems to be broken. Attachments are not currently enabled on this forum, but you can link to a file that you have posted on your own personal website, or an online storage site.

-Kathy
Katherine Bautista
Senior Academic Program Manager
Wolfram Research, Inc.
http://www.wolfram.com
User avatar
Kathy_Bautista
Site Admin
 
Posts: 182
Joined: Fri Jul 31, 2009 6:24 pm
Location: Mesa, Arizona
Organization: Wolfram Research, Inc.
Department: Academic Initiatives

Re: left alignment in table

Postby Michael_Morrison » Thu Mar 01, 2012 4:52 pm

Ravi,

Here's an example:

Grid[
{
{Style["Chapter No.", Bold], Style["Name of Chapter", Bold]},
{"1.", "Logarithms"},
{"7.", "Trigonometric ratios of Allied and Compound Angles"}
},
Alignment -> {{Center, Left}},
Dividers -> All,
Frame -> True]
User avatar
Michael_Morrison
 
Posts: 42
Joined: Fri Sep 11, 2009 9:50 pm
Organization: Wolfram Research, Inc.
Department: Academic Initiatives

Re: left alignment in table

Postby Ravi_Vare » Fri Mar 02, 2012 3:21 am

Hi Michael,
Thanks a lot for immediate response.

I am missing some basic principle of Mathematica.
But definitely very close to it. :)

Your code works fine. No problem !!!

Now, i have created Table already.
How to convert into Code. Make changes. Again convert into Table (actual format-WYSIWYG).

(I tried by different ways, By selecting and right clicking :( )

Plz. direct me.

Thanks
Ravi

P.S.
I tried your code.
i get
in[1]:=........................................
out[1]= ......actual table............

How to hide "in[1]:"

In short,
Want to display only table.

It may be very basic question. Sorry for that.
User avatar
Ravi_Vare
 
Posts: 8
Joined: Tue Jan 17, 2012 5:56 pm
Organization: Sun Infosys
Department: Mathematics

Re: left alignment in table

Postby Michael_Morrison » Fri Mar 02, 2012 3:30 am

Ravi,

You can normally use InputForm to get at the underlying Mathematica expression; one you have that, you can modify it as you wish, such as by adding options to change the alignment. If you have a table that you created with the Insert > Table command, then you may have to convert that table into a Grid first, and then use InputForm.

I've put up an example at the link below, so take a look and see if it helps:
http://members.wolfram.com/mmorrison/No ... Example.nb

Thanks,
Michael
User avatar
Michael_Morrison
 
Posts: 42
Joined: Fri Sep 11, 2009 9:50 pm
Organization: Wolfram Research, Inc.
Department: Academic Initiatives

Re: left alignment in table

Postby Michael_Morrison » Fri Mar 02, 2012 3:32 am

Ravi,

I missed your PS in my previous post. If you want to hide the In[] and Out[] from a particular expression, you can either click on the label and press the Delete key (which will remove the In[] and Out[] cell labels), or you can copy and paste the output (in this case, the table) and paste it into a text cell, which don't have In[] and Out[] labels.

Thanks,
Michael
User avatar
Michael_Morrison
 
Posts: 42
Joined: Fri Sep 11, 2009 9:50 pm
Organization: Wolfram Research, Inc.
Department: Academic Initiatives

Re: left alignment in table

Postby Ravi_Vare » Fri Mar 02, 2012 6:35 am

Hi Michael,
I got your point perfectly.

I put 'Grid format code'
It gives Standard format Table

Again i convert into 'Grid format' by right clicking
(plz. See.http://www.box.com/s/dqz9i9zdnhctf0yzehq6 )

Make expected changes- Then again Covert into 'Standardform'. :)

Ok No Problem. i understand this cycle.
-------------------------------------------------------------
As you said-
"If you have a table that you created with the Insert > Table command, then you may have to convert that table into a Grid first, and then use InputForm."

i have created table by using Insert> table command

By selecting and right clicking
It doesn't show any 'convert option'
plz. see http://www.box.com/s/lkv1svdjiyuu4anh7vrb

Actually that is my problem

Michael, Thanks again for your support
Best Regards,
Ravi
User avatar
Ravi_Vare
 
Posts: 8
Joined: Tue Jan 17, 2012 5:56 pm
Organization: Sun Infosys
Department: Mathematics

Re: left alignment in table

Postby Michael_Morrison » Fri Mar 02, 2012 3:34 pm

Ravi,

I see the problem. The table in your screenshot is in a Text cell; this is why the Convert To command does not work.

If you create a new Input cell and use Insert > Table, then you can convert the WSIWYG representation into the underlying Mathematica expression using right-clicking and Convert To > InputForm.

Or, to use what you already have:

1. Put your cursor directly to the right of the "e" in "Chapterwise" above the table.
2. Cell > Divide Cell.
3. Put your cursor directly to the left of the "O" in "Only O. Papers" below the table.
3. Cell > Divide Cell.
4. You should now have the table in its own cell. Highlight its cell bracket and do Format > Style > Input.
5. Now you can right-click and choose Convert To > Input Form to get the Mathematica expression to put into a Grid.

If you have any trouble, please contact our Technical Support team at support@wolfram.com for assistance.

Thanks,
Michael
User avatar
Michael_Morrison
 
Posts: 42
Joined: Fri Sep 11, 2009 9:50 pm
Organization: Wolfram Research, Inc.
Department: Academic Initiatives


Return to General Mathematica Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron