Does exist a way to open/read the documentation of packages directly from TeXworks?
There is nothing built-in, but TeXworks does allow for extensions via scripts. If you look in the TeXworks repository at Github there is one script for doing what you ask:
I tried this on my system (Kubuntu with TeX Live), and it seemed to work fine. The steps to use it is as follows:
- Download the ZIP archive from the link above.
Open TeXworks, choose Scripts --> Scripting TeXworks --> Show scripts folder:
Unzip the archive in this folder, it should give you a subfolder called
.txtfile and a
In TeXworks, choose Scripts --> Scripting TeXworks --> Reload scripts folder. If you now look in the Scripts-menu again, there should be an entry
packageHelp(as in the image above).
You need to allow scripts access to running system commands via Edit --> Preferences --> Scripting, checking the box for "Allow scripts to run system commands":
Now everything should be ready. To access the documentation of a package:
Select the name of a package in your document, for example by double-clicking on it.
Hit the keyboard shortcut Alt + T Alt + D. (In other words, hold down Alt, and hit first T then D.)