As an illustration, let consider that I want to update the installed tcolorbox
package to the new one from the CTAN.
-
I have downloaded the newest
tcolorbox.zip
package fromctan.org/pkg/tcolorbox
. I extracted it and its contents are shown as follows. -
I noticed there are two folders related to the installed (old)
tcolorbox
as shown in the following figure.
Questions:
-
How do I know which files in the extracted folder should be copied to
...\doc\latex
and...\tex\latex
? -
Is there a more convenient way to do it?
-
Do I need to invoke
texhash
at the end? -
Should the package authors separate the main files from the document files with two subfolders in their zipped packages to ease manual update?
Best Answer
In the distribution documentation is separated from run time files, but it isn't essential that you do that, so if in doubt (or in a hurry) just leave all the files together in a directory in your input path.
Whether you need to run texhash afterwards depends where you put them. Some directories are marked as being hashed so if the new files are not hashed they will not be found, other directories are marked as not hashed and for them kpse searches the file system so just putting the files there is enough. (For example you never need texhash for the current directory)
will tell you your input path
mine is
which is an unmodified texlive 2012 setup.
Path segments prefixed by
!!
requiretexhash
path segments ending in//
include all subdirectories to any depth.