
我正在嘗試安裝“tabto.sty”,並且正在使用 CTAN 的普通 TeXLive。
tabto 巨集存檔在 CTAN 的以下目錄中 --
1. http://www.ctan.org/tex-archive/macros/latex/contrib/tabto
但我的 TeXLive 存儲庫正在這個位置尋找它 -
2. http://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet
並且它不包含 tabto。
我知道我可以直接從 CTAN url(上面的連結 1)下載 sty 檔案(或 zip 檔案)並使用它。但我不想那樣做。
如何讓我的 TeXLive 從上述兩個 URL 獲取所有必需的內容? CTAN 儲存庫(連結 1)是否有任何「tlnet」相容連結可以與 tlmgr 一起使用?
答案1
若要尋找包含特定檔案(例如tabto.sty
)的 TeX Live 軟體包,您可以使用下列命令:
% tlmgr 搜尋 --global --file tabto.sty tlmgr:軟體套件儲存庫 http://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet tabto-ltx: texmf-dist/tex/latex/tabto-ltx/tabto.sty
現在,您知道要安裝的 TeX Live 軟體套件的名稱。您可以使用以下命令安裝它:
% tlmgr 安裝 tabto-ltx
答案2
TeX Live 套件名稱並不總是與其包含的 LaTeX 套件名稱相同。在這種情況下你想要tabto-ltx
.
$ tlmgr info tabto
tlmgr: package repository http://anorien.csc.warwick.ac.uk/mirrors/CTAN/systems/texlive/tlnet
tlmgr: cannot find package tabto
什麼都沒有:-) 但是:
$ tlmgr info tabto-ltx
package: tabto-ltx
category: Package
shortdesc: "Tab" to a measured position in the line.
longdesc: \tabto{<length>} moves the typesetting position to <length> from the left margin of the paragraph. If the typesetting position is already further along, \tabto starts a new line; the command \tabto* will move position backwards if necessary, so that previous text may be overwritten. The command \TabPositions may be used to define a set of tabbing positions, after which the command \tab advances typesetting position to the next defined 'tab stop'.
installed: Yes
revision: 30710
sizes: doc: 121k, run: 9k
relocatable: Yes
cat-version: 1.3
cat-date: 2013-05-25 17:03:59 +0200
cat-license: lppl
collection: collection-latexextra