summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorJjgod Jiang <gzjjgod@gmail.com>2008-08-03 14:56:12 +0000
committerJjgod Jiang <gzjjgod@gmail.com>2008-08-03 14:56:12 +0000
commitf6140f2bdb414e3e26bd8e0e1f6243928e6f5f20 (patch)
tree461a99e3eb0a4a00a80d355ec6616ba43670b2d5 /Master
parentd5292c3378890f8149a181f71724487925572cd4 (diff)
Finish all remaining sections.
git-svn-id: svn://tug.org/texlive/trunk@10036 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-doc/source/texlive/texlive-zh-cn/texlive-zh-cn.tex145
1 files changed, 66 insertions, 79 deletions
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 048b9524ac2..e6a9ef39c20 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
@@ -787,24 +787,22 @@ Unix 系统下的安装后配置步骤要稍微复杂一些,因为这样目录
参数。这里有些比较有趣的:
\begin{ttdescription}
-\item[-gui] If possible, use the \GUI{} installer. This requires the
- Perl/Tk module (\url{http://tug.org/texlive/distro.html#perltk});
- if Perl/Tk is not available, installation continues in text mode.
-\item[-no-gui] Force using the text mode installer, even under
- Windows; you'll need this if you want a `from \DVD' installation,
- since that is not available in \GUI{} mode.
-\item[-lang {\sl LL}] Specify the installer interface
- language as its standard two-letter code \textsl{LL}. Currently
- supported languages: English (\texttt{en}, default), German
- (\texttt{de}), French (\texttt{fr}), Dutch (\texttt{nl}), Polish
- (\texttt{pl}), Slovenian (\texttt{sl}) and Vietnamese
- (\texttt{vi}). The installer tries to determine the right language
- itself but if it fails, or if the right language is not available,
- then it uses English as a fallback.
-\item[-profile {\sl profile}] The installer always writes a file
- \filename{texlive.profile} to the \dirname{2008/tlpkg}- or
- \dirname{tlpkg} subdirectory of your installation. This option tells
- the installer to re-use such a profile file. Here's an excerpt:
+\item[-gui] 尽可能用 \GUI{} 模式的安装程序。它需要安装了
+ Perl/Tk 模块 (\url{http://tug.org/texlive/distro.html#perltk});
+ 如果找不到 Perl/Tk,安装程序就会在文本模式下出现。
+\item[-no-gui] 强制使用文本模式安装程序,就算在 Windows 下也是如此。
+如果你需要 `from \DVD' 安装方式就需要用到这个选项,因为这个方式在
+\GUI{} 模式下没有提供。
+\item[-lang {\sl LL}] 指定安装程序界面的语言,使用两个字符的语言
+代码 \textsl{LL}。目前支持的语言有:英语 (\texttt{en}, 默认值),
+德语 (\texttt{de}), 法语 (\texttt{fr}), 荷兰语 (\texttt{nl}), 波兰语
+(\texttt{pl}), 斯洛文尼亚语 (\texttt{sl}) 和越南语 (\texttt{vi})。
+安装程序会尝试自己判断出合适的语言,如果判断出的语言没有支持就会
+使用英语替代。
+\item[-profile {\sl profile}] 安装程序会在 \dirname{2008/tlpkg}
+目录或者安装到的子目录 \dirname{tlpkg} 中创建一个叫
+\filename{texlive.profile} 的文件。这个选项可以让安装程序重用
+现成的这种文件。这里有个例子:
\begin{fverbatim}
# texlive.profile written on Wed Jul 9 16:13:44 2008 UTC
# It will NOT be updated and reflects only the
@@ -818,35 +816,31 @@ collection-basic 1
...
option_symlinks 0
\end{fverbatim}
- Thus, using this option you can install in batch mode on
- subsequent systems, reproducing the choices you made for the
- original installation.
-\item [-location {\sl url/path}] Specify a non-default source for
- packages; see below.
+这样一来,通过这个选项你就可以在后来的系统里进行批量安装了,可以
+保证选项和第一次安装的完全一样。
+\item [-location {\sl url/path}] 为软件包指定一个非官方的来源,参见下文。
\end{ttdescription}
\subsubsection{\optname{location} 参数}
\label{sec:location}
-The location value can be a url starting with \texttt{ftp:},
-\texttt{http:}, or \texttt{file:/} url, or a plain path. If the given
-argument is on a local drive (either a path or a \texttt{file:/} url),
-the installation type (compressed or live) is automatically determined:
-if an \dirname{archive} subdirectory with \filename{.tar.lzma} files is
-found then it will be used, even if uncompressed files are available as
-well.
-
-When giving an \texttt{http:} or \texttt{ftp:} location, trailing
-`\texttt{/}' characters and/or a trailing `\texttt{/tlpkg}' component
-are ignored. For example, you could choose a particular \CTAN\ mirror
-with something like:
-\url{http://ctan.example.org/tex-archive/texlive/tlnet/2008},
-substituting of course a proper hostname and its particular top-level
-\CTAN\ path (the list of \CTAN\ mirrors is maintained at
-\url{http://ctan.org/mirrors}) for |ctan.example.org/tex-archive|. The
-default is to pick a mirror automatically, using
-\url{http://mirror.ctan.org}; in any case, the chosen host is used for
-the entire download.
+location 值可以是一个以 \texttt{ftp:}, \texttt{http:}, 或
+\texttt{file:/} 起始的 URL,或者一个本地路径。如果给定的地
+址在本地磁盘上 (或者是路径或者是 \texttt{file:/} 开头的 URL),
+我们可以立即判断出安装的类型 (压缩的 CD 还是 live DVD):如果
+能找到一个叫 \dirname{archive} 子目录而且它下面都是
+\filename{.tar.lzma} 格式的压缩文件,那就会用它进行安装,就算
+没压缩的文件也存在。
+
+如果给定了一个 \texttt{http:} 或 \texttt{ftp:} 地址,其末尾的
+`\texttt{/}' 字符和末尾的 `\texttt{/tlpkg}' 这段都会被忽略。
+比如你可以选择这样的一个 \CTAN 镜像:
+\url{http://ctan.example.org/tex-archive/texlive/tlnet/2008},
+当然你应该把 |ctan.example.org/tex-archive| 替换为具体镜像的
+域名和特定的顶层 \CTAN 路径 (\url{http://ctan.org/mirrors})
+维护了一个 \CTAN 的镜像列表)。缺省值是使用 \url{http://mirror.ctan.org}
+来自动判断的。不管是什么情况,选定的镜像都会被用来下载所有的
+内容。
\subsection{安装后的操作}
\label{sec:postinstall}
@@ -865,18 +859,17 @@ the entire download.
\subsubsection{Unix 下的环境变量}
\label{sec:env}
-The directory of the binaries for your platform must be added to
-the search path. Each supported platform has its own subdirectory
-under \dirname{TEXDIR/bin}. See figure~\ref{fig:bin-text} for the
-list of subdirectories and corresponding platforms.
+你应该讲的自己使用的平台下二进制程序的目录加入搜索路径中。每个支
+持的平台都在 \dirname{TEXDIR/bin} 下有自己的子目录。参见图~\ref{fig:bin-text}
+以了解所有的这些子目录和它们对应的平台。
-You can also add the documentation man and Info directories to their
-respective search paths, if you want the system tools to find them.
+如果希望 man 和 info 能够找到,你还可以把文档的 man 和 Info 目录加
+入其对应的搜索路径中。
-For Bourne-compatible shells such as \prog{bash}, and using Intel x86
-GNU/Linux and a default directory setup as an example, the file to edit
-might be \filename{$HOME/.profile} (or another file sourced by
-\filename{.profile}, and the lines to add would look like this:
+对于 \prog{bash} 这样的 Bourne 兼容 shell 而言,以 Intel x86 下的
+GNU/Linux、默认的目录设置为例,需要修改的文件是 \filename{$HOME/.profile}
+(或者其他由 \filename{.profile} 载入的文件),应该添加的内容应该类似
+这样:
\begin{sverbatim}
PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH; export PATH
@@ -884,8 +877,8 @@ MANPATH=/usr/local/texlive/2008/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2008/texmf/doc/info:$INFOPATH; export INFOPATH
\end{sverbatim}
-For csh or tcsh, the file to edit is typically \filename{$HOME/.cshrc}, and
-the lines to add might look like:
+对于 csh 或者 tcsh,需要修改的文件通常是 \filename{$HOME/.cshrc},而
+应该添加的内容类似:
\begin{sverbatim}
setenv PATH /usr/local/texlive/2008/bin/i386-linux:$PATH
@@ -893,9 +886,8 @@ setenv MANPATH /usr/local/texlive/2008/texmf/doc/man:$MANPATH
setenv INFOPATH /usr/local/texlive/2008/texmf/doc/info:$INFOPATH
\end{sverbatim}
-Of course, you may well already have settings somewhere in your ``dot''
-files, and so then the \TL\ directories should simply be merged in as
-appropriate.
+当然,你可能已经在你的配置文件里写过了这样的路径设置,那就只需要
+把 \TL\ 的这些目录加进去就行了。
\subsubsection{环境变量的全局配置}
\label{sec:envglobal}
@@ -917,26 +909,22 @@ MANPATH_MAP /usr/local/texlive/2008/bin/i386-linux \
\subsubsection{如果从 DVD 运行}
-Normally, a \TL{} program consults a file \filename{texmf.cnf} for the
-location of the various trees. It looks for this file in a series of
-locations relative to its own location. However, this scheme breaks down
-when a program is run from \DVD{}: the \DVD{} is read-only. Some of the
-paths to be recorded in \filename{texmf.cnf} are only known at
-installation time, so this file cannot be on the \DVD{} and must be
-placed somewhere else. This makes it necessary to define an environment
-\envname{TEXMFCNF} variable which tells \TL{} programs in what directory
-to find this \filename{texmf.cnf}. It is also still necessary to modify
-the \envname{PATH} environment variable, as described before.
-
-At the end of the installation, the installer should have printed a
-message giving the value to which \envname{TEXMFCNF} should be set. In
-case you missed it: this value is \dirname{$TEXMFSYSVAR/web2c}. For the
-default, \dirname{/usr/local/texlive/2008/texmf-var/web2c}, you need the
-lines
+通常来说 \TL{} 程序都会寻找一个叫做 \filename{texmf.cnf} 的文件
+来获知所有的 \TeX 树位置。它会在一系列和其本身位置相关的地方寻
+找这个文件。不过如果直接在 \DVD 上运行,这套规则就不适用了:因为
+\DVD{} 是只读的,而某些路径只能在安装时确定下来并写入这个文件,
+所以这个文件没法放在 \DVD{} 上,只能另置一处。所以可能会需要定义
+\envname{TEXMFCNF} 来告知 \TL{} 程序该从哪儿找到这个 \filename{texmf.cnf}
+文件。当然,如前所述 \envname{} 环境变量还是要改的。
+
+在安装结束时,安装程序会输出一段告诉你如何设置 \envname{TEXMFCNF}
+的信息,如果你忽略了话,它应该是 \dirname{$TEXMFSYSVAR/web2c},默认
+情况下就是 \dirname{/usr/local/texlive/2008/texmf-var/web2c},你需要
+在 bash 下使用:
\begin{sverbatim}
TEXMFCNF=/usr/local/texlive/2008/texmf-var/web2c; export TEXMFCNF
\end{sverbatim}
-or, for [t]csh:
+或者 [t]csh 下使用:
\begin{sverbatim}
setenv TEXMFCNF /usr/local/texlive/2008/texmf-var/web2c
\end{sverbatim}
@@ -1084,11 +1072,10 @@ TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local
同理,你也可以先把 \TL{} 安装在本地,然后再把整个安装目录转移到网络上。
-当然,Windows 用户会有不同的期望。
-\dirname{texmf-doc/source/texlive/texlive-common/w32client} 目录
-包含了一个样例脚本 \filename{install-w32client},
-它可以为局域网上的 \TL{} 安装产生配置文件和菜单快捷方式。
-它可以通过在相同目录的 \filename{install-w32client.bat} 调用。
+当然,Windows 用户会有不同的期望。\dirname{texmf-doc/source/texlive/texlive-common/w32client}
+目录包含了一个样例脚本 \filename{install-w32client},它可以为局域网上的
+\TL{} 安装产生配置文件和菜单快捷方式。它可以通过在相同目录的
+\filename{install-w32client.bat} 调用。
你可以在第~\ref{sec:kpathsea}~节中了解更多有关 \TL{} 配置和
路径搜索的内容。