Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8009 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2012-01-19 10:19 +0000 |
| Last post | 2012-01-22 12:35 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: log-like symbols? Murray Eisenberg <murray@math.umass.edu> - 2012-01-19 10:19 +0000
Re: log-like symbols? Alan <alan.isaac@gmail.com> - 2012-01-21 10:19 +0000
Re: log-like symbols? Murray Eisenberg <murray@math.umass.edu> - 2012-01-22 12:35 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-01-19 10:19 +0000 |
| Subject | Re: log-like symbols? |
| Message-ID | <jf8qn5$3qf$1@smc.vnet.net> |
What do you mean by a "log-like symbol"? The LaTeX commands \ln and \lim are rather different in what they do; in particular, the "x to a" part of a complete limit notation would be set as if a subscript in in-line math mode, whereas it would be set stacked under the "lim" symbol in math display mode. Are you merely asking how to type math symbols within text? If so, the usual thing is simply to begin and end an inline cell within the text, by using Ctrl+( and then Ctrl+). In the Documentation Center, see, e.g., tutorial/MixingTextAndFormulas. But don't expect Mathematica to do as nice a job as easily as you can with LaTeX! (The above-cited tutorial warns about this, in effect.) On 1/18/12 6:02 AM, Alan wrote: > Does Mathematica have log-like symbols? (E.g., LaTeX's \ln, \lim, etc.) > If so, how to enter them. If not, how do people handle this in > their inline math and display formulas? > > Thanks, > Alan Isaac > -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
[toc] | [next] | [standalone]
| From | Alan <alan.isaac@gmail.com> |
|---|---|
| Date | 2012-01-21 10:19 +0000 |
| Message-ID | <jfe3ep$9us$1@smc.vnet.net> |
| In reply to | #8009 |
In answer to Murray's question, some LaTeX symbols are called "log-like":
http://omega.albany.edu:8008/Symbols.html
This affects how they are typeset.
Bill's answer gave me a good clue:
if I am entering math in StandardForm,
then such log-like symbols are recognized by Mathematica,
although it does not display them differently.
E.g., if I enter ln(x) in a math cell and then
change to StandardForm I get Log[x] displayed.
But now I am puzzled by the meaning of cell styles.
Suppose I enter the following in a cell given a "Text" style:
Test: ctrl-( ln(x) ctrl-)
and then copy it as LaTeX. What I expect to get is
Test: $\ln(x)$
What I get instead is:
\text{Test: }
\ln (x)
Why is Mathematica treating a "Text" cell as a math environment?
Thanks,
Alan Isaac
[toc] | [prev] | [next] | [standalone]
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-01-22 12:35 +0000 |
| Message-ID | <jfgvqb$pnp$1@smc.vnet.net> |
| In reply to | #8009 |
A simple(-minded?) explanation: try instead just creating a Text cell
This is a test
with _no_ in-line math there. Copy it as LaTeX and look at the result in
a text editor. You'll see that the text is inside a LaTeX \text{} function.
I presume the purpose is to protect the user from inadvertently pasting
what should really be text into a LaTeX math expression or display-math
environment and having it interpreted as a long product of symbols.
And I suppose the underlying reason for having that protection was the
expectation that users would ordinarily just be copying into LaTeX math.
On 1/21/12 5:16 AM, Alan wrote:
> In answer to Murray's question, some LaTeX symbols are called "log-like":
> http://omega.albany.edu:8008/Symbols.html
> This affects how they are typeset.
>
> Bill's answer gave me a good clue:
> if I am entering math in StandardForm,
> then such log-like symbols are recognized by Mathematica,
> although it does not display them differently.
> E.g., if I enter ln(x) in a math cell and then
> change to StandardForm I get Log[x] displayed.
>
> But now I am puzzled by the meaning of cell styles.
> Suppose I enter the following in a cell given a "Text" style:
>
> Test: ctrl-( ln(x) ctrl-)
>
> and then copy it as LaTeX. What I expect to get is
>
> Test: $\ln(x)$
>
> What I get instead is:
>
> \text{Test: }
>
> \ln (x)
>
> Why is Mathematica treating a "Text" cell as a math environment?
>
> Thanks,
> Alan Isaac
>
>
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web