Debian Codegraph @

test/functional/input/rst_html5_tuftig.rst

raw
1 Special Features of the `tuftig.css` Stylesheet
2 ===============================================
3
4 ``tuftig.css`` is a CSS3_ style sheet for the output of Docutils'
5 HTML5 writer. The rules are inspired by [tufte.css]_ and
6 [tufte-latex]_ going back to Edward Tufte's layout design.
7
8 .. [tufte.css] Dave Liepmann, `Tufte CSS`,
9 https://edwardtufte.github.io/tufte-css/.
10 .. [tufte-latex] Bil Kleb, Bill Wood and Kevin Godby,
11 `A Tufte-Style Book`,
12 https://www.ctan.org/pkg/tufte-latex.
13
14 .. _CSS3: http://www.w3.org/TR/CSS3
15
16
17 Fullwidth and Margin Objects
18 ----------------------------
19
20 .. class:: fullwidth
21
22 Block elements (paragraphs, admonitions, topics, figures, tables, ...)
23 with the "fullwidth" class argument use full text width.
24
25
26 .. table:: A fullwidth table with LaTeX math commands
27 :class: numbered colwidths-auto fullwidth
28
29 ========= =========== ========= =========== ============= ================
30 `\arccos` ``\arccos`` `\gcd` ``\gcd`` `\Pr` ``\Pr``
31 `\arcsin` ``\arcsin`` `\hom` ``\hom`` `\projlim` ``\projlim``
32 ========= =========== ========= =========== ============= ================
33
34 .. figure:: ../../../docs/user/rst/images/title.svg
35 :alt: reStructuredText, the markup syntax
36 :width: 90%
37 :height: 1.5em
38 :figclass: numbered fullwidth
39
40 A numbered fullwidth figure.
41
42 Block elements (admonitions, figures, tables, ...) with the
43 "marginal" class argument are set in the right margin (if place permits).
44
45 .. class:: marginal
46
47 An ordinary paragraph with the "marginal" class argument.
48
49 Tight integration of graphics with text is central to Tufte’s work
50 even when those graphics are ancillary to the main body of a text. In
51 many of those cases, a margin figure may be most appropriate.
52
53 .. figure:: ../../../docs/user/rst/images/biohazard.png
54 :figclass: marginal numbered
55 :width: 2em
56
57 This is a marginal figure.
58
59 This is the legend.
60
61 To place an image in the margin, use a marginal figure without caption.
62
63 .. figure:: ../../../docs/user/rst/images/biohazard.png
64 :figclass: marginal
65 :width: 2em
66
67 Marginal objects are placed to the right of the preceding main text
68 block.
69
70 .. Note:: This is a "note" type admonition with a block-quote inside.
71 :class: marginal
72
73 This is a silly text that is only there to
74 demonstrate line wrapping.
75
76 By default, citations and footnotes are set in the margin.
77 To have them in the main text area (like [Testbook]_ and [tb98]_ here),
78 use the "align-left" class value.
79
80 .. class:: align-left
81
82 .. [Testbook] John Ex Ample, `How to test web pages`, Ontario, 1978.
83
84 .. class:: align-left language-de
85
86 .. [tb98] Horst Schramm, `Docutils 0.5`, in Testberichte III,
87 Leipzig, 1998.
88
89 .. table:: A marginal table
90 :widths: auto
91 :class: marginal
92
93 ======= ======= ==========
94 A B A or B
95 ======= ======= ==========
96 False False False
97 True False True
98 False True True
99 True True True
100 ======= ======= ==========
101
102 .. class:: align-left
103
104 .. [#not-in-margin] The "align-left" class value ensures this footnote is set
105 in the main text area.
106
107 .. footer:: |HTML 5| |validator| |valid-CSS2|
108
109 .. |HTML 5| image:: http://www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png
110 :height: 31
111 :width: 88
112 :alt: Conforms to HTML 5
113 :target: http://www.w3.org/TR/html5/
114
115 .. |validator| image:: https://www.w3.org/Icons/ValidatorSuite/vs-blue-190.png
116 :height: 31
117 :width: 88
118 :alt: Check validity!
119 :target: http://validator.w3.org/check?uri=referer
120
121 .. |valid-CSS2| image:: http://jigsaw.w3.org/css-validator/images/vcss
122 :height: 31
123 :width: 88
124 :alt: Valid CSS 2.1!
125 :target: http://jigsaw.w3.org/css-validator/check/referer