[[BSD]] > FreeBSD

*[[FreeBSD:http://www.freebsd.org]] [#r05903ba]
*[[FreeBSD:https://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 系オペレーティングシステムです.~
FreeBSD はオープンソースの Unix 系オペレーティングシステムです.

-[[The FreeBSD Project:http://www.freebsd.org]]
-[[The FreeBSD Project (ja):http://www.freebsd.org/ja/]]
-[[The FreeBSD Project:https://www.freebsd.org]]
-[[The FreeBSD Project (ja):https://www.freebsd.org/ja/]]

**Ports [#j8583985]

-[[Ports svn r317904 UPDATING 20130511:http://svnweb.freebsd.org/ports/head/UPDATING?r1=317568&r2=317904]] にて,Port make時の変数 TEX_DEFAULT を tetex (2013年7月現在こちらが既定値)にするか texlive にするかで,teTeXにするかTeXliveにするかを選べるようになりました. 

-[[About FreeBSD Ports:http://www.freebsd.org/ports/]]
-[[About FreeBSD Ports:https://www.freebsd.org/ports/]]
-[[FreshPorts -- The Place For Ports:http://www.freshports.org/]]

***お知らせ [#w2f34805]

-https://cgit.freebsd.org/ports/commit/?id=24e24a19568e8038e3926d7050e1a6052a8b0df5 にて,Ports は TeX Live 2023 ベースとなりました.

**派生版 [#t29f2245]
-[[GhostBSD:https://www.ghostbsd.org/]]
-[[TrueOS:https://www.trueos.org/]]

*TeX Live &aname(texlive); [#w7ff21ac]

-https://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 と書いておくほうが良いでしょう)
--日本語環境は print/texlive-full をインストールすることで,従来の pLaTeX や dvipdfmx と同名同等のコマンドが利用できるようになる

方法があります.

**TeX Live 関連 [#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-langcjk:https://code.google.com/p/freebsd-texlive/source/browse/branches/releng/print/texlive-collection-langcjk/]]
-[[print/texlive-tlptexlive:https://github.com/HirotoKagotani/freebsd-texlive-tlptexlive]]
**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://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
install-tl-unx.tar.gz を展開します.
 $ tar xvf install-tl-unx.tar.gz
展開したインストーラのディレクトリに移動します.
 $ cd install-tl-2*
root 権限でインストーラを実行します.
オプションでダウンロードするリポジトリを指定できます.
 $ sudo ./install-tl -no-gui -repository http://mirror.ctan.org/systems/texlive/tlnet/
 
 ...
 
 Actions:
  <I> start installation to hard disk
  <H> help
  <Q> quit
 
 Enter command: I

I を入力してインストールを開始します.
サーバーの接続エラーが発生したり,アーカイブ中に予期せぬ EOF があったりした場合はインストールが途中でストップします.
エラーが発生した場合は以下のコマンドで途中から再開できたりできなかったりします.~

 $ sudo ./install-tl -no-gui -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 です.~
(Ports でインストールした場合は [[tlmgr]] は使えないようにしているそうです.
こちらを参照:
https://lists.freebsd.org/pipermail/freebsd-ports/2013-July/085001.html )

ただし,アップデートによってパッケージや設定が変更されて,今まで動いていたものが動かなくなったりすることがあるかもしれません.

-/usr/local/texlive/????/tlpkg/backups

にパッケージのバックアップが保存されます.
アップデートによって動作しなくなった場合は以前のバージョンに戻してください.

**TeX Live/FreeBSD [#p4fe1144]

-http://www.freshports.org/print/texlive-full/
-[[FreeBSD における TeXLive の導入:http://maikaze.cafe.coocan.jp/texlive1.html]]
-[[FreeBSDへのTeXliveインストール:http://sphinx-users.jp/cookbook/pdf/latex-install-freebsd.html]]
-[[「texlive」の検索結果 - msllの日記:http://d.hatena.ne.jp/msll/searchdiary?word=texlive]]
-[[TeX Live 2012 on FreeBSD Extended support:http://anthesphoria.net/FreeBSD/TeXLive-2012/bin/]]
-[[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で導入できます.

(多くのPortがまだteTeXを前提としているため,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|
|[[TeXstudio]]|editors/texstudio|Integrated writing environment for creating LaTeX documents|
|[[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/dvipdfmx|Dvipdfm with Asian languages by CID-keyed font technology support|
|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|
//|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|

***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|