看板LaTeX
标 题Re: [问题] 请问如何看到并编辑tex的原始档?
发信站SayYA 资讯站 (Mon Apr 23 13:43:18 2007)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《Edward (蒙古大夫 2.0)》之铭言:
> ※ 引述《suglwu (suglwu)》之铭言:
> > 刚刚找了一下 才发现 原来 ubuntu 是把 detex 放在 这个 package 里面
> > texlive-extra-utils
> > 这样就简单多了 不用从 source 着手了!
> 应该由 OS/distro 的 package 找寻功能就找得到,但有些 distro
> 不一定会附上就是了,以 FreeBSD 为例:
> [edt1023@lgj /usr/ports]$ make search key=^detex
> Port: detex-2.7
> Path: /usr/ports/print/detex
> Info: Strips TeX/LaTeX codes from a file
> Maint: [email protected]
> B-deps:
> R-deps:
> WWW: http://www.cs.purdue.edu/homes/trinkle/detex/
我个人也这麽认为。
可能我还不是很会用 dpkg-query or aptitute
以下面的例子来看:
已经安装了 texlive-extra-utils 这个 package (包含 detex)
用 dpkg-query 查询 可以找得到 detex 是包含在 texlive-extra-utils 里面
~$ dpkg-query -S detex
texlive-extra-utils: /usr/bin/detex
texlive-doc-en:
/usr/share/doc/texlive-doc-en/english/catalogue/entries/jadetex.html
texlive-extra-utils: /usr/share/man/man1/detex.1.gz
texlive-doc-en:
/usr/share/doc/texlive-doc/english/catalogue/entries/jadetex.html
但如果,假设还没安装 (所以先移除 texlive-extra-utils 仅测试用)
~$ sudo aptitude remove texlive-extra-utils
就查不到 detex 是属於 texlive-extra-utils 这个 package
~$ dpkg-query -S detex
texlive-doc-en:
/usr/share/doc/texlive-doc-en/english/catalogue/entries/jadetex.html
texlive-doc-en:
/usr/share/doc/texlive-doc/english/catalogue/entries/jadetex.html
我是听到您说 detex 是 texlive 的标准 tools
才去 google 搜寻 "detex texlive ubuntu"
大概 第五个 搜寻结果 出现
http://packages.ubuntu.com/edgy/tex/texlive-extra-utils
才发现 detex 有可能 是包含在 texlive-extra-utils package 里面
~$ env LANG=C aptitude show texlive-extra-utils |grep detex
bin-detex -- Filter to remove (La)TeX control sequences.
经由 上述 command 确认 的确 texlive-extra-utils 有包含 detex
(当然,那天我没有确认 就直接安装了!! 那是我偷懒的作法)
可能有更简洁的办法我还没想到,不过这是我目前的作法。
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: nlp4.et.ntust.edu.tw