[[BSD]] > FreeBSD *[[FreeBSD:http://www.freebsd.org]] [#r05903ba] #ref(http://upload.wikimedia.org/wikipedia/en/thumb/d/df/Freebsd_logo.svg/500px-Freebsd_logo.svg.png,right,around,nolink,FreeBSD) &color(White,#5F2F2F){ ''◆CONTENTS◆'' };&br; #contents *FreeBSD とは [#o8689db1] FreeBSD はオープンソースの Unix 系オペレーティングシステムです.~ -[[The FreeBSD Project:http://www.freebsd.org]] -[[The FreeBSD Project (ja):http://www.freebsd.org/ja/]] **Ports [#j8583985] -[[Ports svn r362648 UPDATING 20140727:http://svnweb.freebsd.org/ports/head/UPDATING?r1=362614&r2=362648]] にて,Port make 時の変数 TEX_DEFAULT が texlive になりました. -[[About FreeBSD Ports:http://www.freebsd.org/ports/]] -[[FreshPorts -- The Place For Ports:http://www.freshports.org/]] *TeX Live &aname(texlive); [#w7ff21ac] -http://svnweb.freebsd.org/ports/head/print/texlive-full/ -[[FreshPorts -- print/texlive-full:http://www.freshports.org/print/texlive-full/]] FreeBSD で [[TeX Live]] をインストールする場合は -ports を使わずに TeX Live の公式パッケージをインストールする -ports を使って TeX Live をインストールする --日本語環境は print/texlive-full と japanese/tex-ptex をインストールすることで,従来のpLaTeXやdvipdfmxと同名同等のコマンドが利用できるようになる (/etc/make.conf にて TEX_DEFAULT=texlive と書いておくほうが良いでしょう) 方法があります. **TeX Live 公式パッケージ [#la53cbe5] ***TeX Live のインストール &aname(texliveinstall); [#v92cb887] -http://www.tug.org/texlive/quickinstall.html -http://www.tug.org/texlive/doc/texlive-en/texlive-en.html#installation -[http://anthesphoria.net/FreeBSD/TeXLive-2014/ Storage@Anthesphoria: TeX Live on FreeBSD | TeX Live 2014 on FreeBSD | Notes for FreeBSD users] を参照.~ [[ミラーサイト>TeX Live#tlnet]]から install-tl-unx.tar.gz をダウンロードします.~ $ sudo pkg install wget $ wget http://ring.airnet.ne.jp/pub/text/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz install-tl-unx.tar.gz を展開します.~ $ tar xvf install-tl-unx.tar.gz 展開したインストーラのディレクトリに移動します.~ $ cd install-tl* root 権限でインストーラを実行します.~ オプションでダウンロードするリポジトリを指定できます.~ $ sudo ./install-tl --repository http://ring.airnet.ne.jp/pub/text/CTAN/systems/texlive/tlnet/ ... Actions: <I> start installation to hard disk <H> help <Q> quit Enter command: I I を入力してインストールを開始します.~ サーバーの接続エラーが発生したり,アーカイブ中に予期せぬ EOF があったりした場合はインストールが途中でストップします.~ エラーが発生した場合は以下のコマンドで途中から再開できたりできなかったりします.~ $ sudo ./install-tl --profile installation.profile ABORTED INSTALLATION FOUND: installation.profile Do you want to continue with the exact same settings as before (y/N): y 再開できない場合は[[接続先を変更>TeX Live#tlnet]]するかまたは [[ISO ファイル>TeX Live#iso]]をミラーサイトからダウンロードしてインストールしてください.~ インストールが終了したら /usr/local/bin ディレクトリ配下にシンボリックリンクを追加します.~ $ sudo /usr/local/texlive/????/bin/*/tlmgr path add ***アップデート [#df800247] アップデートは $ sudo tlmgr update --self --all を実行すれば OK です.~ ただし,アップデートによってパッケージや設定が変更されて,今まで動いていたものが動かなくなったりすることがあるかもしれません.~ -/usr/local/texlive/????/tlpkg/backups にパッケージのバックアップが保存されます.~ アップデートによって動作しなくなった場合は以前のバージョンに戻してください.~ ***extractbb の追加 &aname(extractbb); [#g07eb708] TeX Live 2014 はデフォルトでは extractbb が自動実行されません.~ TEXMFLOCAL の値を確認します.~ $ kpsewhich -var-value TEXMFLOCAL /usr/local/texlive/texmf-local /usr/local/texlive/texmf-local/web2c/texmf.cnf を作成します.~ $ sudo mkdir -p /usr/local/texlive/texmf-local/web2c $ sudo touch /usr/local/texlive/texmf-local/web2c/texmf.cnf /usr/local/texlive/texmf-local/web2c/texmf.cnf を編集します.~ shell_escape_commands を以下のように編集して保存します.~ shell_escape_commands = \ bibtex,bibtex8,bibtexu,upbibtex,biber,\ kpsewhich,\ makeindex,mendex,texindy,xindy,\ mpost,upmpost,\ repstopdf,epspdf,extractbb mktexlsr を実行します.~ $ sudo mktexlsr ***フォント埋め込みの設定 [#tf6ceac1] kanji-config-updmap(-sys) を使用してフォント埋め込みの設定ができます.~ IPAexフォントを埋め込む場合は~ $ sudo kanji-config-updmap-sys ipaex または $ kanji-config-updmap ipaex を実行します.~ TeX Live には IPAex フォント,uptex-ipaex.map が収録されています.~ $ kpsewhich ipaexm.ttf ipaexg.ttf /usr/local/texlive/????/texmf-dist/fonts/truetype/public/ipaex/ipaexm.ttf /usr/local/texlive/????/texmf-dist/fonts/truetype/public/ipaex/ipaexg.ttf $ kpsewhich uptex-ipaex.map /usr/local/texlive/????/texmf-dist/fonts/map/dvipdfmx/jfontmaps/ipaex/uptex-ipaex.map upLaTeX + dvipdfmx を実行する場合は ptex2pdf が便利です.~ $ ptex2pdf -u -l -ot '-synctex=1' -od '-f uptex-ipaex.map' hoge.tex **TeX Live/FreeBSD [#p4fe1144] -[[freebsd-texlive:https://code.google.com/p/freebsd-texlive/]] --[[print/texlive-core:https://code.google.com/p/freebsd-texlive/source/browse/trunk/print/texlive-core/]] --[[print/texlive-collection-langjapanese:https://code.google.com/p/freebsd-texlive/source/browse/branches/releng/print/texlive-collection-langjapanese/]] -[[print/texlive-tlptexlive:https://github.com/HirotoKagotani/freebsd-texlive-tlptexlive]] -[[FreeBSDへのTeXliveインストール:http://sphinx-users.jp/cookbook/pdf/latex-install-freebsd.html]] -[[「texlive」の検索結果 - msllの日記:http://d.hatena.ne.jp/msll/searchdiary?word=texlive]] -[[FreeBSD のports TeXLive & evince : 日本語フォントの設定 fonts.conf:http://blog.goo.ne.jp/koyusoma5102/e/4936476b9a197dda36799498a4bfd5c9]] -[[[FreeBSD]texlive:http://barutan.s296.xrea.com/cgi-bin/tdiary/?date=20140726#p02]] *その他関連Ports [#k9078aba] Portsですので, make && make installで導入できます. (TeXlive と共存しないものが存在する場合は Makefile 中の変数 USE_TEX の中身を確認してください.USE_TEXの値の意味については,[[/usr/ports/Mk/bsd.tex.mk:http://svnweb.freebsd.org/ports/head/Mk/bsd.tex.mk?view=markup]] から参照できます.なお,bsd.tex.mkはUSE_TEXが定義されていればbsd.port.mk中でincludeされるため,別途読み込む必要はありません.) //***TeXパッケージ [#z26b2356] //|latex-mathabx|print/latex-mathabx|Math series, aka mathabx MetaFont fontset for TeX/LaTeX| ***TeXをバックエンドとして使うアプリケーション [#ba4b7bf1] |[[LyX]]|print/lyx|Document processor interfaced with LaTeX (nearly WYSIWYG)| //|jadetex|print/jadetex|A TeX backend for Jade, for typesetting SGML documents| //|ja-jadetex|japanese/jadetex-ptex|A pTeX backend for Jade, for typesetting SGML documents| //|smartdoc|textproc/smartdoc|XML utility to create various documents| ***TeXソースの入力支援 [#z413bd5e] //|[[TeXmacs]]|editors/texmacs|A free WYSIWYG scientific text editor| |[[Texmaker]]|editors/texmaker|LaTeX Development Environment| |[[TeXworks]]|editors/texworks|A simple TeX front-end program| |[[AUCTeX]]|print/auctex|Integrated environment for writing LaTeX using GNU Emacs| |[[YaTeX]]|print/yatex|Yet Another LaTeX mode and html mode on Emacs| //***TeXソースからの変換 [#r0d43da9] //|detex|print/detex|Strips TeX/LaTeX codes from a file| //|latex2html|textproc/latex2html|Convert LaTeX documents to HTML| //|ja-latex2html|japanese/latex2html|Japanese LaTeX2HTML with JA patch| ***DVIファイルからの変換 [#b5e1aa4a] |dvipdfmx|print/tex-dvipdfmx|Dvipdfm with Asian languages by CID-keyed font technology support| //|dvi2tty|print/dvi2tty|A dvi-file previewer for text only devices| //|ja-dvi2tty|japanese/dvi2tty|Character-based DVI file previewer| ***PostScript関連 [#v58c994c] |ghostview|print/ghostview|An X11 front-end for ghostscript, the GNU postscript previewer| |gv|print/gv|A PostScript and PDF previewer| //|psutils-a4|print/psutils-a4|Utilities for manipulating PostScript documents| //|psutils-letter|print/psutils-letter|Utilities for manipulating PostScript documents|