~ubuntu-branches/ubuntu/oneiric/latexml/oneiric

« back to all changes in this revision

Viewing changes to t/graphics/picture.xml

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-06-09 08:15:06 UTC
  • Revision ID: james.westby@ubuntu.com-20100609081506-1asj0n4u3w4q6jem
Tags: upstream-0.7.0
ImportĀ upstreamĀ versionĀ 0.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<?latexml class="article"?>
 
3
<?latexml RelaxNGSchema="LaTeXML"?>
 
4
<document xmlns="http://dlmf.nist.gov/LaTeXML">
 
5
  <section refnum="1" xml:id="S1">
 
6
    <title>Basic</title>
 
7
    <para xml:id="S1.p1">
 
8
      <p>Math: <Math mode="inline" tex="a=b" xml:id="S1.p1.m1" text="a = b"><XMath><XMApp><XMTok meaning="equals" role="RELOP">=</XMTok><XMTok role="UNKNOWN" font="italic">a</XMTok><XMTok role="UNKNOWN" font="italic">b</XMTok></XMApp></XMath></Math>
 
9
<picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){\line(1,0){100}}\end{picture}"><g transform="translate(0,0)"><line points="0,0 100,0" stroke-width="0.4"/></g></picture></p>
 
10
    </para>
 
11
  </section>
 
12
  <section refnum="2" xml:id="S2">
 
13
    <title>Pictures</title>
 
14
    <paragraph xml:id="S2.SS0.SSS0.P1">
 
15
      <title>Lines:</title>
 
16
      <para xml:id="S2.SS0.SSS0.P1.p1">
 
17
        <p>using integers, scaling with floats, LaTeXcounters, TeX counters.
 
18
All should be the same.</p>
 
19
      </para>
 
20
      <para xml:id="S2.SS0.SSS0.P1.p2">
 
21
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){\line(1,0){100}}\put(0,0){\line(1,1){50}}\put(0,0){\line(0,1){100}}\end{picture}">
 
22
          <g transform="translate(0,0)">
 
23
            <line points="0,0 100,0" stroke-width="0.4"/>
 
24
          </g>
 
25
          <g transform="translate(0,0)">
 
26
            <line points="0,0 50,50" stroke-width="0.4"/>
 
27
          </g>
 
28
          <g transform="translate(0,0)">
 
29
            <line points="0,0 0,100" stroke-width="0.4"/>
 
30
          </g>
 
31
        </picture>
 
32
        <picture fill="black" height="100pt" stroke="black" unitlength="100pt" width="100pt" tex="\begin{picture}(1,1)\put(0,0){\line(1,0){1}}\put(0,0){\line(1,1){0.5}}\put(0,0){\line(0,1){1}}\end{picture}">
 
33
          <g transform="translate(0,0)">
 
34
            <line points="0,0 100,0" stroke-width="0.4"/>
 
35
          </g>
 
36
          <g transform="translate(0,0)">
 
37
            <line points="0,0 50,50" stroke-width="0.4"/>
 
38
          </g>
 
39
          <g transform="translate(0,0)">
 
40
            <line points="0,0 0,100" stroke-width="0.4"/>
 
41
          </g>
 
42
        </picture>
 
43
      </para>
 
44
      <para xml:id="S2.SS0.SSS0.P1.p3">
 
45
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){\line(1,0){100}}\put(0,0){\line(1,1){50}}\put(0,0){\line(0,1){100}}\end{picture}">
 
46
          <g transform="translate(0,0)">
 
47
            <line points="0,0 100,0" stroke-width="0.4"/>
 
48
          </g>
 
49
          <g transform="translate(0,0)">
 
50
            <line points="0,0 50,50" stroke-width="0.4"/>
 
51
          </g>
 
52
          <g transform="translate(0,0)">
 
53
            <line points="0,0 0,100" stroke-width="0.4"/>
 
54
          </g>
 
55
        </picture>
 
56
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){\line(1,0){100}}\put(0,0){\line(1,1){50}}\put(0,0){\line(0,1){100}}\end{picture}">
 
57
          <g transform="translate(0,0)">
 
58
            <line points="0,0 100,0" stroke-width="0.4"/>
 
59
          </g>
 
60
          <g transform="translate(0,0)">
 
61
            <line points="0,0 50,50" stroke-width="0.4"/>
 
62
          </g>
 
63
          <g transform="translate(0,0)">
 
64
            <line points="0,0 0,100" stroke-width="0.4"/>
 
65
          </g>
 
66
        </picture>
 
67
      </para>
 
68
    </paragraph>
 
69
    <paragraph xml:id="S2.SS0.SSS0.P2">
 
70
      <title>Vectors:</title>
 
71
      <para xml:id="S2.SS0.SSS0.P2.p1">
 
72
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)(-100,-100)\put(0,0){\vector(-1,0){100}}\put(0,0){\vector(-1,-1){100}}\put(0,0){\vector(0,-1){100}}\end{picture}">
 
73
          <g transform="translate(0,0)">
 
74
            <line points="0,0 -100,0" stroke-width="0.4" terminators="-&gt;"/>
 
75
          </g>
 
76
          <g transform="translate(0,0)">
 
77
            <line points="0,0 -100,-100" stroke-width="0.4" terminators="-&gt;"/>
 
78
          </g>
 
79
          <g transform="translate(0,0)">
 
80
            <line points="0,0 0,-100" stroke-width="0.4" terminators="-&gt;"/>
 
81
          </g>
 
82
        </picture>
 
83
      </para>
 
84
    </paragraph>
 
85
    <paragraph xml:id="S2.SS0.SSS0.P3">
 
86
      <title>Boxes;</title>
 
87
      <para xml:id="S2.SS0.SSS0.P3.p1">
 
88
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){\bf A}\put(15,15){\framebox(15,15){A}}\put(30,30){\framebox(15,15){\bf A}}\put(45,45){\framebox(15,15){A}}\put(60,20){\frame{\shortstack{A\\B\\\bf C\\D}}}\put(75,20){\framebox(15,80){\shortstack{A\\\bf B\\C\\D}}}\end{picture}">
 
89
          <g transform="translate(0,0)">
 
90
            <text font="bold">A</text>
 
91
          </g>
 
92
          <g transform="translate(15,15)">
 
93
            <rect fill="none" height="15" stroke-width="0.4" width="15" x="0" y="0"/>
 
94
            <g height="15" width="15">
 
95
              <text>A</text>
 
96
            </g>
 
97
          </g>
 
98
          <g transform="translate(30,30)">
 
99
            <rect fill="none" height="15" stroke-width="0.4" width="15" x="0" y="0"/>
 
100
            <g height="15" width="15">
 
101
              <text font="bold">A</text>
 
102
            </g>
 
103
          </g>
 
104
          <g transform="translate(45,45)">
 
105
            <rect fill="none" height="15" stroke-width="0.4" width="15" x="0" y="0"/>
 
106
            <g height="15" width="15">
 
107
              <text>A</text>
 
108
            </g>
 
109
          </g>
 
110
          <g transform="translate(60,20)">
 
111
            <g framed="true" stroke-width="0.4">
 
112
              <inline-block>
 
113
                <p>
 
114
                  <text>A</text>
 
115
                  <text>B</text>
 
116
                  <text>
 
117
                    <text font="bold">C</text>
 
118
                  </text>
 
119
                  <text font="bold">D</text>
 
120
                </p>
 
121
              </inline-block>
 
122
            </g>
 
123
          </g>
 
124
          <g transform="translate(75,20)">
 
125
            <rect fill="none" height="80" stroke-width="0.4" width="15" x="0" y="0"/>
 
126
            <g height="80" width="15">
 
127
              <inline-block>
 
128
                <p>
 
129
                  <text>A</text>
 
130
                  <text>
 
131
                    <text font="bold">B</text>
 
132
                  </text>
 
133
                  <text font="bold">C</text>
 
134
                  <text font="bold">D</text>
 
135
                </p>
 
136
              </inline-block>
 
137
            </g>
 
138
          </g>
 
139
        </picture>
 
140
      </para>
 
141
    </paragraph>
 
142
    <paragraph xml:id="S2.SS0.SSS0.P4">
 
143
      <title>Circles:</title>
 
144
      <para xml:id="S2.SS0.SSS0.P4.p1">
 
145
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(30,30){\circle{30}\vector(0,1){15}\circle*{5}}\put(70,70){\oval(60,30)}\end{picture}">
 
146
          <g transform="translate(30,30)">
 
147
            <circle fill="none" r="15.2" stroke-width="0.4" x="0" y="0"/>
 
148
            <line points="0,0 0,15" stroke-width="0.4" terminators="-&gt;"/>
 
149
            <circle r="2.5" stroke="none" x="0" y="0"/>
 
150
          </g>
 
151
          <g transform="translate(70,70)">
 
152
            <rect fill="none" height="30" rx="15" stroke-width="0.4" width="60" x="-30" y="-15"/>
 
153
          </g>
 
154
        </picture>
 
155
      </para>
 
156
    </paragraph>
 
157
    <paragraph xml:id="S2.SS0.SSS0.P5">
 
158
      <title>Curves:</title>
 
159
      <para xml:id="S2.SS0.SSS0.P5.p1">
 
160
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\qbezier(40,80)(80,120)(100,80)\qbezier[50](40,89)(80,129)(100,89)\end{picture}">
 
161
          <bezier points="40,80 80,120 100,80" stroke-width="0.4"/>
 
162
          <bezier displayedpoints="50" points="40,89 80,129 100,89" stroke-width="0.4"/>
 
163
        </picture>
 
164
      </para>
 
165
    </paragraph>
 
166
    <paragraph xml:id="S2.SS0.SSS0.P6">
 
167
      <title>Repeats:</title>
 
168
      <para xml:id="S2.SS0.SSS0.P6.p1">
 
169
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(0,0){a}\put(10,10){a}\put(20,20){a}\put(30,30){a}\put(40,40){a}\put(50,50){a}\put(60,60){a}\put(70,70){a}\put(80,80){a}\put(90,90){a}\put(100,100){a}\end{picture}">
 
170
          <g transform="translate(0,0)">
 
171
            <text>a</text>
 
172
          </g>
 
173
          <g transform="translate(10,10)">
 
174
            <text>a</text>
 
175
          </g>
 
176
          <g transform="translate(20,20)">
 
177
            <text>a</text>
 
178
          </g>
 
179
          <g transform="translate(30,30)">
 
180
            <text>a</text>
 
181
          </g>
 
182
          <g transform="translate(40,40)">
 
183
            <text>a</text>
 
184
          </g>
 
185
          <g transform="translate(50,50)">
 
186
            <text>a</text>
 
187
          </g>
 
188
          <g transform="translate(60,60)">
 
189
            <text>a</text>
 
190
          </g>
 
191
          <g transform="translate(70,70)">
 
192
            <text>a</text>
 
193
          </g>
 
194
          <g transform="translate(80,80)">
 
195
            <text>a</text>
 
196
          </g>
 
197
          <g transform="translate(90,90)">
 
198
            <text>a</text>
 
199
          </g>
 
200
          <g transform="translate(100,100)">
 
201
            <text>a</text>
 
202
          </g>
 
203
        </picture>
 
204
      </para>
 
205
      <para xml:id="S2.SS0.SSS0.P6.p2">
 
206
        <picture fill="black" height="100pt" stroke="black" unitlength="1pt" width="100pt" tex="\begin{picture}(100,100)\put(10,10){\circle{5}}\put(20,20){\framebox(10,10){\circle{5}}}\put(30,30){\framebox(10,10)[l]{\circle{5}}}\put(40,40){\framebox(10,10)[r]{\circle{5}}}\put(50,50){\framebox(10,10)[t]{\circle{5}}}\put(60,60){\framebox(10,10)[b]{\circle{5}}}\end{picture}">
 
207
          <g transform="translate(10,10)">
 
208
            <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
209
          </g>
 
210
          <g transform="translate(20,20)">
 
211
            <rect fill="none" height="10" stroke-width="0.4" width="10" x="0" y="0"/>
 
212
            <g height="10" width="10">
 
213
              <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
214
            </g>
 
215
          </g>
 
216
          <g transform="translate(30,30)">
 
217
            <rect fill="none" height="10" stroke-width="0.4" width="10" x="0" y="0"/>
 
218
            <g height="10" pos="l" width="10">
 
219
              <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
220
            </g>
 
221
          </g>
 
222
          <g transform="translate(40,40)">
 
223
            <rect fill="none" height="10" stroke-width="0.4" width="10" x="0" y="0"/>
 
224
            <g height="10" pos="r" width="10">
 
225
              <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
226
            </g>
 
227
          </g>
 
228
          <g transform="translate(50,50)">
 
229
            <rect fill="none" height="10" stroke-width="0.4" width="10" x="0" y="0"/>
 
230
            <g height="10" pos="t" width="10">
 
231
              <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
232
            </g>
 
233
          </g>
 
234
          <g transform="translate(60,60)">
 
235
            <rect fill="none" height="10" stroke-width="0.4" width="10" x="0" y="0"/>
 
236
            <g height="10" pos="b" width="10">
 
237
              <circle fill="none" r="2.7" stroke-width="0.4" x="0" y="0"/>
 
238
            </g>
 
239
          </g>
 
240
        </picture>
 
241
      </para>
 
242
    </paragraph>
 
243
  </section>
 
244
</document>