3
$\begingroup$

When I insert a picture into Mathematica through Ctrl+V, and then later evaluate the whole notebook, then the picture evaluates as well, printing out the same picture. So basically I get duplicates of the pictures I have.

Is there a way to do so pictures cannot evaluate?

$\endgroup$
  • 3
    $\begingroup$ Have you tried appending a semicolon at the end of the cell containing the picture? $\endgroup$ – J. M. will be back soon Aug 11 '17 at 7:19
  • 2
    $\begingroup$ If the pictures are just for illustration purposes, paste them into a text cell rather than an input cell. $\endgroup$ – m_goldberg Aug 11 '17 at 12:39
  • 3
    $\begingroup$ In the JournalArticle StyleSheet one finds the style Figure, which is exactly for such purposes. It is not only impossible to evaluate, but is also automatically placed in the page center, and can be later numbered through the built-in system. This StyleSheet, however, may be not what you like to use for the everyday work for one reason. This is my case. Therefore, I made a default style for myself, where I included the style Figure taken from the StyleSheet JournalArticle as well as few other useful styles. $\endgroup$ – Alexei Boulbitch Aug 11 '17 at 13:18
  • $\begingroup$ Optionally, you can select the cell, go to Cell->Cell Properties-> and uncheck Evaluatable. $\endgroup$ – bill s Aug 24 '18 at 15:16
3
$\begingroup$

Suppose you want to include illuminating graphics in a notebook, like vector drawings made with a suitable application, say, in .png or .jpg or any format that Mathematica can handle. Start a new cell and choose Insert > Picture > From file .... Now every time you execute Evaluate Notebook the cell with these pictures will also be evaluated and insert extra copies on your screen to the ones from the first evaluation. You can prevent this by unchecking Cell > Properties > Evaluatable. Another way of achieving the same result is preceding or following up the cell with the drawing with a cell containing text (a text cell) and then selecting both and choosing Cells > Merge Cells.

$\endgroup$
  • $\begingroup$ Can you please improve your answer offering more details on how what you suggest work and how it relate to the other answers offered in the comments? Read about How to write a good answe. Any answer that gets the asker going in the right direction is helpful, but do try to mention any limitations, assumptions or simplifications in your answer. Brevity is acceptable, but fuller explanations are better. $\endgroup$ – rhermans Aug 24 '18 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.