John McCabe-Dansted wrote: > On 4/4/07, Andre Poenitz > <[EMAIL PROTECTED]> > wrote: >> So you suggest integrating your distribution's package management system >> into LyX? And mine? And Slackware? And ...? > > Does it have to be that complicated? The only package manager that you > really have to support is mpm (MiKTeX Package Manager), which does > support Unix. Any other package manager is just icing on the cake. > See: http://www.miktex.org/unx/
No! First, this automatic miktex stuff is causing lots of trouble (read the users list). I doubt that it was a good idea to implement that. Second, fiddling with the TeX installation is not LyX's business. If you want to use all features of LyX install a good and complete TeX distribution, e.g. TeXLive. If this is complicated on your OS (or linux distro if you run linux), then you might consider changing it. Linux distros with good built in TeX support exist, as do good TeX packages for other OSes. > The following psuedo code seems fairly simple to implement. > > FUNCTION on_latex_file_missing(f) > IF pkg_system.supported() AND have_admin_rights() > pkg=pkg_system.contains_file(f) > pkg_system.install_pkg(pkg) || echo Could not install > END IF > IF still_missing(f) > IMPORT MikTeX_tools_for_unix FROM http://www.miktex.org/unx/. > MIKTEX_INSTALL f INTO ~/.texmf > END IF > >> Not really. Your distribution's packager should take care of >> dependencies. Not LyX. > > Perhaps LyX could have a list of files that packagers should include, > and a script that tests that they also exist. That does already exist. Simply run configure.py and look at the output. Georg