Menu

#2253 Additional search path & environment vars problem

open
nobody
None
1
2017-09-11
2017-09-06
qx87
No

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.

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2017-09-07

    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.

     
  • qx87

    qx87 - 2017-09-07

    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.

     
  • Tim Hoffmann

    Tim Hoffmann - 2017-09-09

    Try using [txs-app-dir] instead of %COMMANDER_PATH%.

    See Wiki: Setting paths when using the portable version

     
  • qx87

    qx87 - 2017-09-11

    Just the same situation: it works for Commands tab and doesn't work for Build tab.

     

Log in to post a comment.