-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.xml.j2
31 lines (31 loc) · 1.1 KB
/
content.xml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<office:document-content
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
office:version="1.2"
>
<office:body>
<office:text>
{% for page in pages %}
<draw:frame
text:anchor-type="page" text:anchor-page-number="{{loop.index0//2 + 1}}"
draw:name="Challengebox{{loop.index}}"
draw:style-name="Challenge box"
draw:text-style-name="Body"
svg:width="10cm"
svg:height="7.5cm"
svg:x="0.5cm"
svg:y="{{loop.cycle(6, 6+29.7/2)}}cm"
>
<draw:text-box>
{% for line in page -%}
<text:p text:style-name="{% if line.style == 'strike' %}Strike{% else %}Body{% endif %}">{{loop.index}}. {{line.text}}</text:p>
{% endfor %}
</draw:text-box>
</draw:frame>
{% endfor %}
</office:text>
</office:body>
</office:document-content>