RE: formatting question
- To: mathgroup at smc.vnet.net
- Subject: [mg42358] RE: [mg42337] formatting question
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 2 Jul 2003 06:36:20 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Michael, Put you cursor in the cell, or select the cell bracket, and convert it to InputForm. On Windows I do this with Shift Ctrl I. Then copy the contents of the cell and paste into your posting. You may want to duplicate the cell first so as not to change your original cell. Sometimes if you know you are doing something for a posting you can simply avoid the built up box forms. Use x^2 for powers, Pi for the Greek pi etc. Then often you won't have to convert at all. The box form of posting is not totally useless because readers should be able to copy it back into a Mathematica notebook. However, I did not succeed with the code you posted below. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Michael Alfaro [mailto:malfaro at ucdavis.edu] To: mathgroup at smc.vnet.net Hi, I would like to post to mathgroup but when I paste code out of a notebook, it looks like this: (using a Mac in OSX) \!\(\* StyleBox[\(Clear[uDiagonal, uAngYZ, uAngW, uAngX, uAngY, uAngZ, y, x]\[IndentingNewLine] \(uDiagonal[input_, fixed_, angleA_] := ?\((\((input\^2 + fixed\^2)\) - \((2*input*fixed\ *Cos[ angleA\ *\ \((Pi/180)\)\ ])\))\);\)\[IndentingNewLine]\[IndentingNewLine]\ \[IndentingNewLine] \(uAngYZ[fixed_, \ input_, coupler_, \ output_, \ angleA_] := \ ArcCos[\((coupler\^2 + \ output\^2 - \((uDiagonal[input, fixed, angleA])\)\^2)\)/\((2*coupler* output)\)]\ *\((180/Pi)\);\)\[IndentingNewLine] Can you please tell me how to export code from mathematica into something that will appear legible on the newsgroup? Thanks! Michael