Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Math & Science Software (http://www.physicsforums.com/forumdisplay.php?f=189)
-   -   Custom Mathematica Shortcut: Copy as LateX (http://www.physicsforums.com/showthread.php?t=573995)

aimforclarity Feb3-12 08:56 PM

Custom Mathematica Shortcut: Copy as LateX
 
This can be very useful, so I thought i'd share.
If you edit the

Code:

> Wolfram Research\Mathematica\8.0\SystemFiles\FrontEnd\TextResources\Windows\MenuSetup.tr
file you can make Strl+Shift+C copy not plain but in LateX format. Very useful. Look for the line in the file that says "&LaTeX" and the one that says "Plain &Text". The & sign gives the underscore letter in the menu. Then replace them with the following:
Code:

                    MenuItem["Plain &Text", FrontEnd`CopySpecial["PlainText"]],
                        MenuItem["&LaTeX",
                                KernelExecute[ToExpression["FrontEnd`CopyAsTeX[]"]], MenuKey["C", Modifiers->{"Control", "Shift"}],
                                MenuEvaluator -> Automatic],

Restart Matematica and you are done.

The question i would have is if anyone knows what *MenuEvaluator* does, or if you know how to do this modification from a notebook in mathematica rather than modifying the config file.


All times are GMT -5. The time now is 12:41 PM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums