is there a shortcut within WinEdt to use the pythontex command?
For the pythontex command, I know that you have to use the command prompt and then go to the path where the pythontex file is stored. In my example it is at: C:\Program Files\MiKTeX 2.9\scripts\pythontex
Then you have to type in the path to the file that you need to compile for pythontex. I will then have to type: pythontex C:\Users\superman\Desktop\test\example
Can WinEdt be customized to carry out these steps in a more efficient manner, for example by creating a button??
OK, I followed some steps and copied all the text from the active toolbar.ini file (in my case all the verbage in Toolbar2d.ini) and copied it to Private.ini under the \ My custom Tex toolbar: [TOOLBAR*]
I added:
BUTTON="|"
BUTTON="PyTeX"
BUTTON="|"
to the bottom of the file.
I would like to know what commands to input in the MainMenu.ini file. I did a copy/past and have this so far appened to the end of the MainMenu.ini file:
ITEM="PyTeX"
CAPTION="&PyTeX"
IMAGE="Python"
MACRO="Exe('%b\Exec\TeX\dvi2ps.edt');" % need to get the command for the pythontex execution
SHORTCUT="24644::Shift+Ctrl+Y"
REQ_FILTER="%P\%N.dvi" % need to change for pythontex to run
ITEM="-"
Can you help me edit these commands to run the pythontex?
MACRO="Run('pythontex %n%t')"
(check the parameters of Run in the macro manual). – Ulrike Fischer Jun 17 '15 at 15:51