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
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
13 /* See http://www.math.wisc.edu/~ram/MathGlossary/mathmlguide.xml for details */
\r
15 /* Dr. Arun Ram's work was supported in part by the National Science Foundation under Grant No. 0353038.
\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
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
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
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
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
38 For example: (Internet Explorer does nto support :before and :after pseudotags -- or counters!)
\r
40 a.subsection:before {
\r
41 content: counter(section) ". " counter(subsection);
\r
42 counter-increment: subsection 1;
\r
45 5. For \ref cross-references, add the line (note: no browser currently supports this!)
\r
47 a.ref:before{ content: target-text(attr(href),before) }
\r
49 For \cite cross-references, add the line (note: no browser currently supports this!)
\r
51 a.cite:before{ content: target-text(attr(href),before) }
\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
61 counter-reset: section 0 enumerate 0 bibitem 0;
\r
65 LaTeX {/* Marks Containers with LaTeX code to be parsed */
\r
70 font-style: normal;
\r
77 font-style: normal;
\r
88 font-style: normal;
\r
95 padding-bottom: 10px;
\r
99 div.abstract:before {
\r
100 font-style: normal;
\r
103 content: "Abstract:";
\r
107 font-style: normal;
\r
110 padding-bottom: 10px;
\r
114 div.keyword:before {
\r
115 font-style: normal;
\r
118 content: "Keywords:";
\r
128 margin-bottom:0.25em;
\r
133 margin-bottom:0.25em;
\r
138 margin-bottom:0.25em;
\r
148 /* vertical spacing */
\r
167 /* Font-face LaTeX spans */
\r
179 font-weight:bolder;
\r
183 font-variant:small-caps
\r
187 font-style:oblique;
\r
191 font-family:sans-serif, Arial, Helvetica;
\r
195 font-family:monospace,"Courier New", Courier;
\r
199 font-size:xx-small;
\r
206 span.footnotesize {
\r
224 font-size:xx-large;
\r
233 font-weight:bolder;
\r
237 font-size:xx-large;
\r
238 font-weight:bolder;
\r
244 span.section { font-style: normal; /* display: none */ }
\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
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
258 span.subsection { font-style: normal; /* display: none */ }
\r
261 counter-reset: subsubsection 0;
\r
264 a.subsection:before {
\r
265 content: counter(section) ". " counter(subsection);
\r
266 counter-increment: subsection;
\r
270 /* subsubsections */
\r
271 span.subsubsection{ font-style: normal; /* display: none */ }
\r
273 /* a.subsubsection:before {
\r
274 content: counter(section) ". " counter(subsection);
\r
275 counter-increment: subsection;
\r
288 /* td.caption:before {
\r
290 font-style: normal;
\r
299 span.figure { font-weight: bold; /* display: none */ }
\r
301 /*a.figure:before {
\r
302 content: counter(section) "." counter(figure);
\r
303 counter-increment: figure;
\r
304 font-style: normal;
\r
308 a.figure:after { content: "." }
\r
311 /* LaTeXtable configuration */
\r
317 table.LaTeXtable tbody {
\r
324 /* table.LaTeXtable td.caption:before {
\r
326 font-style: normal;
\r
331 /*table.LaTeXtable td.tabular table.tabular {
\r
332 text-align:center;
\r
335 span.LaTeXtable { font-weight: bold; /* display: none */ }
\r
337 /*a.LaTeXtable:before {
\r
338 content: counter(section) "." counter(LaTeXtable);
\r
339 counter-increment: LaTeXtable;
\r
340 font-style: normal;
\r
344 a.LaTeXtable:after { content: "." }
\r
347 /* Inline equation */
\r
353 /* equation -- numbering in script to accomodate IE */
\r
354 table.displayequation {
\r
367 span.eqno { font-style: normal; /* display: none */ }
\r
369 /* td.eqno:before { content: "(" }
\r
372 content: counter(section) "." counter(equation);
\r
373 counter-increment: equation;
\r
374 font-style: normal;
\r
377 a.eqno:after { content: ")" }
\r
380 /* definition style, including number */
\r
382 font-weight: bold;
\r
383 font-style: normal;
\r
384 /* display: none */
\r
387 /* div.definition:before {
\r
388 content: "Definition";
\r
389 font-style: normal;
\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
400 a.definition:after { content: "." }
\r
403 div.definition{ font-style:italic }
\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
412 /* div.proposition:before {
\r
413 content: "Proposition";
\r
414 font-style: normal;
\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
425 a.proposition:after { content: "." }
\r
428 div.proposition{ font-style:italic }
\r
430 /* lemma style, including number */
\r
432 font-weight: bold;
\r
433 font-style: normal;
\r
434 /* display: none */
\r
437 /* div.lemma:before {
\r
439 font-style: normal;
\r
444 content: counter(section) "." counter(lemma);
\r
445 counter-increment: lemma 1;
\r
446 font-style: normal;
\r
447 font-weight: bold;
\r
450 a.lemma:after { content: "." }
\r
453 div.lemma{ font-style:italic }
\r
455 /* theorem style, including number */
\r
457 font-weight: bold;
\r
458 font-style: normal;
\r
459 /* display: none */
\r
462 /* div.theorem:before {
\r
463 content: "Theorem";
\r
464 font-style: normal;
\r
469 content: counter(section) "." counter(theorem);
\r
470 counter-increment: theorem 1;
\r
471 font-style: normal;
\r
472 font-weight: bold;
\r
475 a.theorem:after { content: "." }
\r
478 div.theorem{ font-style:italic }
\r
480 /* corollary style, including number */
\r
482 font-weight: bold;
\r
483 font-style: normal;
\r
484 /* display: none */
\r
487 /* div.corollary:before {
\r
488 content: "Corollary";
\r
489 font-style: normal;
\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
500 a.corollary:after { content: "." }
\r
503 div.corollary{ font-style:italic }
\r
505 /* example style, including number */
\r
507 font-weight: bold;
\r
508 font-style: normal;
\r
509 /* display: none */
\r
512 /* div.example:before {
\r
513 content: "Example";
\r
514 font-style: normal;
\r
519 content: counter(section) "." counter(example);
\r
520 counter-increment: example 1;
\r
521 font-style: normal;
\r
522 font-weight: bold;
\r
525 a.example:after { content: "." }
\r
529 font-style: normal;
\r
532 padding-bottom: 10px;
\r
536 /* exercise style, including number */
\r
538 font-weight: bold;
\r
539 font-style: normal;
\r
540 /* display: none */
\r
543 /* div.exercise:before {
\r
544 content: "Exercise";
\r
545 font-style: normal;
\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
556 a.exercise:after { content: "." }
\r
559 /* thebibliography style, including number */
\r
560 div.thebibliography {
\r
561 font-style: normal;
\r
565 div.thebibliography:before {
\r
566 content: "References";
\r
567 font-style: normal;
\r
572 font-style: normal;
\r
573 font-weight: bold;
\r
577 /* Proof style, including number */
\r
578 div.proof:before {
\r
579 content: "Proof:";
\r
580 font-style: normal;
\r
589 /* cites and refs */
\r
591 font-style: normal;
\r
595 font-style: normal;
\r
599 content: target-text(attr(href),before)
\r
604 content: target-text(attr(href),before)
\r