3

I know it's convenient to install packages with tlmgr install <package>, but I couldn't find a way to open the documentation of the respective package; I know it installs them, I can manually go to the folder where they're installed (which is also not easy to find).

So what's the best alternative to do something similar to tlmgr docs <package>?

Edit: I'm using BasicTeX.

  • 4
    texdoc <package> should work too. – user31729 Mar 2 '16 at 20:56
  • @ChristianHupfer It's not installed in my PC. I'm using BasicTeX. – user14492 Mar 2 '16 at 20:57
  • BasicTeX? I don't know what BasicTeX is, but this information should be added to the post – user31729 Mar 2 '16 at 20:58
  • 4
    Maybe tlmgr install texdoc? And then texdoc <package> – DG' Mar 2 '16 at 21:01
  • @DG' Yep that did the trick, thank you. If you wanna write that as in answer, so I can mark this as solved. – user14492 Mar 3 '16 at 15:14
5

You need to install texdoc on BasicTeX with tlmgr install texdoc in order to be able to run texdoc <package>.

4

This is supposed to be a comment, but I do not have enough reputation to do that.

I think this script may help. It says (I changed it a little bit):

  1. Install texdoc by

    tlmgr install texdoc
    
  2. Enable automatic build of documentation, which is disabled (by default) for BasicTeX tlmgr:

    tlmgr option docfiles 1
    
  3. Build documentation for all installed packages:

    tlmgr install --reinstall $(tlmgr list --only-installed | sed -E 's/i (.*):.*$/\1/')
    

    The tlmgr list format is i <pkg-name>: <description> so we get the name with sed. I used ERE (Extended Regular Expression) since BasicTeX is only available on OS X, where ERE is available with -E. Note that tlmgr list --only-installed and tlmgr info --only-installed seems to be the same, checked with Bash process substitution and diff.

In some of the steps above you may need sudo (depending on how you installed BasicTeX). Use it wisely. This answer is related, I think.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.