added LaTeXMathML files
[lambda.git] / LaTeXMathML.standardarticle.css
1 /* Standard Article Style for use with LaTeXMathML */\r
2 /* Jeff Knisley (knisleyj@etsu.edu)\r
3 /* Supported in part by the Howard Hughes Medical Institute */\r
4 /* as part of the Symbiosis Project: HHMI #52005872\r
5 \r
6 /* Modification of a style from Arun Ram */\r
7 /* Department of Mathematics */\r
8 /* University of Wisconsin, Madison */ \r
9 /* Madison, WI 53706 USA */\r
10 /* This is the style information from the mathml template at */\r
11 /* http://www.math.wisc.edu/~ram/MathGlossary/template.xml */\r
12 /*\r
13 /* See http://www.math.wisc.edu/~ram/MathGlossary/mathmlguide.xml for details */\r
14 /* */\r
15 /* Dr. Arun Ram's work was supported in part by the National Science Foundation under Grant No. 0353038. \r
16 \r
17 /* Internet Explorer does not support before/after tags.  If it ever does, then the original \r
18    LaTeXMathML.js script will have to be modified by removing all "if" structures that begin as \r
19        if(isIE) { //remove if IE supports :before and :after\r
20 */\r
21 \r
22 /* To transform to CSS counters, do the following: (note: this is for section.item numbering); \r
23     1. Change all span.xxx to display: none \r
24     2. Add style to body to reset section counter: For example: \r
25          body {    counter-reset: section 0  appendixsection 0}\r
26 \r
27     3. Add the following style to reset counters after every section change\r
28          a.section { counter-reset: eqn 0 figure 0 subsection 0 subsubsection 0 definition 0 \r
29                                     proposition 0 lemma 0 theorem 0 corollary 0 example 0 exercise 0 ;  \r
30          } \r
31          a.appendixsection { counter-reset: eqn 0 figure 0 subsection 0 subsubsection 0 definition 0 \r
32                                     proposition 0 lemma 0 theorem 0 corollary 0 example 0 exercise 0 ;  \r
33          } \r
34 \r
35     4. For all numbered LaTeX items, set the a.xxx:before to content: counter(section) "."  counter(item) \r
36        and also, add    counter-increment: item 1 \r
37        \r
38        For example: (Internet Explorer does nto support :before and :after pseudotags -- or counters!)\r
39        \r
40          a.subsection:before {\r
41              content: counter(section) ". " counter(subsection);\r
42              counter-increment: subsection 1;  \r
43          } \r
44          \r
45     5. For \ref cross-references, add the line (note: no browser currently supports this!)\r
46        \r
47          a.ref:before{ content: target-text(attr(href),before) }\r
48 \r
49        For \cite cross-references, add the line (note: no browser currently supports this!)\r
50        \r
51          a.cite:before{ content: target-text(attr(href),before) }\r
52 \r
53 Note: Alternatively, just uncomment all the commented items below! This will produce \r
54    nice results in Firefox and Other CSS2 compliant browsers, but cross-references will not be related\r
55    to CSS counters until CSS 3 is supported\r
56 \r
57 */    \r
58 \r
59 \r
60 /* body {\r
61     counter-reset: section 0 enumerate 0 bibitem 0; \r
62 } */\r
63 \r
64 \r
65 LaTeX {/* Marks Containers with LaTeX code to be parsed */  \r
66 }\r
67 \r
68 div.title {\r
69     text-align:center;\r
70     font-style: normal; \r
71     font-weight: bold; \r
72     font-size: 150%;\r
73 }\r
74 \r
75 div.author {\r
76     text-align:center;\r
77     font-style: normal; \r
78     font-size: 130%;     \r
79 }\r
80 \r
81 div.address {\r
82     text-align:center;\r
83     font-style:normal; \r
84 }\r
85 \r
86 div.date {\r
87     text-align:center;\r
88     font-style: normal; \r
89 }\r
90 \r
91 div.abstract {\r
92     font-style: normal;\r
93     margin-left: 5%;\r
94     margin-right: 5%;\r
95     padding-bottom: 10px;\r
96     padding-top: 10px;\r
97 }\r
98 \r
99 div.abstract:before {\r
100     font-style: normal;\r
101     font-weight: bold;\r
102     font-size: 105%; \r
103     content: "Abstract:";     \r
104\r
105 \r
106 div.keyword {\r
107     font-style: normal;\r
108     margin-left: 5%;\r
109     margin-right: 5%;\r
110     padding-bottom: 10px;\r
111     padding-top: 10px;\r
112 }\r
113 \r
114 div.keyword:before {\r
115     font-style: normal;\r
116     font-weight: bold;\r
117     font-size: 105%; \r
118     content: "Keywords:";     \r
119\r
120 \r
121 .centered {\r
122    text-align:center;\r
123    margin-left:auto; \r
124    margin-right:auto;\r
125 }\r
126 \r
127 h2.section {\r
128    margin-bottom:0.25em;\r
129    margin-top:1em;\r
130 }\r
131 \r
132 h3.subsection {\r
133    margin-bottom:0.25em;\r
134    margin-top:0.75em;\r
135 }\r
136 \r
137 h4.subsubsection {\r
138    margin-bottom:0.25em;\r
139    margin-top:0.5em;\r
140 }\r
141 \r
142 div.enumerate {\r
143 }\r
144 \r
145 div.itemize {\r
146 }\r
147 \r
148 /* vertical spacing */\r
149 \r
150 p.LaTeXMathML {\r
151         font-size: 0.25em;\r
152 }\r
153 \r
154 p.smallskip {  \r
155    font-size: 1.5em;\r
156 }\r
157 \r
158 p.medskip {\r
159     font-size: 3em;\r
160 }\r
161 \r
162 p.bigskip {\r
163     font-size: 4.5em;\r
164 }\r
165 \r
166 \r
167 /* Font-face LaTeX spans */\r
168 \r
169 span.textbf {\r
170    font-weight:bold;\r
171 }\r
172 \r
173 span.textit {\r
174    font-style:italic;\r
175 }\r
176 \r
177 span.emph {\r
178    font-style:italic;\r
179    font-weight:bolder;\r
180 }\r
181 \r
182 span.textsc {\r
183    font-variant:small-caps\r
184 }\r
185 \r
186 span.textsl {\r
187    font-style:oblique;\r
188 }\r
189 \r
190 span.textsf {\r
191    font-family:sans-serif, Arial, Helvetica;\r
192 }\r
193 \r
194 span.texttt {\r
195         font-family:monospace,"Courier New", Courier;\r
196 }\r
197 \r
198 span.tiny {\r
199         font-size:xx-small;\r
200 }\r
201 \r
202 span.scriptsize{\r
203         font-size:x-small;\r
204 }\r
205 \r
206 span.footnotesize {\r
207         font-size:small;\r
208 }\r
209 \r
210 span.small {\r
211         font-size:small;\r
212 }\r
213 \r
214 span.normalsize {\r
215         font-size:medium;\r
216 }\r
217 \r
218 \r
219 span.Large {\r
220         font-size:x-large;\r
221 }\r
222 \r
223 span.LARGE {\r
224         font-size:xx-large;\r
225 }\r
226 \r
227 span.large {\r
228         font-size:large;\r
229 }\r
230 \r
231 span.huge {\r
232         font-size:x-large;\r
233         font-weight:bolder;\r
234 }\r
235 \r
236 span.HUGE {\r
237         font-size:xx-large;\r
238         font-weight:bolder;\r
239 }\r
240 \r
241 \r
242 /* sections */\r
243 \r
244 span.section { font-style: normal; /* display: none */ }\r
245 \r
246 /* a.section { counter-reset: eqn 0 figure 0 subsection 0 subsubsection 0 definition 0 \r
247                            proposition 0 lemma 0 theorem 0 corollary 0 example 0 exercise 0 ;  \r
248\r
249 \r
250 a.appendixsection { counter-reset: eqn 0 figure 0 subsection 0 subsubsection 0 definition 0 \r
251                            proposition 0 lemma 0 theorem 0 corollary 0 example 0 exercise 0 ;\r
252 }\r
253 */\r
254 \r
255 \r
256 /* subsections */\r
257 \r
258 span.subsection { font-style: normal; /* display: none */ }\r
259 \r
260 /* a.subsection {\r
261     counter-reset: subsubsection 0;\r
262 }\r
263 \r
264 a.subsection:before {\r
265     content: counter(section) ". " counter(subsection);\r
266     counter-increment: subsection;  \r
267\r
268 */\r
269 \r
270 /* subsubsections */\r
271 span.subsubsection{ font-style: normal; /* display: none */ }\r
272 \r
273 /* a.subsubsection:before {\r
274     content: counter(section) ". " counter(subsection);\r
275     counter-increment: subsection;  \r
276\r
277 */\r
278 \r
279 /* figures */\r
280 table.figure {\r
281    width:100%;\r
282 }\r
283    \r
284 td.caption {\r
285    text-align:center;\r
286 }\r
287 \r
288 /* td.caption:before {\r
289    content: "Figure";\r
290    font-style: normal; \r
291    font-weight: bold \r
292 }\r
293 */\r
294 \r
295 td.image {\r
296    text-align:center;\r
297 }\r
298 \r
299 span.figure {  font-weight: bold; /* display: none */ }\r
300 \r
301 /*a.figure:before {\r
302    content: counter(section) "." counter(figure);\r
303    counter-increment: figure;  \r
304    font-style: normal; \r
305    font-weight: bold;\r
306 }\r
307 \r
308 a.figure:after { content: "." }\r
309 */\r
310 \r
311 /* LaTeXtable  configuration */\r
312 \r
313 table.LaTeXtable {\r
314 \r
315 }\r
316 \r
317 table.LaTeXtable tbody {\r
318    text-align:center;\r
319    margin-left:auto; \r
320    margin-right:auto;\r
321 }\r
322 \r
323 \r
324 /* table.LaTeXtable td.caption:before {\r
325    content: "Table ";\r
326    font-style: normal; \r
327    font-weight: bold \r
328 }\r
329 */\r
330 \r
331 /*table.LaTeXtable td.tabular table.tabular {\r
332    text-align:center;   \r
333 } */\r
334 \r
335 span.LaTeXtable {  font-weight: bold; /* display: none */ }\r
336 \r
337 /*a.LaTeXtable:before {\r
338    content: counter(section) "." counter(LaTeXtable);\r
339    counter-increment: LaTeXtable;  \r
340    font-style: normal; \r
341    font-weight: bold;\r
342 }\r
343 \r
344 a.LaTeXtable:after { content: "." }\r
345 */\r
346 \r
347 /* Inline equation */\r
348 \r
349 span.inlinemath {\r
350          \r
351 }\r
352 \r
353 /* equation -- numbering in script to accomodate IE */\r
354 table.displayequation {\r
355    width:100%;\r
356    }\r
357    \r
358 td.eq {\r
359    text-align:center;\r
360 }\r
361 \r
362 td.eqno {\r
363     width: 10px;\r
364     text-align:right;\r
365 }\r
366 \r
367 span.eqno {  font-style: normal; /* display: none */ }\r
368 \r
369 /* td.eqno:before { content: "(" }\r
370 \r
371 a.eqno:before {\r
372    content: counter(section) "." counter(equation);\r
373    counter-increment: equation;  \r
374    font-style: normal; \r
375 }\r
376 \r
377 a.eqno:after { content: ")" }\r
378 */\r
379 \r
380 /* definition style, including number */\r
381 span.definition { \r
382    font-weight: bold; \r
383    font-style: normal;\r
384    /* display: none */ \r
385 }\r
386 \r
387 /* div.definition:before { \r
388     content: "Definition"; \r
389     font-style: normal; \r
390     font-weight: bold \r
391 }\r
392 \r
393 a.definition:before {\r
394     content: counter(section) "." counter(definition); \r
395     counter-increment: definition 1;\r
396     font-style: normal; \r
397     font-weight: bold; \r
398 }\r
399 \r
400 a.definition:after { content: "." }\r
401 */\r
402 \r
403 div.definition{ font-style:italic }\r
404 \r
405 /* proposition style, including number */\r
406 span.proposition {  \r
407    font-weight: bold; \r
408    font-style: normal;\r
409    /* display: none */ \r
410 }\r
411 \r
412 /* div.proposition:before { \r
413     content: "Proposition"; \r
414     font-style: normal; \r
415     font-weight: bold \r
416 }\r
417 \r
418 a.proposition:before {\r
419     content: counter(section) "." counter(proposition); \r
420     counter-increment: proposition 1;\r
421     font-style: normal; \r
422     font-weight: bold; \r
423 }\r
424 \r
425 a.proposition:after { content: "." }\r
426 */\r
427 \r
428 div.proposition{ font-style:italic }\r
429 \r
430 /* lemma style, including number */\r
431 span.lemma {  \r
432    font-weight: bold; \r
433    font-style: normal;\r
434    /* display: none */ \r
435 }\r
436 \r
437 /* div.lemma:before { \r
438     content: "Lemma"; \r
439     font-style: normal; \r
440     font-weight: bold \r
441 }\r
442 \r
443 a.lemma:before {\r
444     content: counter(section) "." counter(lemma); \r
445     counter-increment: lemma 1;\r
446     font-style: normal; \r
447     font-weight: bold; \r
448 }\r
449 \r
450 a.lemma:after { content: "." }\r
451 */ \r
452 \r
453 div.lemma{ font-style:italic }\r
454 \r
455 /* theorem style, including number */\r
456 span.theorem { \r
457    font-weight: bold; \r
458    font-style: normal;\r
459    /* display: none */ \r
460 }\r
461 \r
462 /* div.theorem:before { \r
463     content: "Theorem"; \r
464     font-style: normal; \r
465     font-weight: bold \r
466 }\r
467 \r
468 a.theorem:before {\r
469     content: counter(section) "." counter(theorem); \r
470     counter-increment: theorem 1;\r
471     font-style: normal; \r
472     font-weight: bold; \r
473 }\r
474 \r
475 a.theorem:after { content: "." }\r
476 */\r
477 \r
478 div.theorem{ font-style:italic }\r
479 \r
480 /* corollary style, including number */\r
481 span.corollary { \r
482    font-weight: bold; \r
483    font-style: normal;\r
484    /* display: none */ \r
485 }\r
486 \r
487 /* div.corollary:before { \r
488     content: "Corollary"; \r
489     font-style: normal; \r
490     font-weight: bold \r
491 }\r
492 \r
493 a.corollary:before {\r
494     content: counter(section) "." counter(corollary); \r
495     counter-increment: corollary 1;\r
496     font-style: normal; \r
497     font-weight: bold; \r
498 }\r
499 \r
500 a.corollary:after { content: "." }\r
501 */ \r
502 \r
503 div.corollary{ font-style:italic }\r
504 \r
505 /* example style, including number */\r
506 span.example { \r
507    font-weight: bold; \r
508    font-style: normal;\r
509    /* display: none */ \r
510 }\r
511 \r
512 /* div.example:before { \r
513     content: "Example"; \r
514     font-style: normal; \r
515     font-weight: bold \r
516 }\r
517 \r
518 a.example:before {\r
519     content: counter(section) "." counter(example); \r
520     counter-increment: example 1;\r
521     font-style: normal; \r
522     font-weight: bold; \r
523 }\r
524 \r
525 a.example:after { content: "." }\r
526 */ \r
527 \r
528 div.example {\r
529     font-style: normal;\r
530     margin-left: 5%;\r
531     margin-right: 5%;\r
532     padding-bottom: 10px;\r
533     padding-top: 10px;\r
534 }\r
535 \r
536 /* exercise style, including number */\r
537 span.exercise {  \r
538    font-weight: bold; \r
539    font-style: normal;\r
540    /* display: none */ \r
541 }\r
542 \r
543 /* div.exercise:before { \r
544     content: "Exercise"; \r
545     font-style: normal; \r
546     font-weight: bold \r
547 }\r
548 \r
549 a.exercise:before {\r
550     content: counter(section) "." counter(exercise); \r
551     counter-increment: exercise 1;\r
552     font-style: normal; \r
553     font-weight: bold; \r
554 }\r
555 \r
556 a.exercise:after { content: "." }\r
557 */ \r
558 \r
559 /* thebibliography style, including number */\r
560 div.thebibliography {\r
561     font-style: normal;\r
562     padding-top: 15px;\r
563 }\r
564 \r
565 div.thebibliography:before { \r
566     content: "References"; \r
567     font-style: normal; \r
568     font-weight: bold \r
569 }\r
570 \r
571 a.bibitem {\r
572     font-style: normal; \r
573     font-weight: bold; \r
574 }\r
575 \r
576 \r
577 /* Proof style, including number */\r
578 div.proof:before { \r
579     content: "Proof:"; \r
580     font-style: normal; \r
581     font-weight: bold \r
582 }\r
583 \r
584 div.proof:after {\r
585    content: "\220E";\r
586    font-weight: bold \r
587 }\r
588 \r
589 /* cites and refs */\r
590 a.cite {\r
591     font-style: normal; \r
592 }\r
593 \r
594 a.ref {\r
595     font-style: normal; \r
596 }\r
597 \r
598 /* a.ref:before{ \r
599     content: target-text(attr(href),before) \r
600 }\r
601 \r
602       \r
603 a.cite:before{ \r
604    content: target-text(attr(href),before) \r
605 }\r
606 */