Questions tagged [editing]
The editing tag has no usage guidance.
69
questions
4
votes
0
answers
59
views
Implications of Code vs Input Initialization Cells in Package Files
When editing package files, I've noticed that there are really two options for how to format the cells, which has major implications for how they appear in the Mathematica front end.
One is to have ...
1
vote
0
answers
53
views
What is the quickest way (minimum number of manual steps) to let some highlighted text appear as say Courier 12 pt regular?
What is the quickest way (minimum number of manual steps) to let some highlighted text appear as say Courier 12 pt regular?
1.) In Mathematica notebooks, I use a different font in explanatory text ...
5
votes
0
answers
126
views
Characters and prompt are offset when typing in a text cell using MM13.1
I noticed on my system (Windows 10 and MM13.1) that when I create a text cell (ALT 7)
the longer my sentence is the more offset the cursor appears from where I am. When using the left arrow to go back ...
0
votes
0
answers
43
views
how to delete a variable programmatically in a notebook from another notebook
how to delete a variable programmatically in a notebook from another notebook?
c = b;
I have already tried Remove[c] but ...
1
vote
1
answer
85
views
Single-press TemplateBox deletion
One of the handy things about TemplateBox is that it can be used to define an alias for a more "natural symbol" (by having an empty list first argument ...
11
votes
2
answers
514
views
Keep Mathematica 12.3 from auto-formatting double square brackets?
I just updated to Mathematica 12.3.1. Whenever I use the double square brackets used to specify Part, Mathematica now auto-formats them. While the readability is nice, when I go to edit the code, I ...
4
votes
2
answers
163
views
Having special characters render as you type
It used to be that if I typed == or -> these would automatically be rendered as \[Equal] ...
3
votes
1
answer
106
views
Write commands in a texteditor as a low-level notebook expression
I want to write a notebook file by myself. I use a text editor (such as Vim) to do that, for the purpose of having full control of my code I am writing, and to really understand what is in my .nb file ...
0
votes
0
answers
43
views
How can I use "find selection" in mathematica?
I want to use find selection functionality in Mathematica and I found some articles saying it could be accessed by Ctrl + E. ...
5
votes
1
answer
150
views
How to enable WakaTime for the Mathematica front end?
WakaTime is a tool for logging one's coding activities, and now have amazing coverage for code editors. Although I write Wolfram in VS Code, I still spend a lot of time tweaking and testing in the ...
5
votes
0
answers
170
views
What is the black-background Mathematica code editor in the movie Arrival?
The heroine in the movie Arrival uses Mathematica to analyze the alien text. In a scene of the movie we can see the heroine is using an editor with black background, the code seems like Mathemaitca ...
0
votes
0
answers
78
views
detailed explanation of a sherical gyroid code and how to modify the code to obtain different pores sizes and numbers
***I have the code of a spherical gyroid below which I have used to print a 3D object sphere. i will need a detailed explanation of all the terms starting from a = 3 pi till mesh. moreover i printed ...
12
votes
0
answers
336
views
Has the Undo command really been settled? On version 12.1 it only works sporadically. What are some reasons it drops steps?
Although Undo has been around since version 10 (before my time) I've noticed that sometimes it works just fine up to the moment of the last ...
6
votes
1
answer
168
views
Selecting text inside quotation marks by clicking
We can select parts of code or text by repeated clicks like so:
1
2
3
4
5
But it seems like Mathematica skips one level. Between image 2 and 3 there should be an intermediate level of selected code ...
2
votes
1
answer
181
views
Dynamic updating and editing of matrix
I am trying to create a user interface for a demo project that uses matrix as an input. I provide user with a default matrix (as an example) for a start, but user can edit it or add extra row to it ...
3
votes
1
answer
136
views
An alternative to (%%…%) (k times) [closed]
Sometimes it may be useful to use (%%…%) (k times) to get the kth previous result in a notebook instead of setting a variable.
However, if I want to get the 8th previous result, for example, I would ...
1
vote
1
answer
73
views
Editing the graph to become with animation
In the following code:
p1=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3 + Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}]
p2=ParametricPlot3D[{Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (...
2
votes
1
answer
203
views
Speed up/slow down audio file
I am importing an audiofile to Mathematica and want to play it back at double speed. The only functions I see are the advanced options of AudioPitchShift (which doesn't alter the duration but ...
1
vote
1
answer
53
views
Variable refactoring and multi-selection
In IDEs like PyCharm for Python, I can select a variable name or method name and it will highlight to show where all I have used it. Also its easy to refactor the names under a given text selection.
...
3
votes
0
answers
92
views
Wolfram Workbench fails to open .wl file
I'm trying to open a .wl file with the Wolfram Workbench (Eclipse plug-in) and am getting the error message, "Failed to create the part's controls". If I expand the ...
1
vote
0
answers
63
views
How to automatically add indentation to selected block of code [duplicate]
While editing a package file .wl, I just realized I need to wrap a block of code in Module and other stuff. After doing that, I ...
5
votes
1
answer
87
views
Disable the "double-click to collapse cell group" feature in Mathematica?
I'm trying to figure out if there is a way to disable the feature of Mathematica whereby if you double click the brackets to the right of a formula + output, it collapses the output.
I want to ...
6
votes
0
answers
491
views
Why wouldn't undo work after delete?
I'm in 10.4, and it seems like after I paste undo works fine, but after I delete it does nothing.
Any reason for this?
1
vote
0
answers
144
views
Replace all tabs with whitespaces
does it exist a setting in the editor to replace all tab characters with a certain number of white spaces? Something like the following from Eclipse:
1
vote
0
answers
56
views
How to selectively delete a function together with its matching sets of brackets?
For example, suppose I want to retain only the content inside the argument of Distribute
...
0
votes
2
answers
166
views
Reading a tabulation of data with brackets and commas: OpenRead
While I can read a data file containing the one/multiple line(s) of
1.314 -4.32 6.44 342.3
using
...
6
votes
0
answers
457
views
Editing pdf files with Mathematica
As an example, consider this pdf file.
Would it be possible to edit the pdf, such as removing a logo, the page numbering and even frames, and save the result as a pdf? I would like to keep the pdf ...
11
votes
1
answer
2k
views
How can I use Vim key bindings in Mathematica Wolfram Notebook?
How can I use Vim key bindings in Mathematica Wolfram Notebook?
I'm sorry I have not found suitable tags from the existing ones.
0
votes
0
answers
54
views
How to turn off new feature in Mathematica [duplicate]
Mathematica recently added a new feature where an "x" appears to the right of input that does not make sense. See video below. Notice that as I start typing an x appears to the right.
This is ...
5
votes
1
answer
1k
views
How to edit a downloaded cdf textbook example or prevent someone from editing my notebook?
I have downloaded from https://www.wolfram.com/cdf/uses-examples/textbooks.html the textbook example and I have opened it. I am trying to make some edits but I cannot. I opened the option inspector ...
7
votes
1
answer
455
views
Syntax Highlighting for WL files in Atom/Sublime?
What packages do people use for syntax highlighting in Atom, Sublime Text 3, etc?
9
votes
0
answers
128
views
How to suppress the escape window?
Cross posted here
If we first enter an empty string (""), and then paste something within the quotation marks, the following dialog box will pop up:
I recorded a ...
17
votes
1
answer
1k
views
How do I remove the little × that shows up in the frontend when typing?
Version 11.1 now shows a little grayed out × (a multiplication sign) when one is editing something, to warn them that the expression will be interpreted as the ...
1
vote
1
answer
42
views
Awkward selecting by keyboard
How can you modify text selection using [shift][right arrow]? The standard behaviour is awful: when I select too far and want to go back one step using [shift][left arrow] it extends the selection on ...
4
votes
1
answer
116
views
Editing strings with exponents, potential bug
Bug introduced in 8.0. or earlier, persisting through 11.0.1.
I know this site is not fond of screenshots, but this is the only way I could think of to communicate this behavior. When editing ...
5
votes
1
answer
125
views
Dynamic updating is triggered in the output cell when the input is edited
Bug introduced in 10.0 and persisting through 11.0.1 or later
Starting from Mathematica 10, there's a new feature: when you begin editing your input cell, its output becomes faded. A side effect of ...
14
votes
2
answers
1k
views
Evaluate expressions within Vim
I want to be able to type a quick Mathematica expression, such as
550/3. (e.g. common math),
...
1
vote
1
answer
92
views
Working with WolframCloud
I'm using WolframCloud from my smartphone and I'm having trouble to select all the cells of my notebook to delete them.
There is a command that selects all the cells in a notebook?
I tried using the ...
5
votes
1
answer
350
views
How to apply by-hand image selection to different images
Mathematica supports image selections by hand, by utilizing the selection tool.
I used it to extract relevant data (hundreds of little squares). Now I have a second image of same size, where I want to ...
10
votes
2
answers
1k
views
Split screen view in notebook interface?
Is there a way to get a split screen in the notebook interface?
I want a movable horizontal bar in a window with two views into the same notebook, each of which is independently scrollable.
An ...
1
vote
1
answer
331
views
NewLine Inconsistency
Copy and paste the following two lines into Mathematica.
1 \[Alpha] \[NewLine] 2
f[ 1 \[Alpha] \[NewLine] 2]
The first posts ...
13
votes
2
answers
699
views
Automatic AutoIndent while editing a Package (.wl)
The author of this question is interested in personally handling the code indentation and having the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from ...
10
votes
2
answers
6k
views
How to display line numbers in the Mathematica?
Is there such a thing in Mathematica; something like line numbers in Notepad++?
Thanks.
2
votes
0
answers
139
views
Can mathematica be configured to auto pair different parenthese?
In DrRacket, the editor can auto pair different parentheses, for example code like (let [(x 3 and whether press ) or ...
5
votes
1
answer
450
views
Selection bugs make Mathematica 10 unusable
I'm getting odd selection bugs in Mathematica (starting in 10.0.1.0, OS X 10.10 and still present in 10.3.1.0, OS X 10.11.2) that are making it impossible to use. For example if I simply click before ...
11
votes
1
answer
172
views
How to disable half-hiding output, when the corresponding input cell is modified
I think it has become less easy to compare the new output, now that the output font color turns gray as soon as something is modified in the input cell. Is there any solution?
4
votes
1
answer
397
views
Table with some editable cells
I have a table:
I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't ...
4
votes
2
answers
1k
views
Multiple Mathematica notebooks in a tabbed window with line numbers
I have the following questions:
Is there a way to open multiple mathematica notebooks in tab group rather that each mathematica notebook opened in separate window?
Is there a way to display line ...
5
votes
1
answer
166
views
How to apply by default the style to the Cell instead of the selection?
It's a bit tiresome repeating Ctrl+., or $\uparrow$, Shift+$\downarrow$ (in Mac), or grabbing the mouse to select the bracket every time one want to change the cell style.
As style commands on empty ...
2
votes
0
answers
91
views
Limiting scope of Front end "Replace All" in Find & Replace
The warning on find and replace isn't explicit and I only found out after an almost harmless global change that I really was replacing ALL, not just all instance in my selection (which is where most ...