I want to ensure that texdoc cool opens up texmf-dist/doc/latex/cool/Content_LaTeX_Package_Demo.pdf instead of texmf-dist/doc/latex/cool/cool.pdf: My default configuration is this:
$ texdoc -l cool
1 /usr/local/texlive/2010/texmf-dist/doc/latex/cool/cool.pdf
= Package documentation
2 /usr/local/texlive/2010/texmf-dist/doc/latex/cool/Content_LaTeX_Package_Demo.pdf
= EXamples of use
Please enter the number of the file to view, anything else to skip:
According to the texdoc manual this can by done with a local texdoc/texdoc.cnf file. I get that. But when I checked texdoc's search path I get something funny:
$ texdoc -f
texdoc 0.72
Configuration files are:
absent /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc-x86_64-darwin.cnf
(*) absent /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc.cnf
absent /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc-dist.cnf
absent /usr/local/texlive/2010/../texmf-local/texdoc/texdoc-x86_64-darwin.cnf
absent /usr/local/texlive/2010/../texmf-local/texdoc/texdoc.cnf
active /usr/local/texlive/2010/texmf/texdoc/texdoc.cnf
(*) This is the recommended configuration file for your personal preferences.
The first three directories look like they have a literal :~ in them. If I create config files in ~/Dropbox/Library/texmf/texdoc/ or ~/Library/texmf/texdoc they are not found.
I think I created this problem when I followed the solution to How to add an extra searchable dir with personal style files to TeXLive, NOT under ~/Library/texmf? :
$ kpsewhich --var-value=TEXMFHOME
/Users/matthew/Dropbox/Library/texmf:~/Library/texmf
It looks like texdoc assumes that $TEXMFHOME is a single directory and not a colon-separated list of directories. Is there a workaround?
texdoc coolis clearly suboptimal, so the adjustment you wanted to make to your configuration should actually be incorporated in the default configuration file. I'd like to encourage everyone to report such suboptimal (or wrong) results on the texdoc list so that I can fix them. Such user input is very useful for me to keep making texdoc better. Thanks in advance. – mpg Jan 31 '12 at 16:17