Portable version 'Additional search path' setting does not recognize environment variables. For example I need to use string
%COMMANDER_PATH%..\texlive\bin\win32
to specify texdoc location, and it fails.
TeXStudio for sure knows that variable because similar command is used in LaTeX compilation settings.
Fully qualified string
d:\Programs\texlive\bin\win32
also works fine.
What exactly are you trying to achieve?
What exactly are you doing?
For historic reasons TeXstudio has some "internal magic" to find texdoc. It assumes, it's next to pdflatex. So when pdflatex is set up correctly, it should also find texdoc.
I keep texlive & TeXstudio on USB flash stick. Every time I plug flash into a computer it gets some random drive letter. That's why I cannot use explicit fully qualified path for texdoc/latex/pdflatex/anything.
Here is my command from TeXstudio settings for pdflatex:
%COMMANDER_PATH%..\texlive\bin\win32\pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex
And it does work correctly. Of course pdflatex & texdoc are in the same directory. Somehow internal magic doesn't work )
%COMMANDER_PATH% -- is just env. var. created by Total Commander file manager I use.
I have this tree structure on the flash drive:
Programs
|
|-- texlive
|
|-- TeXStudio
|
|-- totalcmd
So %COMMANDER_PATH%..\ points to Programs dir and everything should work fine.
Try using
[txs-app-dir]
instead of%COMMANDER_PATH%
.See Wiki: Setting paths when using the portable version
Just the same situation: it works for Commands tab and doesn't work for Build tab.