Mathematica: copying math without pretty-print?

  • Context: Mathematica 
  • Thread starter Thread starter FocusedWolf
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

To disable pretty-printing in Mathematica, use the keyboard shortcut Control + Shift + I, which converts expressions to InputForm. This allows for simpler text representations, such as writing Integrate[Sqrt[-(I*x)^2], {x, 0, Pi}] instead of using the visually complex symbols. The shortcut Control + Shift + N reverts to the default pretty-print format. This functionality is particularly useful for users needing to paste Mathematica code into MATLAB.

PREREQUISITES
  • Familiarity with Mathematica interface and shortcuts
  • Understanding of mathematical expressions in InputForm
  • Basic knowledge of MATLAB for code integration
  • Experience with keyboard shortcuts in software applications
NEXT STEPS
  • Research additional Mathematica keyboard shortcuts for efficiency
  • Explore the differences between InputForm and TraditionalForm in Mathematica
  • Learn how to export Mathematica expressions to MATLAB
  • Investigate other formatting options available in Mathematica
USEFUL FOR

Mathematica users, MATLAB developers, and anyone involved in mathematical programming who needs to manipulate and transfer mathematical expressions between software environments.

FocusedWolf
Messages
81
Reaction score
0
[SOLVED] Mathematica: copying math without pretty-print?

Hi,
how do you turn off the pretty print? i did this once by axcident but i can't figure out the keys i pressed... it was helpful cause i needed to do that anyway to paste it in matlab... anyone know how i did it so you can explain it to me? :P
 
Physics news on Phys.org
Control + Shift + I converts to InputForm, as does applying InputForm to the expression.
Then expressions will be written like
Integrate[Sqrt[-(I*x)^2], {x, 0, Pi}]
instead of with the fancy integrals and doublestruck and greek symbols.

(For completeness, Ctrl + Shift + N produces the fancy-print)
 
Last edited:
Thanks
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K