如何让 texdoc 返回特定文档?

如何让 texdoc 返回特定文档?

我对这个套餐很感兴趣layout,但当我

texdoc layout

它返回了的手册pst-layout

layout我的电脑上有这个包

/usr/local/texlive/2021/texmf-dist/tex/latex/tools/layout.sty

我正在等待 DVD,然后再更新到 2022 texlive。

答案1

我发现如果我输入

texdoc -h

它以命令的选项列表作为响应,其中之一是-l提供名称的所有结果的列表。

Usage: texdoc [OPTION]... NAME...
   or: texdoc [OPTION]... ACTION

Try to find appropriate TeX documentation for the specified NAME(s).
Alternatively, perform the given ACTION and exit.

Options:
  -w, --view        Use view mode: start a viewer. (default)
  -m, --mixed       Use mixed mode (view or list).
  -l, --list        Use list mode: show a list of results.
  -s, --showall     Use showall mode: show also "bad" results.

  -i, --interact    Use interactive menus. (default)
  -I, --nointeract  Use plain lists, no interaction required.
  -M, --machine     Machine-readable output for lists (implies -I).

  -q, --quiet       Suppress warnings and most error messages.
  -v, --verbose     Print additional information (e.g., viewer command).
  -D, --debug       Activate all debug output (equal to "--debug=all").
  -d LIST, --debug=LIST
                    Activate debug output restricted to LIST.
  -c NAME=VALUE     Set configuration item NAME to VALUE.

Actions:
  -h, --help        Print this help message.
  -V, --version     Print the version number.
  -f, --files       Print the list of configuration files used.
  --just-view FILE  Display FILE, given with full path (no searching).

Full manual available via `texdoc texdoc'.

Website: <https://tug.org/texdoc/>
Repository: <https://github.com/TeX-Live/texdoc>
Please email bugs to <[email protected]>.

我试过

texdoc -l layout

并得到

1 /usr/local/texlive/2021/texmf-dist/doc/latex/pst-layout/pst-layout-doc.pdf
   = Package documentation
 2 /usr/local/texlive/2021/texmf-dist/doc/latex/tools/layout.pdf
 3 /usr/local/texlive/2021/texmf-dist/doc/context/third/layout/t-layout.pdf
   = Package documentation
 4 /usr/local/texlive/2021/texmf-dist/doc/latex/handin/layout.pdf
 5 /usr/local/texlive/2021/texmf-dist/doc/latex/latex-refsheet/layout.pdf
 6 /usr/local/texlive/2021/texmf-dist/doc/latex-dev/tools/layout.pdf
 7 /usr/local/texlive/2021/texmf-dist/doc/context/third/layout/VERSION
 8 /usr/local/texlive/2021/texmf-dist/doc/latex/refman/layout_d.pdf
   = [de] Layout-Anderungen mit LaTeX
 9 /usr/local/texlive/2021/texmf-dist/doc/latex/refman/layout_e.pdf
   = [en] Changing the layout with LaTeX
10 /usr/local/texlive/2021/texmf-dist/doc/latex/pst-layout/README
   = Readme
Enter number of file to view, RET to view 1, anything else to skip: 

于是我输入了2我感兴趣的布局包,而不是pst-layout

相关内容