请原谅这个问题的愚蠢之处,因为我是一个Linux/Ubuntu。
我在另一个问题中看到了C1命令,同时还在寻找使LaTeX href包在我的虚拟Ubuntu机器上工作的方法。
然后我尝试了apt-cache search href并得到了以下输出:
libio-dirent-perl - Perl module for accessing dirent structs returned by readdir
libclass-std-storable-perl - Support for creating serializable "inside-out" classes
libconfig-inihash-perl - Perl extension for reading and writing INI files
libdata-dumper-compact-perl - vertically compact width-limited data formatter
libdbix-abstract-perl - DBI SQL abstraction
libdigest-md5-file-perl - Perl extension for getting MD5 sums for files and urls
libhtml-html5-outline-perl - implementation of the HTML5 Outline algorithm
libhtml-microformats-perl - parse microformats in HTML
libjs-autolink - JavaScript methods converting text to links
libjson-hyper-perl - extract links from JSON via a schema
libjson-path-perl - search nested hashref/arrayref structures using JSONPath
libmoosex-arrayref-perl - blessed arrayrefs with Moose
libmoosex-oneargnew-perl - Moose role that extends class' constructor to accept single arguments
libmoosex-param-perl - simple Moose role providing a standard param method
libmoosex-singlearg-perl - module to instantiate Moose objects using a single argument
libmoosex-types-structured-perl - Moose extension for type constraints on structured types
libparams-validationcompiler-perl - module to build an optimized subroutine parameter validator
libpod-spell-perl - formatter to easily check the spelling of POD
libpostfix-parse-mailq-perl - module to parse the postfix mail queue
libtest-deep-unorderedpairs-perl - Test::Deep plugin for comparing lists as if they were hashes
libxml-atom-microformats-perl - parse microformats in Atom content
libxml-libxml-debugging-perl - get debugging information from XML::LibXML
node-url-to-options - Convert a WHATWG URL to an http(s).request options object
roffit - convert nroff manual pages into HTML
tea - graphical text editor with syntax highlighting
texlive-latex-extra - TeX Live: LaTeX additional packages字符串href只能在以下包中找到:
libjson-path-perl - search nested hashref/arrayref structures using JSONPath
我的理解是,apt-cache search pattern只会识别找到pattern的包。
为什么标识的包中没有出现href?
发布于 2021-06-25 17:13:34
请注意,https://www.ctan.org/pkg/href返回404。所以您可能使用了错误的包名。但是hyperref包存在。
如果您在本地阅读man apt-cache或在线,您可以看到以下内容:
search regex...search对POSIX模式的所有可用包列表执行全文搜索,请参见regex(7)。它搜索包名和说明以查找正则表达式的出现,并打印出包名和简短说明,包括虚拟包名称。如果给出--full,则为每个匹配的包生成与显示相同的输出,如果给出--names-only,则不搜索长描述,只搜索包名和提供的包。单独的参数可以用来指定多个搜索模式,这些模式是和‘一起使用的。
因此,您可以尝试使用apt-cache search href latex或一些逻辑命令。但真正重要的是,apt-cache对包内容一无所知。LaTeX包通常有*.bst、*.sty文件作为它们的定义。
要搜索包内容,例如对于hyperref.sty,您需要使用其他工具:
hyperref.sty -它包含在texlive-latex-baseUbuntu软件包中。https://askubuntu.com/questions/1348161
复制相似问题