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/ 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. Also for dynamic dependencies (admittedly not what we are talking about here) the existing package managers are not very suitable. There is no need to bother a sysadmin every time you need a new style file. -- John C. McCabe-Dansted PhD Student University of Western Australia