[287ea55] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[287ea55] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[b330f4a] | 7 |
|
---|
[dc931cb] | 8 | <sect1 id="pre-typography">
|
---|
[b330f4a] | 9 | <?dbhtml filename="typography.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Typography</title>
|
---|
[287ea55] | 12 |
|
---|
[b330f4a] | 13 | <para>To make things easier to follow, there are a few typographical
|
---|
| 14 | conventions used throughout this book. This section contains some
|
---|
| 15 | examples of the typographical format found throughout Linux From
|
---|
| 16 | Scratch.</para>
|
---|
[81fd230] | 17 |
|
---|
[2c5e4d5] | 18 | <screen role="nodump"><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
[81fd230] | 19 |
|
---|
[b330f4a] | 20 | <para>This form of text is designed to be typed exactly as seen unless
|
---|
| 21 | otherwise noted in the surrounding text. It is also used in the explanation
|
---|
| 22 | sections to identify which of the commands is being referenced.</para>
|
---|
[81fd230] | 23 |
|
---|
| 24 | <screen><computeroutput>install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
|
---|
| 25 |
|
---|
[b330f4a] | 26 | <para>This form of text (fixed-width text) shows screen output, probably as
|
---|
| 27 | the result of commands issued. This format is also used to show filenames,
|
---|
| 28 | such as <filename>/etc/ld.so.conf</filename>.</para>
|
---|
[81fd230] | 29 |
|
---|
[b330f4a] | 30 | <para><emphasis>Emphasis</emphasis></para>
|
---|
[81fd230] | 31 |
|
---|
[b330f4a] | 32 | <para>This form of text is used for several purposes in the book. Its main
|
---|
| 33 | purpose is to emphasize important points or items.</para>
|
---|
[81fd230] | 34 |
|
---|
[b330f4a] | 35 | <para><ulink url="&lfs-root;"/></para>
|
---|
[81fd230] | 36 |
|
---|
[b330f4a] | 37 | <para>This format is used for hyperlinks both within the LFS community and to
|
---|
| 38 | external pages. It includes HOWTOs, download locations, and websites.</para>
|
---|
[81fd230] | 39 |
|
---|
[2c5e4d5] | 40 | <screen role="nodump"><userinput>cat > $LFS/etc/group << "EOF"
|
---|
[81fd230] | 41 | <literal>root:x:0:
|
---|
| 42 | bin:x:1:
|
---|
| 43 | ......</literal>
|
---|
| 44 | EOF</userinput></screen>
|
---|
| 45 |
|
---|
[b330f4a] | 46 | <para>This format is used when creating configuration files. The first command
|
---|
| 47 | tells the system to create the file <filename>$LFS/etc/group</filename> from
|
---|
| 48 | whatever is typed on the following lines until the sequence end of file (EOF)
|
---|
| 49 | is encountered. Therefore, this entire section is generally typed as
|
---|
| 50 | seen.</para>
|
---|
| 51 |
|
---|
[0090db5] | 52 | <para><replaceable><REPLACED TEXT></replaceable></para>
|
---|
[b330f4a] | 53 |
|
---|
| 54 | <para>This format is used to encapsulate text that is not to be typed
|
---|
[0090db5] | 55 | as seen or for copy-and-paste operations.</para>
|
---|
| 56 |
|
---|
| 57 | <para><replaceable>[OPTIONAL TEXT]</replaceable></para>
|
---|
| 58 |
|
---|
| 59 | <para>This format is used to encapsulate text that is optional.</para>
|
---|
[b330f4a] | 60 |
|
---|
| 61 | <para><filename>passwd(5)</filename></para>
|
---|
| 62 |
|
---|
| 63 | <para>This format is used to refer to a specific manual page (hereinafter
|
---|
| 64 | referred to simply as a <quote>man</quote> page). The number inside parentheses
|
---|
| 65 | indicates a specific section inside of <command>man</command>. For example,
|
---|
| 66 | <command>passwd</command> has two man pages. Per LFS installation instructions,
|
---|
| 67 | those two man pages will be located at
|
---|
| 68 | <filename>/usr/share/man/man1/passwd.1</filename> and
|
---|
| 69 | <filename>/usr/share/man/man5/passwd.5</filename>. Both man pages have different
|
---|
| 70 | information in them. When the book uses <filename>passwd(5)</filename> it is
|
---|
| 71 | specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
|
---|
| 72 | <command>man passwd</command> will print the first man page it finds that
|
---|
| 73 | matches <quote>passwd</quote>, which will be
|
---|
| 74 | <filename>/usr/share/man/man1/passwd.1</filename>. For this example, you will
|
---|
| 75 | need to run <command>man 5 passwd</command> in order to read the specific page
|
---|
| 76 | being referred to. It should be noted that most man pages do not have duplicate
|
---|
[0090db5] | 77 | page names in different sections. Therefore, <command>man <replaceable><program
|
---|
| 78 | name></replaceable></command> is generally sufficient.</para>
|
---|
[a1a7f4f] | 79 |
|
---|
[287ea55] | 80 | </sect1>
|
---|
[81fd230] | 81 |
|
---|