File: Sectioning.jinja2s

package info (click to toggle)
plastex 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: python: 23,341; xml: 18,076; javascript: 7,755; ansic: 46; makefile: 40; sh: 26
file content (56 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: abstract
<div class="abstract">{{ obj }}</div>

name: title author date thanks

name: maketitle
{% set metadata=obj.ownerDocument.userdata %}
<div class="titlepage">
<h1>{{ metadata.title }}</h1>
{% if metadata.author %}
<p class="authors">
{%for author in metadata.author %}
<span class="author">{{ author }}</span>
{% endfor %}
</p>
{% endif %}
{% if metadata.date %}
<p class="date">{{ metadata.date }}</p>
{% endif %}
{% if metadata.thanks %}
<p class="thanks">{{ metadata.thanks }}</p>
{% endif %}
</div>


name: document
{{ obj }}

name: part chapter section
<h1 id="{{ obj.id }}">{{ obj.fullTitle }}</h1>
{{ obj }}


name: subsection 
<h2 id="{{ obj.id }}">{{ obj.fullTitle }}</h2>
{{ obj }}


name: subsubsection
<h3 id="{{ obj.id }}">{{ obj.fullTitle }}</h3>
{{ obj }}


name: paragraph
<h4 id="{{ obj.id }}">{{ obj.fullTitle }}</h4>
{{ obj }}


name: subparagraph
<h5 id="{{ obj.id }}">{{ obj.fullTitle }}</h5>
{{ obj }}


name: subsubparagraph
<h6 id="{{ obj.id }}">{{ obj.fullTitle }}</h6>
{{ obj }}