精華區beta LaTeX 關於我們 聯絡資訊
※ 引述《jubilee.bbs@ptt.cc (Liang)》之銘言: > 我手上有一些副檔名為tex的檔案,需要對裡面的內容做更動 > 我用texmacs是看得到裡面的內容,可是內容似乎有點問題 > 所以我希望直接看到文字檔的東西 > 請問: > 如何將.tex轉檔成普通文字檔? > 另外,這些檔案有附圖檔和字型檔,但是開啟.tex檔時沒有自動加入 > 請問,圖形的話是否要一個一個手動加入?字型的話需要加在那個子目錄? > 謝謝大家幫忙,感激不盡~ 使用 detex。 -- 道隱於小成,言隱於榮華。(莊子.齊物論) -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: edt1023.sayya.org > -------------------------------------------------------------------------- < 發信人: suglwu.bbs@bbs.sayya.org (suglwu), 看板: 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: 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