📄 typography.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=gb2312" />
<title>
5. Typography
</title>
<link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
</head>
<body id="lfs" class="6.1">
<div class="navheader">
<div class="headertitles">
<h4>
Linux From Scratch - Version 6.1
</h4>
<h3>
序言
</h3>
</div>
<ul class="headerlinks">
<li class="prev">
<a accesskey="p" href="hostreqs.html" title="Host System Requirements">后退</a>
<p>
Host System Requirements
</p>
</li>
<li class="next">
<a accesskey="n" href="organization.html" title="Structure">前进</a>
<p>
Structure
</p>
</li>
<li class="up">
<a accesskey="u" href="preface.html" title="Preface">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
</li>
</ul>
</div>
<div class="sect1" lang="zh_cn" xml:lang="zh_cn">
<div class="titlepage">
<h1 class="sect1">
5. 排版约定
</h1>
</div>
<p>
一些排版约定在本书通篇使用,本节包含其中一些排版格式的例子。
</p>
<pre class="userinput"><kbd class="command">./configure --prefix=/usr</kbd></pre>
<p> 这种样式的文本表明您应该按照您所看到的内容完整无误的输入,除非旁边有另外的说明。这种样式也用在解释部分,来表明引用了哪些命令。
</p>
<pre class="screen"><tt class="computeroutput">install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'</tt></pre>
<p>
这种样式(固定宽度的文本)表明这些是屏幕上输出的内容,可能是命令运行的结果,也有可能用来显示文件名,例如:<tt class="filename">/etc/ld.so.conf</tt>
</p>
<p>
<span class="emphasis"><em>强调</em></span>
</p>
<p>
这种样式的文本在本书中有几种用途,但主要是用来强调重点。
</p>
<p>
<a href="http://www.linuxfromscratch.org/"><i>http://www.linuxfromscratch.org/</i></a>
</p>
<p>
这种样式用来显示超链接,不管链接的是 LFS 社区内部还是外部的页面,包括 HOWTO,下载链接和网站。
</p>
<pre class="userinput"><kbd class="command">cat > $LFS/etc/group << "EOF"
<tt class="literal">root:x:0:
bin:x:1:
......</tt>
EOF</kbd></pre>
<p>
创建配置文件的时候使用这种样式,第一个命令让系统创建 <tt class="filename">$LFS/etc/group</tt> 文件,内容是接下来输入的每一行直到文件结束符(EOF)出现为止。因此,一般就是照所看到的整段输入了。
</p>
<p>
<em class="replaceable"><tt>[REPLACED TEXT]</tt></em>
</p>
<p>
这种样式用来显示那些需要输入替代内容的文本或者是复制粘贴的内容。
</p>
<p>
<tt class="filename">passwd(5)</tt>
</p>
<p>
这种格式用来指向一个特定的“man”页(以下简称 “<span class="quote">man</span>”)。括号中的数字指定“<span class="quote">man</span>”中特定的章节。例如,<span><strong class="command">passwd</strong></span> 有两个 man 页,分别位于 <tt class="filename">/usr/share/man/man1/passwd.1</tt> 和 <tt class="filename">/usr/share/man/man5/passwd.5</tt> ,这两个手册页的内容并不相同。本书中使用 <tt class="filename">passwd(5)</tt> 指代 <tt class="filename">/usr/share/man/man5/passwd.5</tt> 。 <span><strong class="command">man passwd</strong></span> 将会显示第一个匹配“<span class="quote">passwd</span>”的man页,也就是 <tt class="filename">/usr/share/man/man1/passwd.1</tt> 。在这个例子中,你可能需要运行 <span><strong class="command">man 5 passwd</strong></span> 命令来指定你想要的man页。不过需要提醒一下的是大多数man页并不存在多个页面,也就是说<span><strong class="command">man <em class="replaceable"><tt>[program name]</tt></em></strong></span> 通常就足够了。
</p>
</div>
<div class="navfooter">
<ul>
<li class="prev">
<a accesskey="p" href="hostreqs.html" title="Host System Requirements">后退</a>
<p>
Host System Requirements
</p>
</li>
<li class="next">
<a accesskey="n" href="organization.html" title="Structure">前进</a>
<p>
Structure
</p>
</li>
<li class="up">
<a accesskey="u" href="preface.html" title="Preface">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
</li>
</ul>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -