<div dir="ltr">Thanks, I did not know that. What about other distributions though? <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 16 Aug 2020 at 18:53, Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com">zdenek.wagner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ne 16. 8. 2020 v 14:33 odesílatel निरंजन <<a href="mailto:niranjanvikastambe@gmail.com" target="_blank">niranjanvikastambe@gmail.com</a>> napsal:<br>
><br>
> Hello friends,<br>
><br>
> I am Niranjan. I wanted to propose a command named texsrc for seeing the source code of a package. Currently TeXLive provides the texdoc command which opens the documentation of any desired package, but there is no such command for opening the source (.sty) file which is strange.<br>
><br>
> I am a Linux user and I have TL2020, therefore I have made a shell script in my /usr/bin/. It works for me (but only till I retain TL2020) and opens the source text of the desired package. The code is this -<br>
><br>
> #!/bin/sh<br>
> xdg-open /usr/local/texlive/2020/texmf-dist/tex/latex/$@/$@.sty<br>
><br>
No script needed:<br>
<br>
vim `kpsewhich something.sty`<br>
<br>
or replace "vim" with whatever editor you like, or you can just use<br>
"more" or "cat", if you are afraid of modifying the package by<br>
mistake.<br>
<br>
> This is a very minimal script. It needs to be refined as per the distribution year, os and path. I am no expert in shell to satisfy these requirements, but is it possible to build such a command?<br>
><br>
> Regards,<br>
> Niranjan<br>
<br>
<br>
Zdeněk Wagner<br>
<a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" rel="noreferrer" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br>
<a href="http://icebearsoft.euweb.cz" rel="noreferrer" target="_blank">http://icebearsoft.euweb.cz</a><br>
</blockquote></div>