Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#546 Suggest installed packages as autosuggestion for \usepackage

None
closed
nobody
None
5*
2014-03-23
2013-09-17
doncherry
No

I’d be cool if TeXstudio could somehow find out which packages are installed on the system and use them as autocomplete suggestions for \usepackage and \RequirePackage, just like bib keys are suggested for \cite etc.

If finding out which packages are installed isn’t feasible, a package list from CTAN could be used, which would be updated along with TeXstudio updates (or alternatively manually/daily/weekly/monthly?).

Discussion

  • Tim Hoffmann
    Tim Hoffmann
    2013-09-17

    Quering the MikTeX package manager (mgm) or the the texlive package manager (tlmgr) would be possible with limited effort.

     
    • Denis Bitouzé
      Denis Bitouzé
      2013-09-18

      AFAIK, at least for TeX Live, tlmgr is not involved in the package search process but instead Kpathsea.

       
      • Tim Hoffmann
        Tim Hoffmann
        2013-09-18

        Kpathsea is not installed on Ubuntu. But there tlmgr doesn't work either if you install TeXlive from the distribution repositories (work if you install TeXlive separately). Well, for Windows it also works.

        Strictly the package managers are not involved in the search process of a latex run, but I thought it might be more portable to query the package manager instead of figuring out how latex searches on every system. Turns out this is not simple either.

         
  • Denis Bitouzé
    Denis Bitouzé
    2013-09-18

    Emacs + AucTeX has this feature. That's nice but the drawback is that it takes some time before prompting the suggestions.

     
    • Tim Hoffmann
      Tim Hoffmann
      2013-09-18

      Probably they scan the paths for every call. If you just do it once and cache the result this should not be a problem.

       
  • Tim Hoffmann
    Tim Hoffmann
    2014-03-23

    This has been introduced in version 2.7.0. You can now trigger the completer (Ctrl+Space) inside the \usepackge{} brackets.

     
  • Tim Hoffmann
    Tim Hoffmann
    2014-03-23

    • status: open --> closed
    • Group: -->