Linked Questions

1 vote
0 answers
101 views

What does copying Output cell using Copy As > Plain Text actually does? [duplicate]

So, an input cell after evaluation gives an In[X] := str1 = ... Out[X]:= .... If I right click on the right edge of the Out[X]'s cell, and select Copy As > Plain ...
user13253's user avatar
  • 8,666
0 votes
0 answers
83 views

How can I programmatically extract the text content from a Notebook's cell definition? [duplicate]

Given the Notebook cell definition below from the Wolfram Function Repository as an example: ...
Sylvain Leroux's user avatar
0 votes
0 answers
77 views

How to get plain text in InputForm format from show expression code? [duplicate]

I entered the following code into the Input cell. And the code expressed as RowBox was obtained using the Show Expression menu. I want to get a Plain Text in the form of InputForm again from this ...
Milk's user avatar
  • 1,718
33 votes
2 answers
2k views

What is the complete list of valid FrontEnd Packet types?

In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named ...
Mr.Wizard's user avatar
  • 272k
18 votes
3 answers
4k views

Converting a notebook to plain text programmatically

It is possible to export a notebook to plain text format (practically just extracting all the text from it and discarding formatting) using the File -> Save As......
Szabolcs's user avatar
  • 236k
35 votes
1 answer
2k views

Customizing syntax highlighting for private cell styles

Is there any way to set up a cell style with a particular syntax highlighting? For example, I'd like to have a CProgram cell to write in blue the C special words. I have done it by setting ...
Rojo's user avatar
  • 42.7k
9 votes
6 answers
4k views

How to output an expression to an external file in "plain text" format without breaking lines?

Given a pretty long expression, such as ...
Osiris Xu's user avatar
  • 1,019
48 votes
3 answers
1k views

Is FullGraphics an abandoned function? Is there an alternative?

FullGraphics hasn't worked entirely for a long time and the situation appears to be getting worse instead of better. In Mathematica 10.0, 10.1, 11.3, 12.3 up to 13....
Mr.Wizard's user avatar
  • 272k
17 votes
3 answers
4k views

Programmatically generate packages from notebook files?

Currently, there are two ways I know of to generate a package (.m) file from a notebook file; one is to set the AutoGeneratedPackage option in the Option Inspector, ...
Pillsy's user avatar
  • 18.5k
9 votes
2 answers
1k views

Image of input and output cells is not exported correctly

Wolfram Blog uses PNG images to display input and output cells in a notebook. For example, the following is an image from Samuel Chen's post: I should be able to produce a similar image by selecting ...
Michael Wijaya's user avatar
4 votes
3 answers
408 views

Is it possible to retrieve a previous un-evaluated, un-normalized input?

For example, if I do this: In[42]:= {{2}, {3}} // MatrixForm where In[42]:= is the notebook prompt, I am looking for some way ...
billc's user avatar
  • 684
10 votes
1 answer
567 views

How to convert arbitrary raw boxes directly into String?

This question is motivated by the recent question about searching inside of the NB files. According to the Documentation, ToString expects a high-level WL ...
Alexey Popkov's user avatar
3 votes
1 answer
2k views

CMD method to convert .nb file into .m file

.nb file consists of the boxes, and the .m file is a pure text file, what can help to share on GitHub. Of course, we can open a <...
yode's user avatar
  • 26.8k
2 votes
2 answers
925 views

Export a Package (.m) from a Notebook (.nb) [duplicate]

I recently started creating Mathematica packages. I find it easiest to develop functions in a Notebook (.nb file). This allows me to add sections, comments and examples. I don't want to duplicate ...
LBogaardt's user avatar
  • 1,595
8 votes
2 answers
490 views

Evaluating selected expression using keyboard shortcut

Imagine that in this toy code I want to evaluate just the selected (blue) expression: To get as output result: {09/14,09/15,09/16,09/17,09/18,09/19,09/20} There is some shortcut to do this? I'm ...
Murta's user avatar
  • 26.3k

15 30 50 per page