fix problems with html output
[light-and-matter.git] / custom_html.yaml
blob7406643a0510969c613dc1ae34389e71bf776d01
1 ---
2 command:
3   myunit: {}
4   munit: {}
5   kgunit: {}
6   gunit: {}
7   sunit: {}
8   degcunit: {}
9   junit: {}
10   nunit: {}
11   kunit: {}
12   unitdot: {}
13   momunit: {}
14   btheta: {}
15   bomega: {}
16   balpha: {}
17   bsigma: {}
18   btau: {}
19   bell: {}
20   zu: {}
21   zb: {}
22 environment:
23   dialogline: {}
24   dq:
25     stick_in: ! '◊'
26   eg:
27     use_arg_as_title: true
28     stick_in_front_of_header: ! 'Example NNNEG: '
29     optionaltopic: ! 'Optional topic: '
30     n_req: 1
31     n_opt: 0
32   egnoheader: {}
33   enumerate:
34     surround_with_tag: ol
35     n_req: 0
36     n_opt: 0
37   exploring:
38     generate_header:
39     - 2
40     - Exploring further
41   exsection:
42     stick_in: <h2>Exercises</h2>
43   homework:
44     n_req: 3
45     n_opt: 0
46   hw:
47     n_req: 3
48     n_opt: 0
49   homeworkforcelabel:
50     n_req: 4
51     n_opt: 0
52   hwsection:
53     generate_header:
54     - 2
55     - Homework Problems
56   important:
57     use_arg_as_title: true
58   itemize:
59     surround_with_tag: ul
60     n_req: 0
61     n_opt: 0
62   lessimportant:
63     use_arg_as_title: true
64   listing:
65     surround_with_tag: pre
66     n_req: 1
67     n_opt: 0
68   notation:
69     generate_header:
70     - 2
71     - Notation
72   optionaltopic:
73     use_arg_as_title: 2
74   othernotation:
75     generate_header:
76     - 2
77     - Other Notation
78   reading: {}
79   selfcheck:
80     stick_in: <i>self-check:</i>
81     stick_at_end: (answer in the back of the PDF version of the book)
82   summary:
83     generate_header:
84     - 2
85     - Summary
86   summarytext:
87     generate_header:
88     - 2
89     - Summary
90   verbatim:
91     surround_with_tag: pre
92     n_req: 0
93     n_opt: 0
94   vocab:
95     generate_header:
96     - 2
97     - Vocabulary
98 boilerplate:
99   # The special-casing is to get adsense to work with xhtml, since document.write() doesn't work in xhtml. This is shown inside an <object> tag in the xhtml.
100   # In the xml case, I don't need to give an IE-compatible alternative to the object tag, since the xhtml version will never be shown to IE anyway.
101   google_ad_xhtml: |-
102         <!-- ============== ad =============== -->
103         <div id="ads">
104         <object data="http://www.lightandmatter.com/adsense_for_xhtml.html" type="text/html"  width="728" height="90">
105         </object>
106         </div>
107   # If I change the following, I also need to change it in http://www.lightandmatter.com/adsense_for_xhtml.html.
108   google_ad_html: |-
109           <!-- ============== ad =============== -->
110           <script type="text/javascript"><!--
111           google_ad_client = "pub-2202341256191765";
112           google_ad_width = 728;
113           google_ad_height = 90;
114           google_ad_format = "728x90_as";
115           google_ad_type = "text";
116           google_ad_channel ="";
117           google_color_border = "dddddd";
118           google_color_bg = "FFFFFF";
119           google_color_link = "444444";
120           google_color_text = "000000";
121           google_color_url = "000000";
122           //--></script>
124           <script type="text/javascript"
125                     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
126           </script>
127   disclaimer_wiki: |-
128     <p>This is the wiki version of #{$config["title"]}, by Benjamin Crowell.
129     This version may have some formatting problems.
130     For serious reading, you want the printer-friendly <a href="#{$config["url"]}">Adobe
131     Acrobat version</a>.</p>
132     <p>(c) 1998-2009 Benjamin Crowell, licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative
133     Commons Attribution-ShareAlike license</a>.
134     Photo credits are given at the end of the Adobe Acrobat version.</p>
135     </div>
136   disclaimer_html: |-
137     <div class="topstuff">
138     #{boilerplate("valid_icon",format)}
139     <p>You are viewing the html version of <b>#{$config["title"]}</b>, by
140     Benjamin Crowell. This version is only designed for casual browsing, and may have
141     some formatting problems.
142     For serious reading, you want the <a href="#{$config["url"]}">Adobe Acrobat
143     version</a>.</p>
144     <p><a href="..">Table of Contents</a></p>
145     </div>
146   copyright_footer_html: |-
147     <div class="topstuff">
148     <p>(c) 1998-2013 Benjamin Crowell, licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative
149     Commons Attribution-ShareAlike license</a>.
150     Photo credits are given at the end of the Adobe Acrobat version.</p>
151     </div>