I have downloaded and installed the portable versions of TeXstudio and MiKTeX for Windows. I assume I now have to map the commands in TeXstudio to the binaries (or the batch files) in MiKTeX. However, not all commands seem to have corresponding binaries (or batch files). For instance, dvipdf is apparently dvipdfm. I am not sure what gs maps to, as there is again several ghostscript related binaries. Does anyone have a definite working mapping?
[Tex/LaTex] Configuring portable TeXstudio to use MiKTeX portable
miktextexstudio
Best Answer
I have a running version completely self contained on a usb clib (the same one I set my students up with). I have to be at a meeting but the part you need is the configuration as below. Note the relative paths.
Now for more details:
I recommend that you use a new (fast) usb clip (4Gb min) for the portable installation of MikTeX. I also recommend that you do not put any data on the clip, but use another clip for data. (This will make backing up the data clip significantly easier. It also runs a little faster.
From http://pages.cs.wisc.edu/~ghost/ download the recent Ghostscript and GSview.
a) Because both of these installations want to make a registry entry you need to first install both programs to the hard drive of the computer you are using.
b) After they are installed you need to go to Program Files on the computer and copy the two folders (Ghostgum and gs) to the root of the usb Clip. [Note: If you do not want those programs on the computer then uninstall them properly with the Windows tools.]
From http://texstudio.sourceforge.net/ download the TeXStudio USB(.zip) file. Then unpack it onto the usb clip at the root level.
a) Make a shortcut to TeXStudio.exe at the root of the clip.
b) Now save the code at the end of this answer into a file named texstudio.ini saved into the TeXstudio folder.
Asymptote if desired is installed in a similar fashion.
You can install R if you turn off the registry entry, icons, and shortcuts will install very nicely portable. a) If you want to run Sweave then make a user command with the following: "../Portable-R/R-2.14.0/bin/R.exe" CMD Sweave %.Rnw
IMPORTANT: You need to check each of the software packages to verify the versions referenced in the options/commands matches the actual installed version.
Now you will need a portable pdf reader. I use Foxit but Sumatra also works well.
When you open TeXStudio you should find the options-commands as in the image.