Re: [問題] 請問如何看到並編輯tex的原始檔?
※ 引述《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: ports@FreeBSD.org
> 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
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章
14
30