The tag has no usage guidance.

learn more… | top users | synonyms

5
votes
1answer
142 views

Escaping multiline strings in Mathematica

I want to assign long multi-line strings in Mathematica. Is there a way of delineating a block without having to escape each instance of '"' with '\"' and each line ending with '\'? i.e. In other ...
1
vote
0answers
31 views

Jumping between the InputForm and TraditionalForm during Presentation

In this question a problem has been discussed of how to transform a cell from Input into, say, TraditionalForm within the notebook. There is a related problem of how one could to do that on the ...
2
votes
2answers
64 views

Disabling a Button

How can I disable a button after a user clicks it once ? The current input I have is ...
9
votes
3answers
236 views

Mathematica equivalent to Python long raw strings? handling escape characters in packages

I'd like to write the following in plain text .m file in Mathematica, without having to double escape all the Latex commands: ...
12
votes
2answers
524 views

Why aren't parentheses ( ) an expression in Mathematica?

Why aren't parentheses ( ) an expression in Mathematica? Can I get an expression in a form where parentheses are represented by an expression?
3
votes
0answers
28 views

Cursor Automatically Placed in InputField [duplicate]

When creating a DialogInput box with an input field, I'd like the created box to have the cursor already active in that box. That way one only has to type the input, not 1) click in the box then 2) ...
10
votes
3answers
186 views

How do I make a string literal without having to escape backslashes?

I'd like to say something like: foo = @"\abc\def\ghi" instead of foo = "\\abc\\def\\ghi" How do I do this? This would ...
2
votes
1answer
124 views

Function equal to Ctrl+Shift+I [duplicate]

No, it's not InputForm. Consider this example: ...
4
votes
2answers
170 views

Explicit digit-count (precision) of real number

I'm trying to do something which seems like it should be simpler than it is (at least in my attempts at it). I have some code where I read in a list of numbers generated for me by a coworker. These ...
1
vote
0answers
49 views

How to stop font resize of input?

How do you stop Mathematica from resizing the input font when entering formulas with fractions and such? When I enter a formula with a few fractions the text becomes microscopic. For example: ...
5
votes
2answers
98 views

How to write Mma notebook input that modifies itself?

Is there a straightforward way to reference and modify a cell from within itself? This is a little outside the ordinary use case and certainly not good practice, but I would like to execute an input ...
2
votes
1answer
102 views

Typing (and executing) expressions with multiple superscripts

I am trying to type (and evaluate) expressions of the following form: $$ G^{a,b} $$ into a mathematica. I've tried the obvious G^(a, b) or ...
4
votes
1answer
124 views

Operator-Input Form for Lists?

The documentation on Operator-Input Forms shows the following example which suggests that there is an alternative, convenient, operator-style, tidy technique for inputting lists. However, there is ...
9
votes
2answers
185 views

Backslash commands in strings?

I discovered by playing around that Text[DisplayForm@SubscriptBox["\[Lambda]", "k"]] produces the same result as ...