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