From f6451c2ba9ea54728d3cb88d79ad9f00e445f850 Mon Sep 17 00:00:00 2001 From: Jjgod Jiang Date: Sun, 3 Aug 2008 01:05:37 +0000 Subject: Finish 3.1, 3.2. git-svn-id: svn://tug.org/texlive/trunk@10024 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/texlive/texlive-zh-cn/texlive-zh-cn.tex | 409 +++++++++------------ 1 file changed, 182 insertions(+), 227 deletions(-) (limited to 'Master/texmf-doc') diff --git a/Master/texmf-doc/source/texlive/texlive-zh-cn/texlive-zh-cn.tex b/Master/texmf-doc/source/texlive/texlive-zh-cn/texlive-zh-cn.tex index 2e37d8cbdc1..048b9524ac2 100644 --- a/Master/texmf-doc/source/texlive/texlive-zh-cn/texlive-zh-cn.tex +++ b/Master/texmf-doc/source/texlive/texlive-zh-cn/texlive-zh-cn.tex @@ -396,31 +396,28 @@ pdf\TeX\ 的一套替换方案。参见 \pkgname{ps4pdf} 和 \subsection{启动安装程序} \label{sec:inst-start} -To start with, get the \TK{} \DVD{} or download the \TL{} net installer, -and locate the installer script: \filename{install-tl} for Unix, -\filename{install-tl.bat} for Windows. +首先请找来一张 \TK{} 的 \DVD{},或者下载 \TL{} 的网络安装程序,然后 +找到这个安装脚本:Unix 下是 \filename{install-tl},Windows 下是 +\filename{install-tl.bat}。 \begin{description} -\item [Net installer:] Download from \CTAN, under -\dirname{systems/texlive/tlnet}; the url -\url{http://mirror.ctan.org/systems/texlive/tlnet} will automatically -redirect to a nearby, up-to-date, mirror. You can retrieve either -\filename{install-tl.zip} which can be used under Unix and Windows and -\filename{install-unx.tar.gz} which is considerably smaller, for Unix -only. After unpacking, \filename{install-tl} and -\filename{install-tl.bat} will be in the \dirname{install-tl} -subdirectory. - -\item [\TeX{} Collection \DVD:] go to its \dirname{texlive} -subdirectory. Under Windows, the installer should start automatically -when you insert the \DVD. You can get the \DVD\ by becoming a member of -a \TeX\ user group (highly recommended, -\url{http://tug.org/usergroups.html}), or purchasing it separately -(\url{http://tug.org/store}), or burning your own from the \ISO\ -image (\url{http://tug.org/texlive/acquire.html}). +\item [网络安装程序:] 在 \CTAN 的 \dirname{systems/texlive/tlnet} +目录下可以下载,\url{http://mirror.ctan.org/systems/texlive/tlnet} 这个地址能 +自动将你导向一个附近的、保持更新的镜像。你可以下载同时支持 Unix 和 +Windows 的 \filename{install-tl.zip} 或者小得多但只支持 Unix 的 +\filename{install-unx.tar.gz}。解压后,\filename{install-tl} 和 +\filename{install-tl.bat} 就会出现在 \dirname{install-tl} 子目录中。 + +\item [\TeX{} Collection \DVD:] 打开 \dirname{texlive} 这个子目录。 +在 Windows 下安装程序应该在插入 \DVD 后就自动启动了。要获得 \DVD 的 +话可以加入一个 \TeX\ 用户组织 (推荐这么做,参见 +\url{http://tug.org/usergroups.html}) 或是单独购买 (通过 +\url{http://tug.org/store}),又或者是自己从 \ISO\ 镜像刻录 +(\url{http://tug.org/texlive/acquire.html})。 \end{description} -The following sections explain in more detail. + +下面的章节介绍得更为详细。 \subsubsection{Unix} @@ -472,115 +469,105 @@ Other actions: Enter command: \end{boxedverbatim} -\caption{Main text installer screen (\GNU/Linux)}\label{fig:text-main} +\caption{文本模式主安装界面 (\GNU/Linux)}\label{fig:text-main} \end{figure} \begin{figure}[tb] \tlpng{install-w32-main}{\linewidth} -\caption{Main \GUI{} installer screen (Windows)}\label{fig:gui-main} +\caption{\GUI{} 模式主安装界面 (Windows)}\label{fig:gui-main} \end{figure} \noindent -Below, \texttt{>} denotes the shell prompt; user input is -\Ucom{\texttt{bold}}. -Starting in a terminal window on a Unix-compatible system, the simplest -way: +下面的 \texttt{>} 表示 shell 提示符;用户的输入则用 +\Ucom{\texttt{bold}} 体表示。 +在 Unix 兼容的系统的一个终端窗口下,最简单的方式是: \begin{alltt} > \Ucom{cd /path/to/installer} > \Ucom{perl install-tl} \end{alltt} -(Or you can invoke \Ucom{perl /path/to/installer/install-tl}, or -\Ucom{./install-tl} if it stayed executable, etc.; we won't repeat all -these variations.) +(或者你可以直接运行 \Ucom{perl /path/to/installer/install-tl},或者 +\Ucom{./install-tl},如果这个文件有可执行属性,我们不会把所有这些执 +行方法列出来。) -To install in \GUI\ mode (you'll need the \dirname{Perl/TK} module), use: +要在 \GUI\ 模式下安装 (你需要 \dirname{Perl/TK} 模块),使用: \begin{alltt} > \Ucom{perl install-tl -gui} \end{alltt} -For a complete listing of the various options: +要列出所有这些选项: \begin{alltt} > \Ucom{perl install-tl -help} \end{alltt} -\textbf{Warning about Unix permissions:} Your \code{umask} at the time -of installation will be respected by the \TL{} installer. Therefore, if -you want your installation to be usable by users other than you, make -sure your setting is sufficiently permissive, for instance, \code{umask -002}. For more information about \code{umask}, consult your system -documentation. - +\textbf{关于 Unix 下权限的警告:} 在安装过程中,\TL{} 安装程序将会 +遵照你的 \code{umask} 行事。所以如果你需要让你的安装能给其他用户使 +用,就必须保证你设置的权限足够,比如 \code{umask 002}。更多关于 +\code{umask} 的信息请参见你自己系统的文档。 \subsubsection{Mac\,OS\,X} -As mentioned in section~\ref{sec:tl-coll-dists}, a separate distribution -is prepared for \MacOSX, named Mac\TeX\ (\url{http://tug.org/mactex}). -We recommend using the native Mac\TeX\ installer instead of the \TL\ -installer on \MacOSX, because the native installer can make a few -Mac-specific adjustments, in particular to allow easily switching -between the various \TeX\ distributions for \MacOSX\ (Mac\TeX, gw\TeX, -Fink, MacPorts, \ldots). - -Mac\TeX\ is firmly based on \TL, and the main \TeX\ trees are precisely -the same. It does add a few extra folders with Mac-specific -documentation and applications. +如第 \ref{sec:tl-coll-dists} 节提到的,我们给 \MacOSX 准备了一套独立的 +发行版,叫做 Mac\TeX\ (\url{http://tug.org/mactex})。我们推荐使用原生的 +Mac\TeX\ 安装程序,而不是 \TL\ 自带的那个,因为原生的这个能进行一些专门 +针对 Mac 的调整,尤其方便在多个 \MacOSX 下的 \TeX\ 发行版 (Mac\TeX, gw\TeX, +Fink, MacPorts, \ldots) 之间切换。 +Mac\TeX\ 是严格依赖 \TL 构建的,所以主 \TeX\ 树也是完全一致的。不过它添 +加了一些用来存放 Mac 专有文档和程序的目录。 \subsubsection{Windows} If you are using the net installer, or the \DVD\ installer failed to start automatically, double-click \filename{install-tl.bat}. -You can also start the installer from the command-prompt. Below, -\texttt{>} denotes the prompt; user input is \Ucom{\texttt{bold}}. If -you are in the installer directory, run just: +如果你使用的是网络安装程序,又或者 \DVD 安装程序无法自动启动了,请 +双击 \filename{install-tl.bat}。 + +你也可以从命令行提示符下启动安装程序。下面 \texttt{>} 表示的就是提示符, +用户输入用 \Ucom{\texttt{bold}} 体表示。如果你正在安装程序目录下,只需要 +运行: \begin{alltt} > \Ucom{install-tl} \end{alltt} -Or you can invoke it with an absolute location, such as: +或者你也可以通过绝对路径来运行,比如: \begin{alltt} > \Ucom{D:\bs{}texlive\bs{}install-tl} \end{alltt} -for the \TK\ \DVD, supposing that \dirname{D:} is the optical drive. +这是对 \TK\ \DVD 而言的,假定 \dirname{D:} 是光驱。 -To install in text mode, use: +要在文本模式下安装,使用: \begin{alltt} > \Ucom{install-tl -no-gui} \end{alltt} -For a complete listing of the various options: +要列出所有可用的选项: \begin{alltt} > \Ucom{install-tl -help} \end{alltt} \subsubsection{文本界面安装程序} -Figure~\ref{fig:text-main} displays the main text mode screen under -Unix. +图~\ref{fig:text-main} 展示了 Unix 下文本模式的主界面。 -This is only a command-line installer; there is no cursor support at -all. For instance, you cannot tab around checkboxes or input fields. -You just type something (case-sensitive) at the prompt and press the -Enter key, and then the entire terminal screen will be rewritten, with -adjusted content. +这是一个完全用命令行操作的安装程序,完全不支持光标移动。所以你无法 +在多选框或者输入框之间用 Tab 上下切换,只能在提示符下输入特定的字符 +(大小写敏感的) 然后按下 Enter,整个终端窗口就会把新的内容刷新出来。 -The text installer interface is this primitive for a reason: it -is designed to run on as many platforms as possible, even with a -very barebones Perl (for Windows, a Perl subset is included). +文本安装程序之所以这么简陋是因为它要尽可能支持最多的平台,就算 +只有一个 Perl 的系统也能运行它 (对于 Windows 我们自带了一个 Perl +的裁剪版本)。 \subsubsection{图形界面安装程序} -Figure~\ref{fig:gui-main} displays the graphical installer under -Windows. Most differences in available options are due to this -screenshot being from Windows, and the previous text screen being -from \GNU/Linux. +图~\ref{fig:gui-main} 展示了 Windows 下的的图形界面安装程序。图中 +选项的差别主要是因为这张图是从 Windows 下截取的,而上面的文本模式 +界面来自 \GNU/Linux。 \subsection{执行安装程序} \label{sec:runinstall} -The installer is intended to be mostly self-explanatory. Still, a few -quick notes about the various options and submenus: +安装程序应该不需要文档就足够明确。不过对这些选项和子菜单还需要点小说明。 \subsubsection{二进制系统菜单 (只对 Unix 适用)} \label{sec:binary} @@ -606,15 +593,13 @@ Available sets of binaries: o [ ] win32 Windows p [ ] x86_64-linux x86_64 with GNU/Linux \end{boxedverbatim} -\caption{Binaries menu}\label{fig:bin-text} +\caption{Binaries (二进制程序) 菜单}\label{fig:bin-text} \end{figure} -Figure~\ref{fig:bin-text} displays the text mode binaries menu. By -default, only the binaries for your current platform will be installed. -From this menu, you can select installation of binaries for other -architectures as well. This can be useful if you are sharing a \TeX\ -tree across a network of heterogenous machines, or for a dual-boot -system. +图~\ref{fig:bin-text} 展示了文本模式下的 binaries (二进制程序) +菜单。默认情况下只会安装你当前平台下的二进制程序。在这个菜单下, +你可以选择安装其他架构的二进制程序。这对你要将 \TeX\ 树共享在 +异构网络上的情况比较有用,又或者用于双启动的系统。 \subsubsection{选择要安装的组件} \label{sec:components} @@ -635,68 +620,62 @@ Select a scheme: i [ ] teTeX scheme j [ ] XML typesetting scheme \end{boxedverbatim} -\caption{Scheme menu}\label{fig:scheme-text} +\caption{Scheme (安装方案) 菜单}\label{fig:scheme-text} \end{figure} -Figure~\ref{fig:scheme-text} displays the \TL\ scheme menu; from here, -you choose a ``scheme'', which is an overall set of package collections. -The default \optname{full} scheme installs everything available, but you -can also choose the \optname{basic} scheme for a small system, -\optname{minimal} for testing purposes, and \optname{medium} or -\optname{teTeX} to get something in between. There are also various -specialized and country-specific schemes. +图~\ref{fig:scheme-text} 展示了 \TL\ 的安装方案菜单;从这里你选择的是 +一套``安装方案'',也就是对软件包集合的一个统一划分。默认的 \optname{full} +方案会把所有可用的都装上,不过你也可以给小点的系统选择 \optname{basic} 方 +案,为测试选用 \optname{minimal} 方案,又或者是 \optname{medium} 或 +\optname{teTeX} 来选择介乎其间的方案。还有许多特殊或者专门针对特定国家 +的方案。 \begin{figure}[tbh] \tlpng{stdcoll}{.7\linewidth} -\caption{Collections menu (Linux)}\label{fig:collections-gui} +\caption{Collections (集合) 菜单 (Linux)}\label{fig:collections-gui} \end{figure} -You can refine your scheme selection with the `standard collections' and -`language collections' menus (figure~\ref{fig:collections-gui}, shown in -\GUI\ mode for a change). +你可以使用 `standard collections' 与 `language collections' 菜单来详细 +选择安装方案。(图~\ref{fig:collections-gui} 显示了 \GUI 模式下修改的情 +况。) -Collections are one level more detailed than schemes\Dash in essence, a -scheme consists of several collections, a collection consists of one or -more packages, and a package (the lowest level grouping in \TL) contains -the actual \TeX\ macro files, font files, and so on. +Collection (安装集合) 是比 scheme (方案) 要更细的一层 \Dash 实际上一个 +方案包含了多个集合,而一个集合又包含了一到多个软件包,然后每个软件包 +(\TL 中最小的组织单位) 则包含了实际的 \TeX\ 宏文件,字体文件,等等。 -If you want more control than the collection menus provide, you can use -the \prog{tlmgr} program after installation (see -section~\ref{sec:tlmgr}); using that, you can control the installation -at the package level. +如果你觉得 collection 菜单对安装控制还不够细,可以在安装后使用 +\prog{tlmgr} 程序 (参见第~\ref{sec:tlmgr} 节),它能在软件包一层 +控制安装。 \subsubsection{目录} \label{sec:directories} -The default layout is described in section~\ref{sec:texmftrees}, -\p.\pageref{sec:texmftrees}. The default location of -\dirname{TEXDIR} is different between Windows -(|%PROGRAMFILES%\texlive\2008|) and Unix -(\dirname{/usr/local/texlive/2008}). +缺省的目录布局在第~\ref{sec:texmftrees} 节有过叙述,见第 +\pageref{sec:texmftrees} 页。默认的 \dirname{TEXDIR} 路径 +则是 Windows 下的 |%PROGRAMFILES%\texlive\2008| 和 Unix +下的 \dirname{/usr/local/texlive/2008}。 -The main reason to change this default is if you lack write permission -for the default location. You don't have to be root or adminstrator to -install \TL, but you do need write access to the target directory. +更改默认值的主要原因大概是你可能没有默认位置的写权限。虽然要安装 +\TL 不需要是管理员或者 root 用户,但你至少得对安装的目的目录有写 +权限。 -A logical alternate choice is a directory under your home directory, -especially if you will be the sole user. Use -`|~|' to indicate this, as in `|~/texlive/2008|'. +一个合理的选择是你自己主目录下的一个子目录,尤其在只有你一个人 +使用的时候。使用 `|~|' 来表示主目录,比如 `|~/texlive/2008|'。 -We recommend including the year in the name, to enable keeping different -releases of \TL{} side by side. (You may wish to make a -version-independent name such as \dirname{/usr/local/texlive-cur} via a -symbolic link, which you can then update after testing the new release.) +我们建议在目录名称中保留年份,这样可以让你保留多个不同版本的 +\TL{}。(你可能希望用一个类似 \dirname{/usr/local/texlive-cur} +这样的名字作为指向当前版本的符号链接,这样的目录名就和版本无 +关了,你只要在新版本出来直呼更新符号链接即可。) -Changing \dirname{TEXDIR} in the installer will also change -\dirname{TEXMFLOCAL}, \dirname{TEXMFSYSVAR} and -\dirname{TEXMFSYSCONFIG}. +在安装程序中修改 \dirname{TEXDIR} 之后还会同时修改 +\dirname{TEXMFLOCAL}, \dirname{TEXMFSYSVAR} 和 +\dirname{TEXMFSYSCONFIG}。 -\dirname{TEXMFHOME} is the recommended location for personal -macro files or packages. The default value is |~/texmf|. In -contrast to \dirname{TEXDIR}, here a |~| is preserved in the -newly-written configuration files, since it usefully refers to the home -directory of each individual running \TeX. It expands to -\dirname{$HOME} on Unix and \verb|%USERPROFILE%| on Windows. +\dirname{TEXMFHOME} 是推荐用来存放个人宏文件和软件包的目录。 +其缺省值是 |~/texmf|。与 \dirname{TEXDIR} 不同,其中包含的 +|~| 会被不加转换地写进配置文件,因为它能在 \TeX 系统运行时 +自动被替换为每个用户自己的主目录。在 Unix 它会被展开为 +\dirname{$HOME},而 Windows 下展开为 \verb|%USERPROFILE%|。 \subsubsection{选项} \label{sec:options} @@ -712,47 +691,40 @@ directory of each individual running \TeX. It expands to manpages to: info to: \end{boxedverbatim} -\caption{Options menu (Unix)}\label{fig:options-text} +\caption{Options 菜单 (Unix)}\label{fig:options-text} \end{figure} -Figure~\ref{fig:options-text} displays the text mode options menu. -Three of the options here need mentioning: +图~\ref{fig:options-text} 显示了文本模式的选项菜单。其中有 +三个选项值得一提: \begin{description} -\item[use letter size instead of A4 by default:] The usual default paper - size selection. Of course, individual documents can specify a specific - paper size, if desired. - -\item[create all format files:] Although unnecessary format files - take time to generate and disk space to store, it is still recommended - to leave this option checked: if you don't, then format files will be - generated in people's private \dirname{TEXMFVAR} tree as they are - needed. In that location, they will not be updated automatically if - (say) binaries or hyphenation patterns are updated in the - installation, and thus could end up with incompatible format files. - -\item[create symlinks in standard directories] (Unix only): - This option bypasses the need to change environment - variables. Without this option, \TL{} directories have to be added - to \envname{PATH}, \envname{MANPATH} and \envname{INFOPATH}. You will - need write permissions to the target directories. It is not - advisable to overwrite a \TeX\ system that came with your system - with this option. It is intended primarily for creating the links - in standard directories that are known to users, such as - \dirname{/usr/local/bin}, which don't already contain any - \TeX\ files. +\item[use letter size instead of A4 by default:] 常见的缺省纸张大小选择。 +当然如果需要,每份文档都可以单独设定一个纸张大小。 + +\item[create all format files:] 虽然创建不必要的格式文件会浪费一 +点时间,也会多占一些磁盘空间,但 +我们还是建议现在保持这个选项的选定状态,因为如果这次不生成,下次 +用到的时候格式文件就会在用户个人的 \dirname{TEXMFVAR} 目录树内生 +成。这样每次二进制文件或者断字模式更新的时候,这些格式文件也得不 +到更新,所以可能会导致它们的不兼容。 + +\item[create symlinks in standard directories] (只对 Unix 有效): +这个选项可以省下设定环境变量的步骤。如果没有选择它,就必须把 +\TL{} 的对应目录添加到 \envname{PATH}, \envname{MANPATH} 和 +\envname{INFOPATH} 中。如果要创建符号链接,你需要对这些目标 +目录的写权限。我们不建议你用这个命令来覆盖现有的 \TeX\ 系统, +它主要是为了在用户已知的标准目录中创建符号链接设计的,这些 +目录并不包含任何 \TeX\ 文件。 \end{description} -Now when all these settings are to your liking, you can type `I' to -start the installation process. When it is done, skip to -section~\ref{sec:postinstall} to read what else needs to be done, if -anything. +如果所有的设置已经齐备,你就可以按下 `I' 来开始安装了。安装完成后, +你可以跳至第 \ref{sec:postinstall} 节来了解还需要做些什么工作。 \subsubsection{设置从 DVD{} 运行 (只对文本模式适用)} \label{sec:fromdvd} -Type `|V|' to select this option. This changes the main menu into something -like figure~\ref{fig:main-fromdvd}. +按 `|V|' 来选择这个选项。它将主菜单改变为类似图~\ref{fig:main-fromdvd} +的界面。 \begin{figure}[tbh] \begin{boxedverbatim} ======================> TeX Live installation procedure <===================== @@ -784,42 +756,35 @@ Other actions: help quit \end{boxedverbatim} -\caption{The main menu with \optname{from DVD} - set}\label{fig:main-fromdvd} +\caption{启用 \optname{from DVD} 集合后的主菜单}\label{fig:main-fromdvd} \end{figure} -Note the changes: all options about what to install have -disappeared, and the directories section now talks about -\dirname{TEXDIRW} or writable root. The symlinks option has also -disappeared. +注意变化之处:所有关于安装内容的选项都消失了,而目录这部分 +的设置现在是根据 \dirname{TEXDIRW} (或者一个可写的根目录) +来设置的。创建符号链接的选项也没有了。 -The installer will still create various directories and -configuration files, but won't copy \dirname{texmf}, -\dirname{texmf-dist} or \dirname{texmf-doc} to hard disk. +这样安装程序仍然会创建一些目录和配置文件,但并不会把 \dirname{texmf}, +\dirname{texmf-dist} 或 \dirname{texmf-doc} 目录复制到本地硬盘上。 -Post-install configuration for Unix will be slightly more complicated, -because now the directory layout deviates from the default; see -section~\ref{sec:postinstall}. +Unix 系统下的安装后配置步骤要稍微复杂一些,因为这样目录布局就和缺 +省情况有所区别了,参见第 \ref{sec:postinstall} 节。 -Due to time constraints, this option didn't make it into the \GUI{} -installer, but it is available both for Unix and for -Windows. Windows users have to start the installer from a command -prompt, see section~\ref{sec:cmdline}. +因为时间限制,这个选项还来不及集成进入 \GUI{} 安装程序。不过它的确 +是同时支持 Unix 和 Windows 的。Windows 用户需要从命令行选项来启动 +这个安装程序,参见第 \ref{sec:cmdline} 节。 -Section \ref{sec:portable-unix} describes a more strictly portable -way to run \TL, which doesn't make or require changes in the -system's configuration, but doesn't allow any configuration either. +第 \ref{sec:portable-unix} 节描述了一套更具可移植性地运行 \TL{} +的方法,它不需要对系统配置做任何改动,但也做不了任何配置。 \subsection{命令行安装选项} \label{sec:cmdline} -Type +输入 \begin{alltt} > \Ucom{install-tl -help} \end{alltt} -for a listing of command-line options. Either |-| or |--| can be used -to introduce option names. These are the more -interesting ones: +可以列出所有的命令行参数。你既可以用 |-| 也可以用 |--| 来指定一个 +参数。这里有些比较有趣的: \begin{ttdescription} \item[-gui] If possible, use the \GUI{} installer. This requires the @@ -886,17 +851,16 @@ the entire download. \subsection{安装后的操作} \label{sec:postinstall} -Some post-install may be required. +安装后可能需要一些额外的操作。 \subsubsection{Windows} -But on Windows, the installer takes care of everything. +在 Windows 下安装程序会完成所有的操作。 \subsubsection{如果创建了符号链接} -If you elected to create symlinks in standard directories (mentioned in -section~\ref{sec:options}), then there is no need to edit environment -variables. +如果你选择了在标准路径下创建符号连接 (在第~\ref{sec:options} 节提到), +那就不需要设置环境变量了。 \subsubsection{Unix 下的环境变量} \label{sec:env} @@ -936,21 +900,20 @@ appropriate. \subsubsection{环境变量的全局配置} \label{sec:envglobal} -If you want to make these changes globally, or for a user newly added to -the system, then you are on your own; there is just too much variation -between systems in how and where these things are configured. +如果你希望在整个系统范围内修改这些变量,或这样系统新增的用户自动 +继承这些变量,就得自寻方法了,因为不同的系统之间这方面的配置差异 +太大。 -Our two hints are: 1)~you may want to check for a file -\filename{/etc/manpath.config} and, if present, add lines such as +我们的建议是: 1)~你可能应该看看 \filename{/etc/manpath.config} +这个文件是否存在,如果有的话,添加下面这样的内容: \begin{sverbatim} MANPATH_MAP /usr/local/texlive/2008/bin/i386-linux \ /usr/local/texlive/2008/texmf/doc/man \end{sverbatim} -And 2)~check for a file \filename{/etc/environment} which may define the -search path and other default environment variables. - +然后 2)~检查 \filename{/etc/environment} 是否定义了默认的搜索路径 +和其他的默认环境变量。 \subsubsection{如果从 DVD 运行} @@ -981,50 +944,42 @@ setenv TEXMFCNF /usr/local/texlive/2008/texmf-var/web2c \subsubsection{\ConTeXt{} Mark IV} -The `old' \ConTeXt{} should run out of the box. The new `Mark IV' -\ConTeXt{} will require manual setup; see -\url{http://wiki.contextgarden.net/Running_Mark_IV}. - +`老版'的 \ConTeXt{} 正常就应该能工作。新的 `Mark IV' \ConTeXt{} +则需要一些手动设置。参见 +\url{http://wiki.contextgarden.net/Running_Mark_IV}。 \subsubsection{集成本地与个人宏文件} \label{sec:local-personal-macros} -This is already mentioned implicitly in section~\ref{sec:texmftrees}: -\dirname{TEXMFLOCAL} (by default, -\dirname{/usr/local/texlive/texmf-local} or -\verb|C:\Program Files\texlive\texmf-local|) - -is intended for system-wide local fonts and macros; and -\dirname{TEXMFHOME} (by default, \dirname{$HOME/texmf} or -\verb|%USERPROFILE%\texmf|), is for personal fonts and macros. These -directories are intended to stick around from release to release, and -have their content seen automatically by a new \TL{} release. -Therefore, it is best to refrain from changing the definition of -\dirname{TEXMFLOCAL} to be too far away from the main \TL{} directory, -or you will need to manually change future releases. - -For both trees, files should be placed in their proper subdirectories; -see \url{http://tug.org/tds} or consult -\filename{texmf/web2c/texmf.cnf}. For instance, a \LaTeX{} class file or -package should be placed in \dirname{TEXMFLOCAL/tex/latex} or -\dirname{TEXMFHOME/tex/latex}, or a subdirectory thereof. - -\dirname{TEXMFLOCAL} requires an up-to-date filename database, or files -will not be found. You can update it with the command -\cmdname{mktexlsr} or use the `Reinit file database' button on the -configuration tab of \prog{tlmgr} in \GUI\ mode. +这在第~\ref{sec:texmftrees} 节已经顺带提到过了:\dirname{TEXMFLOCAL} +目录 (它的默认值是 \dirname{/usr/local/texlive/texmf-local} 或者 +\verb|C:\Program Files\texlive\texmf-local|) 这个目录就是为了存储 +面向整个系统的本地字体和宏文件的;而 \dirname{TEXMFHOME} 目录 (其 +默认值是 \dirname{$HOME/texmf} 或者 \verb|%USERPROFILE%\texmf|), +则是用来存储个人的字体和宏文件的。这些目录应该在各个 \TL{} +版本之间共享,每个版本都能看到其内容。因此不应该把 +\dirname{TEXMFLOCAL} 改得和主 \TL{} 目录差别太大,否则新的版本出来 +你又得再改。 + +对于这两个目录树而言,文件都应该放到合适的子目录中,参见 +\url{http://tug.org/tds} 或者 \filename{texmf/web2c/texmf.cnf} +文件。比如一个 \LaTeX{} 文档类或者宏包应该放在 +\dirname{TEXMFLOCAL/tex/latex} 或者 \dirname{TEXMFHOME/tex/latex} +目录下,要不然就是它们的一个子目录下。 + +\dirname{TEXMFLOCAL} 目录需要一个保持更新的文件名数据库,否则新增 +的文件就无法找到。你可以使用 \cmdname{mktexlsr} 命令或者 +\prog{tlmgr} \GUI\ 模式下,configuration 选项卡中的 +`Reinit file database' 按钮来刷新它。 \subsubsection{集成第三方字体} -This is unfortunately a very complicated and messy topic. Forget -about it unless you really know your way around blindfolded in a -\TeX{} installation. Don't forget to check first what you get for -free: see section~\ref{sec:tl-fonts}. - -A possible alternative is to use \XeTeX (see -section~\ref{sec:tex-extensions}), which lets you use operating system -fonts without any installation in \TeX. +不幸的是,这是一个非常复杂而混乱的主题。除非你对 \TeX{} 安装非常 +熟悉,否则请不要涉足这个领域。别忘了事先看看我们附带的字体,参见 +第 \ref{sec:tl-fonts} 节。 +\XeTeX 是一套可行的替代方案 (参见第 \ref{sec:tex-extensions} 节), +它能让你使用操作系统的字体而不必将它安装到 \TeX 中。 \subsection{测试安装是否成功} \label{sec:test-install} -- cgit v1.2.3