tlmgr 安装文档类包(refman)?

tlmgr 安装文档类包(refman)?

我正在尝试通过(Ubuntu 14.04,非系统位置)安装refman类包。所以我做了:tlmgr

$ tlmgr install refman
TeX Live 2015 is frozen forever and will no
longer be updated.  This happens in preparation for a new release.

If you're interested in helping to pretest the new release (when
pretests are available), please read http://tug.org/texlive/pretest.html.
Otherwise, just wait, and the new release will be ready in due time.
tlmgr: package repository ftp://tug.org/historic/systems/texlive/2015/tlnet-final
[1/1, ??:??/??:??] install: refman [666k]
tlmgr: package log updated: /path/to/texlive/2014/texmf-var/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.

此时,中有refman.ins/ ,但没有;因此我这样做:.dtxtexlive/2014/texmf-dist/source/latex/refman/.cls

$ cd /path/to/texlive/2014/texmf-dist/source/latex/refman/
$ latex refman.ins
$ texhash

但在此之后,当我尝试pdflatex test.tex

\documentclass[a4paper,12pt,twoside]{refman}

\begin{document}
Hello world
\end{document}

...我得到:

$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2016/03/31>
Babel <3.9q> and hyphenation patterns for 33 language(s) loaded.

! LaTeX Error: File `refman.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: X

如何才能正确安装 refman 文档类?

答案1

呃,事实证明该refman包不包含refman.cls类 - 而是latex *.instexlive/2014/texmf-dist/source/latex/refman/文件refart.cls和中生成refrep.cls- 并且可以在中找到相同的内容texlive/2014/texmf-dist/tex/latex/refman/,这是 LaTeX 引擎会寻找它们的地方(我应该将自己的 .sty 或 .cls 文件放在哪里,以使它们可供我的所有 .tex 文件使用?

所以 - 事实证明这两种方法都可以:

\documentclass[a4paper,12pt,twoside]{refart}

\documentclass[a4paper,12pt,twoside]{refrep}

...但是没有这样的东西\documentclass{refman}——不幸的是,无法快速地从中获取信息texdoc refman

相关内容