I'm making a small bundle of 'package-lets' for my classmates and need an easy way to register my package-lets with the local TeX installation.
Only the following distributions will be 'supported':
- MikTeX (via
mpm) - MacTeX/TeXLive (via
tlmgr)
I cannot assume that they will keep their assignments all in the same directory (I can understand the desire to deeply organize things when graphical explorers would shove way too much information in your face), so I must register them with the system.
I have a way to install the packages once I have the path (something like …/texmf-local/tex/latex/), assuming texhash is cross-platform.
kpsewhich -var-value TEXMFHOMEwill give you the value of the user's texmf home. I would recommend installing there as it avoids the need fortexhashand can be installed even by users who don't have admin rights on a system. Also, it is easy to tell people how to clean up later if they want to e.g. get rid of your install ofpgfwhen their TeX installation gets the new version. (Exception: if you were installing fonts.) Better to useinstallthancpon unix-type systems and you can set the mode with-m. Plus install into a sub-directory oftex/latexfor tidiness. – cfr Feb 16 '14 at 01:16install package.sty `kpsewhich -var-value TEXMFHOME`, TeX cannot findpackage.stywhen I\usepackage{package}. – Sean Allred Feb 16 '14 at 01:22tex/latex/pkgnamewithin TEXMFHOME or latex won't find it. See my suggestion below. – cfr Feb 16 '14 at 01:42kpsewhich -var-value, but the variableTEXMFHOMEis empty, and even worse, when upon installation one chose user mode install (as I did)TEXMFLOCALpoints to the main installation path! Cf. Difference between administrative and user mode of MiKTeX and also Create a local texmf tree in MiKTeX. For adding a local root the right command would beinitexmf --register-root(doubling the hyphen is important here, because-ris a different swi – Speravir Feb 16 '14 at 04:04styfiles into one file and write a Readme "Extract everything into a temporary folder and execute the batch script …". Uninstallation with a batch script is quite probably harder/not possible unless the wholeplaytexfolder could be deleted with included files. – Speravir Feb 16 '14 at 04:30kpsewhich -var-value TEXMFLOCALwith MiKTeX, even? (Because you could use that with TeX Live even though TEXMFHOME is more straightforward.) – cfr Feb 16 '14 at 04:40