答案1
并非所有 TeX Live 软件包,包裹,包含一个.sty
同名文件package.sty
。有时确实如此,有时却不包含。要了解包提供的内容,请阅读其文档或查看其目录。或者,在某些情况下,您可以直接询问 TeX Live Manager。例如,
tlmgr 信息算法
返回此:
package: algorithms
category: Package
shortdesc: A suite of tools for typesetting algorithms in pseudo-code
longdesc: Consists of two environments: algorithm and algorithmic. The algorithm package defines a floating algorithm environment designed to work with the algorithmic style. Within an algorithmic environment a number of commands for typesetting popular algorithmic constructs are available.
installed: Yes
revision: 38085
sizes: src: 53k, doc: 365k, run: 17k
relocatable: No
cat-version: 0.1
cat-date: 2015-08-03 05:43:12 +0200
cat-license: lgpl
cat-topics: pseudocode
cat-related: alg
collection: collection-science
因此该软件包algorithm.sty
至少可能提供了。
确实如此,
ls $(kpsewhich -var TEXMFMAIN)/tex/latex/algorithms/
证实了这一点:
algorithm.sty algorithmic.sty