what is the best way to store the list of all available latex packages. at this time I have
vector <string> packageList; bool packageAvailable(string const & p) { // lyxrc.noPackageCheck allows a LaTeX-run without // any check bool found = find(packageList.begin(), packageList.end(), p) != packageList.end() || lyxrc.noPackageCheck; return found; } // builds a list of packages from the local or remote tex-tree // which LyX may support. The packages are saved without the // sty-extension void buildPackageList() { ifstream is(LibFileSearch(string(),"packages.lst").c_str()); copy(istream_iterator<string>(is), istream_iterator<string>(), back_inserter(packageList)); } Herbert -- http://www.lyx.org/help/