source: prologue/typography.xml@ a1a7f4f

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next 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 a1a7f4f was a1a7f4f, checked in by Archaic <archaic@…>, 19 years ago

Brought (hopefully) all references of man/info pages into conformity. Updated typography to reflect this.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6376 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
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
10<para>To make things easier to follow, there are a few typographical
11conventions used throughout this book. This section contains some
12examples of the typographical format found throughout Linux From
13Scratch.</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
18otherwise noted in the surrounding text. It is also used in the
19explanation sections to identify which of the commands is being
20referenced.</para>
21
22<screen><computeroutput>install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
23
24<para>This form of text (fixed width text) shows screen output,
25probably as the result of commands issued. This format is also used
26to 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,
32mainly 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
37community and to external pages, including HOWTOs, download locations,
38and websites.</para>
39
40<screen><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"
41<literal>root:x:0:
42bin:x:1:
43......</literal>
44EOF</userinput></screen>
45
46<para>This format is used when creating configuration files. The first
47command tells the system to create the file
48<filename>$LFS/etc/group</filename> from whatever is typed on the
49following lines until the sequence end of file (EOF) is encountered.
50Therefore, 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
55as seen or copy-and-pasted.</para>
56
57<para><filename>passwd(5)</filename></para>
58
59<para>This format is used to refer to a specific manual page (hereinafter
60referred to simply as a <quote>man</quote> page). The number inside parentheses
61indicates a specific section inside of <command>man</command>. For example,
62<command>passwd</command> has two man pages. Per LFS installation instructions,
63those 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
66information in them. When the book uses <filename>passwd(5)</filename> it is
67specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
68<command>man passwd</command> will print the first man page it finds that
69matches <quote>passwd</quote>, which will be
70<filename>/usr/share/man/man1/passwd.1</filename>. For this example, you will
71need to run <command>man 5 passwd</command> in order to read the specific page
72being referred to. It should be noted that most man pages do not have duplicate
73page names in different sections. Therefore, <command>man <replaceable>[program
74name]</replaceable></command> is generally sufficient.</para>
75
76</sect1>
77
Note: See TracBrowser for help on using the repository browser.