source: prologue/typography.xml@ 3bc662b

11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3bc662b was e9d9f83, checked in by Xi Ruoyao <xry111@…>, 21 months ago

typography: add a note about "Il1" or "O0" issue

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="pre-typography">
9 <?dbhtml filename="typography.html"?>
10
11 <title>Typography</title>
12
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>
17
18<screen role="nodump"><userinput>./configure --prefix=/usr</userinput></screen>
19
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>
23
24 <para>In some cases, a logical line is extended to two or more physical lines
25 with a backslash at the end of the line.</para>
26
27<screen role="nodump"><userinput>CC="gcc -B/usr/bin/" ../binutils-2.18/configure \
28 --prefix=/tools --disable-nls --disable-werror</userinput></screen>
29
30 <para>Note that the backslash must be followed by an immediate return. Other
31 whitespace characters like spaces or tab characters will create incorrect
32 results.</para>
33
34<screen><computeroutput>install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
35
36 <para>This form of text (fixed-width text) shows screen output, usually as
37 the result of commands issued. This format is also used to show filenames,
38 such as <filename>/etc/ld.so.conf</filename>.</para>
39
40 <note>
41 <para>Please configure your browser to display fixed-width text with
42 a good monospaced font, with which you can distinguish the glyphs of
43 <literal>Il1</literal> or <literal>O0</literal> clearly.</para>
44 </note>
45
46 <para><emphasis>Emphasis</emphasis></para>
47
48 <para>This form of text is used for several purposes in the book. Its main
49 purpose is to emphasize important points or items.</para>
50
51 <para><ulink url="&lfs-root;"/></para>
52
53 <para>This format is used for hyperlinks both within the LFS community and to
54 external pages. It includes HOWTOs, download locations, and websites.</para>
55
56<screen role="nodump"><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"
57<literal>root:x:0:
58bin:x:1:
59......</literal>
60EOF</userinput></screen>
61
62 <para>This format is used when creating configuration files. The first command
63 tells the system to create the file <filename>$LFS/etc/group</filename> from
64 whatever is typed on the following lines until the sequence End Of File (EOF)
65 is encountered. Therefore, this entire section is generally typed as
66 seen.</para>
67
68 <para><replaceable>&lt;REPLACED TEXT&gt;</replaceable></para>
69
70 <para>This format is used to encapsulate text that is not to be typed
71 as seen or for copy-and-paste operations.</para>
72
73 <para><replaceable>[OPTIONAL TEXT]</replaceable></para>
74
75 <para>This format is used to encapsulate text that is optional.</para>
76
77 <para><filename>passwd(5)</filename></para>
78
79 <para>This format is used to refer to a specific manual (man) page. The number inside parentheses
80 indicates a specific section inside the manuals. For example,
81 <command>passwd</command> has two man pages. Per LFS installation instructions,
82 those two man pages will be located at
83 <filename>/usr/share/man/man1/passwd.1</filename> and
84 <filename>/usr/share/man/man5/passwd.5</filename>. When the book uses <filename>passwd(5)</filename> it is
85 specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
86 <command>man passwd</command> will print the first man page it finds that
87 matches <quote>passwd</quote>, which will be
88 <filename>/usr/share/man/man1/passwd.1</filename>. For this example, you will
89 need to run <command>man 5 passwd</command> in order to read the page
90 being specified. Note that most man pages do not have duplicate
91 page names in different sections. Therefore, <command>man <replaceable>&lt;program
92 name&gt;</replaceable></command> is generally sufficient.</para>
93
94</sect1>
95
Note: See TracBrowser for help on using the repository browser.