Debian Codegraph @

tutorial/hints_headings.html

raw symbols SCIP
1
2 <HTML>
3 <!--
4 ***********************************************************************
5 FUNNELWEB MANUAL WEB PAGE
6 =========================
7 Copyright (c) Ross N. Williams 1992,1999. All rights reserved.
8
9 Permission is granted to redistribute and use this manual in
10 any medium, with or without modification, provided that all
11 notices (including, without limitation, the copyright
12 notice, this permission notice, any record of modification,
13 and all legal notices) are preserved on all copies, that all
14 modifications are clearly marked, and that modified versions
15 are not represented as the original version unless all the
16 modifications since the manual's original release by Ross N.
17 Williams (www.ross.net) consist of translations or other
18 transformations that alter only the manual's form, not its
19 content. THIS MANUAL IS PROVIDED "AS IS" AND WITHOUT ANY
20 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
21 LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
22 FITNESS FOR A PARTICULAR PURPOSE. TO THE EXTENT PERMITTED BY
23 LAW THERE IS ABSOLUTELY NO WARRANTY.
24
25 ***********************************************************************
26 -->
27
28 <HEAD>
29 <TITLE>5.6 Changing the Strength of Headings</TITLE>
30 <STYLE TYPE="text/css"> <!-- A {text-decoration: none} // --> </STYLE>
31 </HEAD>
32 <BODY BACKGROUND="binary/background.gif"
33 BGCOLOR="#FFFFFF"
34 TEXT="#000000"
35 VLINK="#660000"
36 LINK="#FF0000"
37 ALINK="#CC0000">
38
39 <TABLE WIDTH="490">
40 <TR>
41 <TD WIDTH="130" VALIGN="top">
42 <IMG SRC="binary/d_clear.gif" ALT="" WIDTH="130" HEIGHT="1"><BR>
43
44 <FONT SIZE="2">
45 <BR>
46
47 <A HREF="http://www.ross.net/"
48 TARGET="rosshome"
49 onClick="window.open('','rosshome','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
50 >
51 <IMG SRC="binary/rossnet_logo.gif"
52 WIDTH="64" HEIGHT="32"
53 BORDER="0" ALT="RossNet"
54 HSPACE="0" VSPACE="1"></A><BR>
55 <BR>
56
57 <A HREF="../index.shtml"
58 TARGET="funnelweb"
59 onClick="window.open('','funnelweb','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
60 >
61 <IMG SRC="binary/linklogo.gif"
62 WIDTH="64" HEIGHT="32"
63 BORDER="0" ALT="FunnelWeb"
64 HSPACE="0" VSPACE="1"></A><BR>
65 <BR>
66 <TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD BGCOLOR="#000000">
67 <A HREF="../reference/index.html"
68 TARGET="funnelwebreference"
69 onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
70 ><FONT COLOR="#FFFFFF"><B>Reference</B></FONT></A><BR>
71 <BR>
72 <A HREF="../developer/index.html"
73 TARGET="funnelwebdeveloper"
74 onClick="window.open('','funnelwebdeveloper','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
75 ><FONT COLOR="#FFFFFF"><B>Developer</B></FONT></A><BR>
76 <BR>
77 <A HREF="index.html"><FONT COLOR="#FFFFFF"><B>Tutorial</B></FONT></A><BR>
78 <A HREF="intro.html"><FONT COLOR="#FFFFFF">1 Introduction</FONT></A><BR>
79 <A HREF="macro.html"><FONT COLOR="#FFFFFF">2 Macros</FONT></A><BR>
80 <A HREF="type.html"><FONT COLOR="#FFFFFF">3 Typesetting</FONT></A><BR>
81 <A HREF="example.html"><FONT COLOR="#FFFFFF">4 Example</FONT></A><BR>
82 <A HREF="hints.html"><FONT COLOR="#FFFFFF">5 Hints</FONT></A><BR>
83 <A HREF="examples.html"><FONT COLOR="#FFFFFF">6 Examples</FONT></A><BR>
84 <A HREF="web.html"><FONT COLOR="#FFFFFF">7 Webmaking</FONT></A><BR>
85
86 <BR>
87 <A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR>
88 </FONT>
89 </TD></TR></TABLE>
90
91
92 </TD>
93 <TD WIDTH="360" VALIGN="top">
94 <FONT SIZE="3">
95
96
97 <A HREF="../reference/index.html"><IMG SRC="binary/title.gif"
98 WIDTH="302" HEIGHT="24"
99 BORDER="0" ALT="FunnelWeb Tutorial Manual"
100 HSPACE="0" VSPACE="0"></A>
101 <P><FONT SIZE="5">5.6 Changing the Strength of Headings</FONT><BR>
102
103
104
105
106 <P>FunnelWeb provides five heading levels: <SAMP>@A</SAMP>,
107 <SAMP>@B</SAMP>, <SAMP>@C</SAMP>, <SAMP>@D</SAMP>, and
108 <SAMP>@E</SAMP> to which it binds five different typographical
109 strengths. These bindings are static; a level <SAMP>@A</SAMP>
110 heading will always be typeset in a particular font size
111 regardless of the size of the document. The font sizes have
112 been preset to be "reasonable" for a range of
113 document sizes, but may be inappropriate for very small or
114 large documents.
115
116 <P>FunnelWeb does not currently provide an
117 "official" way (e.g. a pragma) to change the
118 typesetting strength of headings. This feature might be
119 added in later versions. Meanwhile, a hack is available that
120 will do the job, providing that you do not mind the hack
121 being TeX-specific and probably FunnelWeb-version specific.
122
123 <P>Inside the set of TeX macro definitions that FunnelWeb
124 writes at the top of every documentation file are five
125 "library" definitions
126 <SAMP>fwliba</SAMP>...<SAMP>fwlibe</SAMP> which provide five
127 different typesetting strengths for headings. Near the end
128 of the set of definitions, FunnelWeb binds these macros to
129 five other macros <SAMP>fwseca</SAMP>...<SAMP>fwsece</SAMP>
130 which are invoked directly in the generated TeX code to
131 typeset the headings.
132
133 <P>
134 <PRE>
135 \def\fwseca#1#2{\fwliba{#1@,#2}}
136 \def\fwsecb#1#2{\fwlibb{#1@,#2}}
137 \def\fwsecc#1#2{\fwlibc{#1@,#2}}
138 \def\fwsecd#1#2{\fwlibd{#1@,#2}}
139 \def\fwsece#1#2{\fwlibe{#1@,#2}}
140 </PRE>
141
142 <P>This means that the typesetting strength of the
143 headings in a FunnelWeb document can be changed by
144 redefining these macros at the top of a FunnelWeb document.
145 For example:
146
147 <P>
148 <PRE>
149 @p typesetter = tex
150 \def\fwseca#1#2{\fwlibc{#1@,#2}}
151 </PRE>
152
153 <P>would set <SAMP>@A</SAMP> headings at the same strength
154 as the default strength of <SAMP>@C</SAMP> headings. The
155 <SAMP>typesetter</SAMP> directive is necessary to ensure that
156 the TeX control sequences get through to the documentation
157 file unfiltered.
158
159 <P>The following will tone down all headings by two levels
160 (with the <SAMP>@D</SAMP> and <SAMP>@E</SAMP> levels being
161 allocated the default <SAMP>@E</SAMP> typesetting strength
162 because there is nothing weaker).
163
164 <P>
165 <PRE>
166 @p typesetter = tex
167 \def\fwseca#1#2{\fwlibc{#1@,#2}}
168 \def\fwsecb#1#2{\fwlibd{#1@,#2}}
169 \def\fwsecc#1#2{\fwlibe{#1@,#2}}
170 \def\fwsecd#1#2{\fwlibe{#1@,#2}}
171 \def\fwsece#1#2{\fwlibe{#1@,#2}}
172 </PRE>
173
174 <P>These definitions affect only the headings that follow
175 them, and so they should be placed at the top of the
176 FunnelWeb input file.
177
178 <P>To change the style of headings in HTML output, just
179 modify the style settings near the top of the HTML file.
180
181
182 <P>
183 <TABLE WIDTH="100%">
184 <TR>
185 <TD ALIGN="left" VALIGN="bottom"><A HREF="hints_conditionals.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD>
186 <TD ALIGN="center" VALIGN="bottom"><A HREF="hints.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD>
187 <TD ALIGN="right" VALIGN="bottom"><A HREF="hints_efficiency.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD>
188 </TR>
189 </TABLE>
190
191
192
193 <HR>
194 <FONT SIZE="2">
195 <A HREF="mailto:[email protected]">Webmaster</A>&nbsp;&nbsp;&nbsp;
196 <A HREF="copyright.html">Copyright &copy; Ross N. Williams 1992,1999. All rights reserved.</A><BR>
197 </FONT>
198
199 </FONT>
200 </TD>
201 </TR>
202 </TABLE>
203
204
205 </BODY>
206
207 <!-- *********************************************************************** -->
208 <!-- End Of A FunnelWeb Manual Web Page (www.ross.net/funnelweb/) -->
209 <!-- *********************************************************************** -->
210
211 </HTML>