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?
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.
Updated Answer: Jan. 6, 2012
This tutorial is based on the external blog post Configuring Texmaker USB With MiKTeX Portable.
There are now some minor changes with the User Interface in Version 2.5.1 (Portable version 2.9.4250) from the older versions.
Setting Up TeXStudio with MiKTeX Portable 2.9.4250.
Now open your TeXStudio USB folder and look for the file
You should see something like this:
Notice that there are minor differences from the one in R. Schumacher's answer (older version). To set up the where TeXStudio portable will look for the drivers, click on the folder icon (colored blue in my case) and browse to the location of the appropriate driver in your USB device. But make sure to put
You should see something like this now.
Here is a summary of what I have written in the
Note that I have not done anything with the viewers yet.
TeXStudio has a built-in PDF Viewer. To configure, click
There is also an Embedded version for the Internal PDF Viewer.
Follow R. Schumacher's post.
You can follow the second step of R. Schumacher's answer. Alternatively, you can use the procedure in Configuring Texmaker USB With MiKTeX Portable. Here is the summary: Download and install portableapps into your USB device then fire up the program and open the menu. Click on ‘Apps,’ then ‘Get More Apps.’ Under ‘Utilities’ locate Ghostscript, select the checkbox, and click ‘Next.’ The PortableApps.com Platform will automatically install Ghostscript to your USB drive (under PortableApps/CommonFiles).
Your USB file structure should now look like:
Then do click
I think I figured it out.
The binaries files are located in your portable MiKTeX install folder under miktex/bin; in my case
The mappings then are:
Asymptote doesnt seem to be part of MiKTeX.
Yes, all with absolute path to the files. I've had two difficulties with conversion: (the mapping which work for me)
I am not sure in which version this feature was introduced, but TeXstudio now allows entering an additional search path for commands. The benefit of this is that it will also allow TeXstudio to find "texdoc.exe", allowing the user to access package documentations from within TeXstudio.
This solution does not apply to DVI, PS and external PDF viewers as well as Aymptote and Ghostscript. Refer to the excellent answers above to solve those issues.
activate "Show Extended Options". Then go to
and, in the bottom of the page, edit the line "Commands ($PATH)" to include the relative path to the directory that includes the executables (ie pdflatex.exe).
For my folder structure, that would be
You can then simply use the default commands, for example in the case of pdflatex:
This is especially useful if you have already configured a permanent system on your home computer and intend to use the portable MiKTeX edition on a work machine. Simply copy the "texstudio.ini" file from the appropriate AppData folder into the directory on your USB-stick where "texstudio.exe" is located and add the path to keep all your precious settings.
Replace the D:/Program Files/MikTex/ with the your MikTex root path. Note in windows \ is used as file seperate, replace it with/