Proposal for texsrc command
borisv at lk.net
Mon Aug 17 19:43:15 CEST 2020
NP> Date: Sun, 16 Aug 2020 21:47:01 +0900
NP> From: Norbert Preining <norbert at preining.info>
NP> Hi Niranjan,
NP> Not really. You are assuming that
NP> package name == style file name for LaTeX
NP> Unfortunately this breaks for a large set of packages.
NP> Example where it works:
NP> package 12many
NP> file .../texmf-dist/tex/latex/12many/12many.sty
NP> example where it does not work:
NP> package IEEEconf
NP> file .../texmf-dist/tex/latex/IEEEconf/IEEEconf.cls
NP> (because it ships a class file and not a style file)
NP> another example
NP> package adfsymbols
NP> file .../texmf-dist/tex/latex/adfsymbols/adfarrows.sty
NP> (style file is named different from package name)
NP> And there are many many more differences. So there is no easy way to
NP> find **THE** source file.
I would think that for LaTeX packages the best choice for source is
the commented dtx file. So I'd like texsrc to return
Only if the file is absent, we need to use .sty or .cls, as for
I think the algorithm for searching sources is complex enough to make
a texsrc command implementing it useful.
A person who combs his hair over his bald spot, hoping no one
-- Rich Hall, "Sniglets"
More information about the tex-live