Is it possible to obtain the source latex code from package documentation? For example, I don't see the documentation latex file among siunitx source files.
These files have the extension
.dtx. The source for
siunitx is here. If you are using TeXLive, you can find the file on your own system by typing
in the terminal.