15 Commits
31 changed files with 1221 additions and 1528 deletions
+3
View File
@@ -0,0 +1,3 @@
template/*.pdf
tests/
-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="190.23mm"
width="0.76999998mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,720.71002 L 4.6478401,720.71002 L 4.6478401,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 0.90936001,0 L 0.90936001,0 L 0.90936001,719.91001 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#231f20;stroke-width:2.0208001px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="4.8299999mm"
width="338.29001mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,20.001688 L 1280.3201,20.001688 L 1280.3201,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 1280.1201,9.2470117 L 1280.1201,9.2470117 L 1015.1159,9.2470117 C 1010.7158,13.770006 1006.3158,18.19249 997.51564,18.19249 C 988.8155,18.19249 984.31543,13.770006 979.91536,9.2470117 C 975.51529,4.8245278 971.11522,0.40204399 962.31509,0.40204399 C 953.51495,0.40204399 949.11488,4.8245278 944.71481,9.2470117 C 940.31474,13.770006 935.91467,18.19249 927.11454,18.19249 C 918.3144,18.19249 913.91433,13.770006 909.51426,9.2470117 C 905.11419,4.8245278 900.71412,0.40204399 891.91398,0.40204399 C 883.01384,0.40204399 878.61377,4.8245278 874.21371,9.2470117 C 869.81364,13.770006 865.41357,18.19249 856.61343,18.19249 C 847.81329,18.19249 843.41322,13.770006 839.01315,9.2470117 C 834.61308,4.8245278 830.21302,0.40204399 821.41288,0.40204399 C 812.61274,0.40204399 808.21267,4.8245278 803.8126,9.2470117 C 799.41253,13.770006 795.01246,18.19249 786.21233,18.19249 C 777.41219,18.19249 773.01212,13.770006 768.61205,9.2470117 L 0,9.2470117 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#000000;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="4.8299999mm"
width="338.29001mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,20.001688 L 1280.3201,20.001688 L 1280.3201,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 1280.1201,9.2470117 L 1280.1201,9.2470117 L 1098.3172,9.2470117 C 1093.9172,13.770006 1089.5171,18.19249 1080.7169,18.19249 C 1071.9168,18.19249 1067.5167,13.770006 1063.1167,9.2470117 C 1058.7166,4.8245278 1054.3165,0.40204399 1045.5164,0.40204399 C 1036.6163,0.40204399 1032.2162,4.8245278 1027.8161,9.2470117 C 1023.416,13.770006 1019.016,18.19249 1010.2158,18.19249 C 1001.4157,18.19249 997.01563,13.770006 992.61556,9.2470117 C 988.21549,4.8245278 983.81542,0.40204399 975.01529,0.40204399 C 966.21515,0.40204399 961.81508,4.8245278 957.41501,9.2470117 C 953.01494,13.770006 948.61487,18.19249 939.81473,18.19249 C 931.0146,18.19249 926.61453,13.770006 922.21446,9.2470117 C 917.81439,4.8245278 913.41432,0.40204399 904.61418,0.40204399 C 895.71404,0.40204399 891.31397,4.8245278 886.9139,9.2470117 C 882.51384,13.770006 878.11377,18.19249 869.31363,18.19249 C 860.51349,18.19249 856.11342,13.770006 851.71335,9.2470117 L 0,9.2470117 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#000000;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

-60
View File
@@ -1,60 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
height="190.23mm"
width="338.29001mm"
version="1.0">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,720.71002 L 1280.3201,720.71002 L 1280.3201,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 640.01003,0 L 640.01003,0 L 640.01003,719.91001 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path10"
d=" M 1280.1201,359.905 L 1280.1201,359.905 L 1148.718,359.905 C 1144.3179,364.30507 1139.9179,368.70513 1131.1177,368.70513 C 1122.3176,368.70513 1117.9175,364.30507 1113.5175,359.905 C 1109.1174,355.50494 1104.7173,351.00488 1095.8172,351.00488 C 1087.017,351.00488 1082.617,355.50494 1078.2169,359.905 C 1073.8168,364.30507 1069.4168,368.70513 1060.6166,368.70513 C 1051.8165,368.70513 1047.4164,364.30507 1043.0164,359.905 C 1038.6163,355.50494 1034.2162,351.00488 1025.4161,351.00488 C 1016.6159,351.00488 1012.2159,355.50494 1007.8158,359.905 C 1003.4157,364.30507 999.01566,368.70513 990.21552,368.70513 C 981.41539,368.70513 977.01532,364.30507 972.61525,359.905 C 968.21518,355.50494 963.81511,351.00488 954.91497,351.00488 C 946.11483,351.00488 941.71476,355.50494 937.31469,359.905 C 932.91463,364.30507 928.51456,368.70513 919.71442,368.70513 C 910.91428,368.70513 906.51421,364.30507 902.11414,359.905 L 0,359.905 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path12"
d=" M 640.01003,94.501314 L 640.01003,94.501314 L 640.01003,94.501314 C 633.10993,94.501314 627.60984,100.10139 627.60984,107.00149 L 627.60984,184.50257 C 627.60984,191.40266 633.10993,196.90274 640.01003,196.90274 C 646.91014,196.90274 652.51023,191.40266 652.51023,184.50257 L 652.51023,107.00149 C 652.51023,100.10139 646.91014,94.501314 640.01003,94.501314 z "
clip-path="url(#clipEmfPath1)"
style="fill:#000000;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
<path
id="path14"
d=" M 640.01003,94.501314 L 640.01003,94.501314 L 640.01003,94.501314 C 633.10993,94.501314 627.60984,100.10139 627.60984,107.00149 L 627.60984,184.50257 C 627.60984,191.40266 633.10993,196.90274 640.01003,196.90274 C 646.91014,196.90274 652.51023,191.40266 652.51023,184.50257 L 652.51023,107.00149 C 652.51023,100.10139 646.91014,94.501314 640.01003,94.501314 L 640.01003,94.501314 z "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 3.6 KiB

-60
View File
@@ -1,60 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
height="190.23mm"
width="338.29001mm"
version="1.0">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,720.71002 L 1280.3201,720.71002 L 1280.3201,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 640.01003,0 L 640.01003,0 L 640.01003,719.91001 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#000000;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path10"
d=" M 1280.1201,359.905 L 1280.1201,359.905 L 1148.718,359.905 C 1144.3179,364.30507 1139.9179,368.70513 1131.1177,368.70513 C 1122.3176,368.70513 1117.9175,364.30507 1113.5175,359.905 C 1109.1174,355.50494 1104.7173,351.00488 1095.8172,351.00488 C 1087.017,351.00488 1082.617,355.50494 1078.2169,359.905 C 1073.8168,364.30507 1069.4168,368.70513 1060.6166,368.70513 C 1051.8165,368.70513 1047.4164,364.30507 1043.0164,359.905 C 1038.6163,355.50494 1034.2162,351.00488 1025.4161,351.00488 C 1016.6159,351.00488 1012.2159,355.50494 1007.8158,359.905 C 1003.4157,364.30507 999.01566,368.70513 990.21552,368.70513 C 981.41539,368.70513 977.01532,364.30507 972.61525,359.905 C 968.21518,355.50494 963.81511,351.00488 954.91497,351.00488 C 946.11483,351.00488 941.71476,355.50494 937.31469,359.905 C 932.91463,364.30507 928.51456,368.70513 919.71442,368.70513 C 910.91428,368.70513 906.51421,364.30507 902.11414,359.905 L 0,359.905 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#000000;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path12"
d=" M 640.01003,94.501314 L 640.01003,94.501314 L 640.01003,94.501314 C 633.10993,94.501314 627.60984,100.10139 627.60984,107.00149 L 627.60984,184.50257 C 627.60984,191.40266 633.10993,196.90274 640.01003,196.90274 C 646.91014,196.90274 652.51023,191.40266 652.51023,184.50257 L 652.51023,107.00149 C 652.51023,100.10139 646.91014,94.501314 640.01003,94.501314 z "
clip-path="url(#clipEmfPath1)"
style="fill:#ffffff;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
<path
id="path14"
d=" M 640.01003,94.501314 L 640.01003,94.501314 L 640.01003,94.501314 C 633.10993,94.501314 627.60984,100.10139 627.60984,107.00149 L 627.60984,184.50257 C 627.60984,191.40266 633.10993,196.90274 640.01003,196.90274 C 646.91014,196.90274 652.51023,191.40266 652.51023,184.50257 L 652.51023,107.00149 C 652.51023,100.10139 646.91014,94.501314 640.01003,94.501314 L 640.01003,94.501314 z "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#000000;stroke-width:2.0000315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 3.6 KiB

-50
View File
@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg12"
height="6.8600001mm"
width="30.23mm"
version="1.0">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,27.678928 L 115.9862,27.678928 L 115.9862,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 1.0007437,13.338034 L 1.0007437,13.338034 L 1.0007437,13.338034 C 1.0007437,20.257766 6.5048342,25.873781 13.409966,25.873781 L 102.27601,25.873781 C 109.18114,25.873781 114.7853,20.257766 114.7853,13.338034 C 114.7853,6.4183022 109.18114,0.80228777 102.27601,0.80228777 L 13.409966,0.80228777 C 6.5048342,0.80228777 1.0007437,6.4183022 1.0007437,13.338034 z "
clip-path="url(#clipEmfPath1)"
style="fill:#000000;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
<path
id="path10"
d=" M 1.0007437,13.338034 L 1.0007437,13.338034 L 1.0007437,13.338034 C 1.0007437,20.257766 6.5048342,25.873781 13.409966,25.873781 L 102.27601,25.873781 C 109.18114,25.873781 114.7853,20.257766 114.7853,13.338034 C 114.7853,6.4183022 109.18114,0.80228777 102.27601,0.80228777 L 13.409966,0.80228777 C 6.5048342,0.80228777 1.0007437,6.4183022 1.0007437,13.338034 L 1.0007437,13.338034 z "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0014875px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="190.23mm"
width="0.76999998mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,720.71002 L 4.6478401,720.71002 L 4.6478401,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 0.90936001,0 L 0.90936001,0 L 0.90936001,719.91001 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0208001px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

-50
View File
@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg12"
height="6.8600001mm"
width="30.23mm"
version="1.0">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,27.678928 L 115.9862,27.678928 L 115.9862,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 1.0007437,13.338034 L 1.0007437,13.338034 L 1.0007437,13.338034 C 1.0007437,20.257766 6.5048342,25.873781 13.409966,25.873781 L 102.27601,25.873781 C 109.18114,25.873781 114.7853,20.257766 114.7853,13.338034 C 114.7853,6.4183022 109.18114,0.80228777 102.27601,0.80228777 L 13.409966,0.80228777 C 6.5048342,0.80228777 1.0007437,6.4183022 1.0007437,13.338034 z "
clip-path="url(#clipEmfPath1)"
style="fill:#000000;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
<path
id="path10"
d=" M 1.0007437,13.338034 L 1.0007437,13.338034 L 1.0007437,13.338034 C 1.0007437,20.257766 6.5048342,25.873781 13.409966,25.873781 L 102.27601,25.873781 C 109.18114,25.873781 114.7853,20.257766 114.7853,13.338034 C 114.7853,6.4183022 109.18114,0.80228777 102.27601,0.80228777 L 13.409966,0.80228777 C 6.5048342,0.80228777 1.0007437,6.4183022 1.0007437,13.338034 L 1.0007437,13.338034 z "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0014875px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="190.23mm"
width="0.76999998mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,720.71002 L 4.6478401,720.71002 L 4.6478401,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 0.90936001,0 L 0.90936001,0 L 0.90936001,719.91001 "
clip-path="url(#clipEmfPath1)"
style="fill:none;stroke:#ffffff;stroke-width:2.0208001px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg10"
height="68.07mm"
width="126.74mm"
version="1.0">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<clipPath
id="clipEmfPath1"
clipPathUnits="userSpaceOnUse">
<path
id="path2"
d=" M 0,0 L 0,0 L 0,259.00775 L 480.74007,259.00775 L 480.74007,0 " />
</clipPath>
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path8"
d=" M 385.33212,258.20772 L 385.33212,258.20772 C 407.23395,258.20772 425.73549,251.00751 439.93667,236.20707 L 441.73682,255.20763 L 480.34004,255.20763 L 480.34004,56.301684 L 436.93642,56.301684 L 436.93642,204.10611 C 429.83583,214.20641 416.2347,223.10667 398.93325,223.10667 C 377.03143,223.10667 365.73049,209.50627 365.73049,183.30548 L 365.73049,56.301684 L 322.32687,56.301684 L 322.32687,182.70547 C 322.32687,229.10685 344.92875,258.20772 385.33212,258.20772 z M 203.61697,195.80586 L 203.61697,195.80586 C 203.61697,235.60705 219.01826,257.60771 256.42138,257.60771 C 270.72257,257.60771 282.62356,254.0076 292.7244,248.70744 L 288.52405,221.90664 C 283.22361,223.70669 277.82316,224.90673 271.92267,224.90673 C 257.02143,224.90673 247.52063,216.60648 247.52063,198.20593 L 247.52063,97.302911 L 292.7244,97.302911 L 292.7244,64.601933 L 247.52063,64.601933 L 247.52063,19.500583 L 217.31812,19.500583 L 206.01717,63.401897 L 179.81499,65.20195 L 179.81499,93.102785 L 203.61697,99.60298 L 203.61697,195.80586 z M 43.90366,197.60591 L 43.90366,197.60591 L 69.405786,170.30509 L 121.1101,254.60762 L 170.3142,254.60762 L 97.908162,142.40426 L 163.81366,56.901702 L 116.90975,56.901702 L 43.90366,153.10458 L 43.90366,0 L 0,0 L 0,254.60762 L 43.90366,254.60762 L 43.90366,197.60591 z "
clip-path="url(#clipEmfPath1)"
style="fill:#000000;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Dominykas Svetikas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+2 -71
View File
@@ -1,72 +1,3 @@
# KTU-Typst # ktu-paper
This repository contains a Typst template for KTU style presentation and written work. This repository contains a Typst template for academic papers at the Kaunas University of Technology, Faculty of Informatics. A final Bachelor's thesis written with this template has successfully passed the formal review.
To use the template, just import `template.typ` at the top of the Typst document and apply a show rule.
## Report
The following is an example on how to apply the report style for a document
```typst
#import "template.typ": ataskaita
#show: ataskaita.with(
"Kompiuterinis raštingumas",
(
[Technologinis projektas],
[Typst šablonas]
),
authors: ("Vardenis Pavardenis",),
recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas"
)
= Įvadas
...
```
## Presentation
For presentations, we use the Polylux Typst package. I suggest that you consult documentation on how it works before proceeding.
```typst
#import "@preview/polylux:0.3.1": *
#import "template.typ": *
#show: everything => ktu-theme(everything)
#ktu-title-slide[
= Pristatymo tema
#box[
#set text(size: 18pt)
Autoriai: Vardenis Pavardenis, Petras Petraitis
]
]
#ktu-outline-slide[
== Turinys
1. Įvadas
2. Dėstymas
3. Išvados
]
#ktu-main-slide[
== Įvadas
...
]
...
```
### Options
- `#ktu-title-slide` for first, title slide
- `#ktu-outline-slide` for second, outline slide
- `#ktu-main-slide` main content slide
- `#ktu-no-vertical-slide` main content slide without a vertical line on the right
-15
View File
@@ -1,15 +0,0 @@
wwdc-network:
type: Article
author: ["Mehta, Jiten", "Kinnear, Eric"]
title: Boost Performance and Security with Modern Networking
date: 2020-06-26
parent:
- type: Conference
title:
value: "{World Wide Developer Conference 2020}"
short: WWDC 2020
organization: Apple Inc.
location: Mountain View, CA
- type: Video
runtime: "00:13:42"
url: { value: https://developer.apple.com/videos/play/wwdc2020/10111/, date: 2020-09-17 }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.
-111
View File
@@ -1,111 +0,0 @@
#import "@preview/polylux:0.3.1": *
#import "@preview/codly:0.2.0": *
#import "@preview/pinit:0.1.3": *
#import "../template.typ": *
#show: everything => ktu-theme(everything)
#show: codly-init.with()
#codly(
fill: luma(240),
zebra-color: luma(240),
display-name: false,
display-icon: false,
enable-numbers: false,
stroke-width: 2pt,
stroke-color: black
)
#ktu-title-slide[
= Pristatymo tema
#box[
#set text(size: 18pt)
Autoriai: Vardenis Pavardenis, Petras Petraitis
]
]
#ktu-outline-slide[
== Turinys
1. Įvadas
2. Dėstymas
3. Išvados
]
#ktu-main-slide[
== Įvadas
#lorem(60)
]
#ktu-main-slide[
== Daug teksto
#lorem(130)
]
#ktu-no-vertical-slide[
== Daug teksto, kitas variantas
#only((1,2))[Būti]#only(2)[, ar nebūti]?
#lorem(120)
]
#ktu-no-vertical-slide[
== Kodas 1
#text(size:15pt)[
```python
import sys
import signal
import warnings
from analyser.app import App
from analyser.qt_compat import QtWidgets
from analyser.settings import Settings
signal.signal(signal.SIGINT, signal.SIG_DFL)
warnings.filterwarnings("ignore", category=DeprecationWarning)
if __name__ == "__main__":
settings = Settings()
app = QtWidgets.QApplication(sys.argv)
ex = App(settings)
sys.excepthook = ex.excepthook
sys.exit(app.exec_())
```]
]
#ktu-no-vertical-slide[
== Kodas 2
```java
public interface SortedSet<E> extends Set<E> {
// Grąžinamas aibės poaibis iki element.
Set<E> headSet(E element);
// Grąžinamas aibės poaibis nuo element1 iki element2.
Set<E> subSet(E element1, E element2);
// Grąžinamas aibės poaibis nuo element.
Set<E> tailSet(E element);
// Grąžinamas atvirkštinis iteratorius.
Iterator<E> descendingIterator();
}
```
#only(2)[
#place(
top+left,
dx: 600pt, dy: 200pt
)[#pin("test")]
#pinit-point-from(
pin-dx: -240pt,
pin-dy: -90pt,
"test",
[ tai reiškia?]
)
]
]
Binary file not shown.
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="lt-LT" class="in-text"> <style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="lt-LT" class="in-text">
<info> <info>
<title>ISO-690 (numeric, Lietuvių kalba)</title> <title>ISO-690 (numeric, Lietuvių kalba)</title>
@@ -9,6 +9,10 @@
<name>Linas Valiukas</name> <name>Linas Valiukas</name>
<email>[email protected]</email> <email>[email protected]</email>
</author> </author>
<contributor>
<name>Dominykas Svetikas</name>
<email>[email protected]</email>
</contributor>
<category citation-format="numeric"/> <category citation-format="numeric"/>
<category field="generic-base"/> <category field="generic-base"/>
<summary>ISO 690 style for the Vilnius university, Faculty of Communication. (Numeric version)</summary> <summary>ISO 690 style for the Vilnius university, Faculty of Communication. (Numeric version)</summary>
@@ -158,9 +162,9 @@
</macro> </macro>
<macro name="issue"> <macro name="issue">
<group delimiter=", "> <group delimiter=", ">
<text variable="volume" prefix="Vol. "/> <text variable="volume" prefix="Vol.&#160;"/>
<text variable="issue" prefix="no. "/> <text variable="issue" prefix="no.&#160;"/>
<text variable="page" prefix="p. "/> <text variable="page" prefix="p.&#160;"/>
</group> </group>
</macro> </macro>
<macro name="isbn"> <macro name="isbn">
@@ -171,14 +175,13 @@
<sort> <sort>
<key variable="citation-number" sort="ascending"/> <key variable="citation-number" sort="ascending"/>
</sort> </sort>
<layout vertical-align="sup" prefix="[" suffix="]" delimiter=","> <layout prefix="[" suffix="]" delimiter=", ">
<text variable="citation-number"/> <text variable="citation-number"/>
</layout> </layout>
</citation> </citation>
<bibliography> <bibliography>
<sort> <sort>
<key macro="author"/> <key variable="citation-number"/>
<key variable="title"/>
</sort> </sort>
<layout suffix="."> <layout suffix=".">
<text variable="citation-number" suffix=". "/> <text variable="citation-number" suffix=". "/>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

+17
View File
@@ -0,0 +1,17 @@
/// Whether to number figures per section or not.
/// If true, figures will be numbered like "1.1", "1.2", "2.1", etc.
/// If false, figures will be numbered like "1", "2", "3", etc.
///
/// TODO: figure out how to deal with numbering on sections such as
/// Appendix and other non-standard sections.
#let __FIG_PER_SECTION = state("svetikas.lt/ktu-paper/figure-numbering-per-section", false)
#let __DEBUG_AUTHOR_TABLE = state("$ktu-template-DEBUG_AUTHOR_TABLE", false)
#let debug-author-table() = {
__DEBUG_AUTHOR_TABLE.update(true)
}
#let __HEADING_EXPERIMENT = state("$ktu-template-HEADING_EXPERIMENT", false)
#let enable-heading-experiment() = {
__HEADING_EXPERIMENT.update(true)
}
+135
View File
@@ -0,0 +1,135 @@
// This file includes logic for displaying figures in the document, including numbering, captions, and references. It also includes logic for handling figure numbering per section or globally, based on the configuration set in `config.typ`.
#import "config.typ": __FIG_PER_SECTION
/// Localizations for various recognized referencable figure types.
/// This is used to provide the correct supplement text for each type of figure
/// when generating references, captions and outlines.
#let __figureNames = (
table: (
supplement: "lentelė",
),
image: (
supplement: "pav",
),
raw: (
supplement: "kodo frag",
),
equation: (
supplement: "lygtis",
),
)
/// Helper function to get the supplement text for a given figure type.
#let __fig-supplement(func) = {
return __figureNames.at(repr(func)).supplement
}
#let __fig-func-to-name(func) = {
if func == table {
return "lentelė"
}
if func == image {
return "pav."
}
if func == grid {
return "pav."
}
return func
}
/// Helper function to resolve figure numbers (either global "1" or section-based "1.1").
/// It takes a figure item and referenced location and returns the appropriate number as a string.
#let __get-figure-number(fig-item, loc) = context {
if type(fig-item) != content {
panic("can only get figure number for content elements")
}
if fig-item.func() != figure {
panic("can only get figure number for figure elements")
}
let perSection = __FIG_PER_SECTION.get()
if perSection {
let chapter = counter(heading).at(loc).at(0, default: 0)
let figNum = counter(figure.where(kind: fig-item.kind)).at(loc).at(0, default: 1)
[#chapter.#figNum]
} else {
let caption = fig-item.caption
if caption != none and caption.numbering != none {
caption.counter.at(loc).at(0)
} else {
[#counter(figure.where(kind: fig-item.kind)).at(loc).at(0)]
}
}
}
/// Helper function to get the number of a locatable element (figure, table, etc.)
/// based on its location in the document. It returns the number as a string, formatted according to the current numbering scheme.
#let __get-locatable-element-number(element) = context {
if type(element) != content {
panic("can only reference elements of type content")
}
let loc = element.location()
let elem = query(loc)
let fig = elem.at(0)
if fig.func() != figure {
panic("referenced element does not have a figure function")
}
__get-figure-number(fig, loc)
}
/// Formats a reference to a figure, table, or other numbered element.
#let __format-ref(it) = {
let el = it.element
if el == none {
return it
}
// Override equation references
if el.func() == math.equation {
link(
el.location(),
numbering(el.numbering, ..counter(math.equation).at(el.location()))
)
// Override references to figures
} else if el.func() == figure {
let fig = el.body
let figType = fig.func()
let numStr = __get-figure-number(el, el.location())
link(el.location(), [
(žr. #numStr #__fig-func-to-name(figType))
])
} else {
it
}
}
/// Formats a figure with a caption and number.
#let __format-figure(it) = {
let separator = [.]
let caption = it.caption
// If caption is not provided, just show the figure body
if caption == none {
return it.body
}
let counter = caption.counter
let supplement = caption.supplement
if it.body.func() == math.equation {
supplement = __fig-supplement("equation")
} else {
supplement = __fig-supplement(it.kind)
}
set text(size: 11pt)
// Tables have captions at the top
if it.kind == table {
align(left)[*#__get-figure-number(it, here()) #supplement#separator* #caption.body]
it.body
} else {
it.body
[*#__get-figure-number(it, here()) #supplement#separator* #caption.body]
}
}
+204
View File
@@ -0,0 +1,204 @@
#import "config.typ": __DEBUG_AUTHOR_TABLE
/// Wrapper around the table function that returns a KTU style conformant table.
/// This includes setting text size to 10 pt.
#let ktu-table(..args) = {
show table: it => {
set text(size: 10pt)
// TODO: FIXME line spacing is defined differently
set par(leading: 1em - 0.75em) // intervalas tarp eilučių -- 1
it
}
table(
..args
)
}
#let ktu-author-table(
authors: (),
alignment: right,
) = context {
// The layout should be a list of lists whose elements are (name, role) pairs.
assert(authors.len() > 0, message: "author table must have at least one author")
assert(authors.all(it => it.len() == 2), message: "each author entry must be a pair of name and role")
let frame(color) = (x, y) => (
left: 0pt,
right: 0pt,
top: if y == 0 { 0.5pt + color } else { 0pt },
bottom: 0.5pt + color,
)
set table(
inset: 5.4pt,
stroke: if __DEBUG_AUTHOR_TABLE.get() {
0.5pt + rgb("D4AF37")
} else {
frame(rgb("D4AF37"))
},
)
show table.cell: it => context {
[#it]
if it.body == [] {
v(10pt)
} else {
v(0pt)
}
}
if alignment == center {
align(center, table(
columns: (198.5pt + 56.7pt),
table.header([]),
..for author in authors {
let (name, role) = author
(align(center)[
#set block(below: 8pt)
#block[*#name*]
#block[#role]
], [])
}
))
} else {
align(alignment, table(
columns: (198.5pt, 56.7pt),
table.header(
[], [],
),
..for author in authors {
let (name, role) = author
(align(left)[
#set block(below: 8pt)
#block[*#name*]
#block[#role]
], [], [], [])
}
))
}
}
/// This function constructs the title page header block for KTU reports. It includes the university logo, name, subheaders, the main and sub titles of the report.
///
/// - bigTitle (content): The main title of the report, usually the name of the work. Displayed in 18 pt font.
/// - subTitles (): Additional titles or information to be displayed under the main title, such as the type of work. Displayed in 14 pt font. If not provided, defaults to "Rašto darbo tipas".
/// - subHeaders (): Additional header information to be displayed under the university name, such as the faculty. If not provided, defaults to "Fakulteto pavadinimas".
/// ->
#let ktu-title-header-block(
bigTitle: highlight[Didelis pavadinimas],
subTitles: (),
subHeaders: (),
) = {
let parsedSubtext = if subHeaders.len() > 0 {
subHeaders
} else {
(
highlight[Fakulteto pavadinimas],
)
}
let subTitles = if subTitles.len() > 0 {
subTitles
} else {
(
highlight[Rašto darbo tipas],
)
}
// Top of the title page
v(20pt)
align(center)[
#image("assets/ktu-logo.png", width: 2.46cm, height: 2.69cm)
#v(25pt)
#block[*Kauno technologijos universitetas*]
#for value in parsedSubtext {
block[#value]
}
]
// The title page information
v(91pt)
align(center)[
#set par(justify: false)
#set linebreak(justify: false)
#block(text(size: 18pt, hyphenate: false)[*#bigTitle*])
#for value in subTitles {
block(text(size: 14pt)[#value])
}
]
}
#let ktu-heading-page-centered(
faculty: highlight[Fakulteto pavadinimas],
title: highlight[Rašto darbo pavadinimas],
subtitles: highlight[Praktikos ataskaita / referatas ir pan. (įrašyti rašto darbo tipą)],
authors: (
(highlight[Vardenis Pavardenis], highlight[Projekto autorius]),
(highlight[Vardenis Pavardenis], highlight[Vadovas]),
),
place: highlight[Kaunas],
year: highlight[#datetime.today().year()],
) = {
let isArr = type(subtitles) == array
if not isArr {
subtitles = (subtitles,)
}
ktu-title-header-block(
subHeaders: (faculty,),
bigTitle: title,
subTitles: subtitles,
)
v(94pt)
ktu-author-table(authors: authors, alignment: center)
align(center+bottom, block([*#place, #year*]))
}
#let ktu-heading-page-normal(
faculty: highlight[Fakulteto pavadinimas],
title: highlight[Rašto darbo pavadinimas],
subtitles: highlight[Praktikos ataskaita / referatas ir pan. (įrašyti rašto darbo tipą)],
authors: (
(highlight[Vardenis Pavardenis], highlight[Projekto autorius]),
(highlight[Vardenis Pavardenis], highlight[Vadovas]),
),
place: highlight[Kaunas],
year: highlight[#datetime.today().year()],
) = {
let isArr = type(subtitles) == array
if not isArr {
subtitles = (subtitles,)
}
ktu-title-header-block(
subHeaders: (faculty,),
bigTitle: title,
subTitles: subtitles,
)
v(94pt)
ktu-author-table(authors: authors)
align(center+bottom, block([*#place, #year*]))
}
#let ktu-academic-honestly-declaration-page(
faculty: highlight[Informatikos fakultetas],
author: highlight[Vardenis Pavardenis],
projectTitle: highlight[Projekto pavadinimas],
) = {
ktu-title-header-block(
subHeaders: (faculty, author),
bigTitle: projectTitle,
subTitles: ("Akademinio sąžiningumo deklaracija",)
)
v(20pt)
[
Patvirtinu, kad:
+ baigiamąjį projektą parengiau savarankiškai ir sąžiningai, nepažeisdama(s) kitų asmenų autoriaus ar kitų teisių, laikydamasi(s) Lietuvos Respublikos autorių teisių ir gretutinių teisių įstatymo nuostatų, Kauno technologijos universiteto (toliau -- Universitetas) intelektinės nuosavybės valdymo ir perdavimo nuostatų bei Universiteto akademinės etikos kodekse nustatytų etikos reikalavimų;
+ baigiamajame projekte visi pateikti duomenys ir tyrimų rezultatai yra teisingi ir gauti teisėtai, nei viena šio projekto dalis nėra plagijuota nuo jokių spausdintinių ar elektroninių šaltinių, visos baigiamojo projekto tekste pateiktos citatos ir nuorodos yra nurodytos literatūros sąraše;
+ įstatymų nenumatytų piniginių sumų baigiamąjį projektą ar jo dalis niekam nesu mokėjęs (-usi);
+ suprantu, kad išaiškėjus nesąžiningumo ar kitų asmenų teisių pažeidimo faktui, man bus taikomos akademinės nuobaudos pagal Universitete galiojančią tvarką ir būsiu pašalinta(s) Universiteto, o baigiamasis projektas gali būti pateiktas Akademinės etikos ir procedūrų kontrolieriaus tarnybai nagrinėjant galimą akademinės etikos pažeidimą.
#v(10pt)
#h(58%) #author
#h(58%) _Patvirtinta elektroniniu būdu_
]
}
+491
View File
@@ -0,0 +1,491 @@
#import "@preview/codly:1.3.0": codly, codly-init
#import "config.typ": debug-author-table, enable-heading-experiment, __HEADING_EXPERIMENT, __FIG_PER_SECTION
#import "fragments.typ": (
ktu-table,
ktu-heading-page-centered, ktu-heading-page-normal, ktu-academic-honestly-declaration-page
)
#import "figures.typ": (
__fig-supplement,
__get-figure-number,
__get-locatable-element-number,
__format-ref,
__format-figure,
)
/**
* Paruošta pagal "Rašto ..."
*/
/*
* Further reading required:
* - Double line spacing | https://github.com/typst/typst/issues/106
* - Proposal: change `leading` option to `line-height` | https://github.com/typst/typst/issues/4224
*/
///
/// Insert a heading without a number.
///
/// Usually used for introductory or summary sections at the start and end.
/// - text (str): The heading's title.
/// ->
#let unnumbered-heading(text) = {
set heading(numbering: none)
[#text]
}
#let appendix-item(body) = {
heading(
metadata("appendix-heading") + "priedas. " + body,
level: 2,
numbering: (..any) => {str(any.at(1))}
)
}
// Utility function to round numbers with padded zeros
#let round-and-pad(number, decimals) = {
let rounded = calc.round(number, digits: decimals)
let s = str(rounded)
let parts = s.split(".")
let integer-part = parts.at(0)
let decimal-part = if parts.len() == 2 { parts.at(1) } else { ""}
let padded-decimal = if decimals > 0 {
let current-decimal-length = decimal-part.len()
let padding-needed = decimals - current-decimal-length
let trailing-zeros = ""
for _ in range(padding-needed) {
trailing-zeros = trailing-zeros + "0"
}
if decimal-part == "" {
"." + trailing-zeros
} else {
"." + decimal-part + trailing-zeros
}.slice(0, decimals + 1)
} else {
""
}
integer-part + padded-decimal
}
/// Returns a number for the given reference target.
/// - target (label): Label to get the reference number for.
#let ref-no(target) = context {
if type(target) != label {
panic("ref-no expects a label as input")
}
let loc = locate(target)
let elem = query(target)
let item = elem.at(0)
// If it's a figure, return the figure number
if item.func() == figure {
link(loc, [#__get-figure-number(item, loc)])
} else if item.func() == heading {
let fullValue = counter(heading).at(loc)
// If the heading has the "appendix-heading" metadata attached,
// it means that it's an appendix heading and should be numbered differently
if item.body.has("children") and item.body.children.at(0) == metadata("appendix-heading") {
link(loc, [#fullValue.at(1)])
// Otherwise, show the fully qualified heading numbering
} else {
link(loc, [#fullValue.map((x) => str(x)).join(".")])
}
} else {
panic("referencing unknown type: ", item.func())
}
}
// Constructs a reference from multiple targets
#let custom-ref(..targets) = context {
let collected = (:)
for target in targets.pos() {
let loc = locate(target)
let elem = query(target)
let fig = elem.at(0)
if fig.func() != figure {
panic("referencing unknown type")
}
// determine what we...
let element = fig.body;
let elementName = "unknown";
let found = false;
while not found {
// If it's a grid
if (element.func() == grid) {
for cell in element.children {
if cell.body.func() == image {
elementName = "pav."
found = true
break
}
}
break
}
if (element.func() == table) {
elementName = "lentelė"
found = true
break
}
if (element.func() == raw) {
elementName = "kodo frag."
found = true
break
}
if (element.func() == image) {
elementName = "pav."
found = true
break
}
panic("unknown element", element.func())
}
if elementName not in collected {
collected.insert(elementName, ())
}
collected.at(elementName).push(
(loc, __get-figure-number(fig, loc))
)
}
if collected.len() > 1 {
panic("multiple types detected")
}
for type in collected {
let name = type.at(0)
let arr = type.at(1).sorted(key: k => k.at(1))
[(žr. #arr.map(x =>link(x.at(0), [#x.at(1)])).join(", ") #name)]
}
}
/// Returns a KTU template-conformant outline.
/// - depth (int | none): Same as outline depth.
/// - indent (auto | function | relative): Same as outline indent.
/// - target (function | label | location | selector): Same as outline target.
/// - title (auto | content | none): Same as outline title.
/// -> outline
#let __ktu_outline(
depth: none,
indent: 0em, // Disable the default outline indenting
target: heading,
title: auto
) = {
// TODO: įtrauka
set block(spacing: 0em)
// genius solution by @two_horus on Discord (364397430059302912)
show outline: o => context {
// If it's a heading, show the default outline with bold text
if (o.target == selector(heading)) {
// Define known target widths based on KTU template
let targets = (0.64cm, 0.96cm, 1.28cm, 1.6cm, 1.92cm)
// Apply custom outline entry formatting
show outline.entry: it => {
// Recompute the gap based on the prefix content, so that the outline entry is indented
// from the left regardless of the length of the prefix (based on the requirement)
let prefixContent = it.prefix()
let measurement = measure(prefixContent)
let target = targets.at(it.level - 1, default: 0.64cm)
let newGap = target - measurement.width
if it.element.body.has("children") and it.element.body.children.at(0) == metadata("appendix-heading") {
target = 0.64cm
}
let newGap = target - measurement.width
link(
it.element.location(),
it.indented(prefixContent, it.inner(), gap: newGap),
)
}
show outline.entry.where(level: 1): e => {
strong(e)
}
o
// If it's an image
} else if (o.target == figure.where(kind: image)) {
show outline.entry: it => link(
it.element.location(),
it.indented(
[*#__get-locatable-element-number(it.element) #__fig-supplement(image).*],
[ #it.inner()], gap: 0pt
),
)
o
// If it is a table, show table formatting
} else if (o.target == figure.where(kind: table)) {
show outline.entry: it => link(
it.element.location(),
it.indented(
[*#__get-locatable-element-number(it.element) #__fig-supplement(table).*],
[ #it.inner()], gap: 0pt
),
)
o
// If it is a table, show table formatting
} else if (o.target == figure.where(kind: raw)) {
show outline.entry: it => link(
it.element.location(),
it.indented(
[*#__get-locatable-element-number(it.element) #__fig-supplement(raw).*],
[ #it.inner()], gap: 0pt
),
)
o
// Otherwise, try to determine what kind of outline it is
} else {
/*[
#o.target #type(o.target),
#(o.target == "heading")
#(o.target == heading)
#(o.target == figure.where(kind: heading))
#(o.target == heading.where())
#(o.target == selector(heading))
]*/
show outline.entry: it => link(
it.element.location(),
it.indented(
[*#__get-locatable-element-number(it.element) unknown.*],
it.inner(), gap: 0pt
),
)
o
}
}
outline(depth: depth, indent: indent, target: target, title: title)
}
// Doesn't work in Typst 0.12.0 due to relative paths
#let bibliography-list(path) = {
bibliography(path, title: "Literatūros sąrašas", full: true)
}
/// Returns a KTU style conformant outline.
/// - depth (int | none): Same as outline depth.
/// - indent (auto | function | relative): Same as outline indent.
/// - target (function | label | location | selector): Same as outline target.
/// - title (auto | content | none): Same as outline title.
/// -> outline
#let ktu-outline(
depth: none,
indent: 0em, // Disable the default outline indenting
target: heading,
title: auto
) = {
__ktu_outline(depth: depth, indent: indent, target: target, title: title)
}
#let ktu-table-of-contents(depth: 3) = {
ktu-outline(target: heading, title: "Turinys", depth: depth)
}
#let ktu-table-list() = {
ktu-outline(title: heading("Lentelių sąrašas", outlined: true), target: figure.where(kind: table))
}
#let ktu-picture-list() = {
ktu-outline(title: heading("Paveikslų sąrašas", outlined: true), target: figure.where(kind: image))
}
/// Define a custom outline for a specific figure type.
/// This function creates an outline entry with a specified title and figure type.
/// The outline entry will link to the figure of the specified type.
/// - title (str): Title of the outline
/// - kind (str): Type of the figure
#let custom-list(title, kind) = {
__ktu_outline(title: heading(title, outlined: true), target: figure.where(kind: kind))
}
#let setup-code(body) = {
show: codly-init.with()
codly(
fill: white,
zebra-fill: none,
stroke: none,
display-name: false,
display-icon: false,
)
show raw: set text(font: "Hack", spacing: 80%)
body
}
#let __page_rules(font: "Times New Roman", body) = {
// Page size and margins
set page(
paper: "a4",
width: 210mm,
height: 297mm,
margin: (
left: 30mm,
right: 10mm,
bottom: 20mm,
top: 20mm
)
)
set page(width: 595pt, height: 842pt)
// Numbering rules
set page(numbering: none, number-align: right)
// Use Lithuanian quotes
set smartquote(quotes: "„“")
// Heading numbering
set heading(numbering: "1.")
// Number equations
set math.equation(numbering: "(1)")
// Set text font
set text(
font: font,
size: 12pt,
lang: "lt",
// Change where the bounding box is drawn for the text
top-edge: "ascender",
bottom-edge: "descender",
kerning: false, // Disable kerning
)
// Text line interval, defined differently in Typst
let leading = 1.15em // Your line spacing (1, 1.5, 2, etc.)
let leading = leading - 0.75em // "Normalization"
set par(leading: leading)
// Indentation for lists and enumerations
set enum(indent: 12pt)
set list(indent: 12pt)
body
}
#let setup-page(
font: "Times New Roman",
body
) = {
show: __page_rules.with(font: font)
// Pagal formaliuosius rašto darbų reikalavimus
// Tarpas tarp teksto pastraipų
set par(spacing: 10pt)
set block(below: 10pt)
// Teksto lygiuotė, abipusė
set par(justify: true)
set linebreak(justify: true)
// Antraštės
// Force them into blocks so they don't count as paragraphs
show heading: it => {
// Align everything left
set align(left)
// Visų antraščių teksto dydis vienodas
// Visų antraščių teksto šifras paryškintas
set text(size: 12pt)
set block(below: 10pt)
let useExperiment = __HEADING_EXPERIMENT.get()
// TODO: intervalas tarp eilučių 1,15 kiekvienai antraštei
// Antraštė be nr.
if it.numbering == none {
// Centruota lygiuotė
set align(center)
// atstumas prieš ir po antraštės - 10 pt
block[#it.body]
if useExperiment {
v(10pt)
}
}
// Skyrius
if it.numbering != none and it.level == 1 {
// abipusė lygiuotė
set par(justify: true)
// Reset figure counters if numbering per section is enabled
if __FIG_PER_SECTION.get() {
counter(figure.where(kind: image)).update(0)
counter(figure.where(kind: table)).update(0)
counter(figure.where(kind: raw)).update(0)
}
// po antraštės - 10 pt
block[#counter(heading).display() #it.body]
if useExperiment {
v(10pt)
}
}
// Determine whether the heading has appending metadata attached and adjust its display accordingly
let isAppendixHeading = it.body.has("children") and it.body.children.at(0) == metadata("appendix-heading")
if isAppendixHeading {
block[#counter(heading).display(it.numbering) #it.body]
}
// Poskyris ir skyrelis
if not isAppendixHeading and it.numbering != none and it.level != 1 {
// abipusė lygiuotė
set par(justify: true)
// prieš ir po antraštės - 10 pt
if useExperiment {
v(10pt)
}
block[#counter(heading).display() #it.body]
if useExperiment {
v(10pt)
}
}
}
// Reference style and numbering
show ref: it => __format-ref(it)
// Figure captions and numbering
show figure: it => __format-figure(it)
// Bibliography citing style
set bibliography(style: "assets/iso690-numeric-lt.csl")
body
}
/// Configure the template for a KTU paper.
/// - font (str): Font to use for the paper.
/// - figureNumberingPerSection (bool): Whether to number figures per section rather than globally.
#let ktu-paper(
font: "Times New Roman",
figureNumberingPerSection: false,
body
) = context {
show: setup-page.with(font: font)
__FIG_PER_SECTION.update(figureNumberingPerSection)
body
}
-738
View File
@@ -1,738 +0,0 @@
#import "@preview/wrap-it:0.1.0": wrap-content
#import "@preview/codly:1.0.0": codly, codly-init
// Laboratorinio darbo ataskaita
//
#let unnumbered-heading(text) = {
set heading(numbering: none)
[#text]
}
#let bibliography-list(path) = {
bibliography(path, title: "Literatūros sąrašas", full: true)
}
#let table-list() = {
outline(title: heading("Lentelių sąrašas", outlined: true), target: figure.where(kind: table))
}
#let picture-list() = {
outline(title: heading("Paveikslų sąrašas", outlined: true), target: figure.where(kind: image))
}
#let setup-code(body) = {
show: codly-init.with()
codly(
fill: white,
zebra-fill: none,
stroke: none,
display-name: false,
display-icon: false,
)
body
}
#let setup-page(body) = {
// Pagal formaliuosius rašto darbų reikalavimus
set page(
// Puslapio matmenys
paper: "a4",
width: 210mm,
height: 297mm,
numbering: none,
number-align: right,
// paraščių dydžiai
margin: (
right: 10mm,
left: 30mm,
bottom: 20mm,
top: 20mm
)
)
// Bendrasis teksto šriftas
set text(
font: "Times New Roman",
size: 12pt,
lang: "lt",
//style: "normal",
//weight: "regular",
//spacing: 200%
)
// TODO: investigate paragraphs
// Tarp eilučių paragrafe
// TODO: intervalas tarp eilučių is defined differently in Typst
set par(
leading: 0.65em,
justify: true
)
// Tarp paragrafų
set block(below: 10pt)
// Antraštės
show heading: it => [
// Align everything left
#set align(left)
// Visų antraščių teksto dydis vienodas
// Visų antraščių teksto šifras paryškintas
#set text(size: 12pt)
// TODO: intervalas tarp eilučių 1,15 kiekvienai antraštei
// Antraštė be nr.
#if it.numbering == none {
// Rašoma naujame puslapyje
//pagebreak()
// Centruota lygiuotė
set align(center)
// atstumas prieš ir po antraštės - 10 pt
v(10pt)
[#it.body]
v(10pt)
}
// Skyrius
#if it.numbering != none and it.level == 1 {
// Rašoma naujame puslapyje
//pagebreak()
// abipusė lygiuotė
set par(justify: true)
// po antraštės - 10 pt
[#counter(heading).display() #it.body]
v(10pt)
}
// Poskyris ir skyrelis
#if it.numbering != none and it.level != 1 {
// abipusė lygiuotė
set par(justify: true)
// prieš ir po antraštės - 10 pt
v(10pt)
[#counter(heading).display() #it.body]
v(10pt)
}
]
// Nustatom paveikslėlius ir figūras
set figure.caption(separator: [.])
show figure.caption: it => [
#let supplement = it.supplement
#if it.kind == image {
supplement = "pav"
} else if it.kind == table {
supplement = "lentelė"
} else {
supplement = [#it.kind]
}
*#it.counter.display(it.numbering) #supplement#it.separator* #it.body
]
// Lentelės pirma eilutė
show table.cell.where(y: 0): it => [
#set align(left)
#set par(justify: false)
#set text(size: 10pt) // Šrifto dydis
#v(3pt)
// Paryškintas
*#it*
#v(3pt)
]
show table.cell: it => [
#set align(left)
#set par(justify: false)
#set text(size: 10pt)
#v(3pt)
#it
#v(3pt)
]
// Code
show raw: set text(font: "Hack", spacing: 80%)
/*
show outline.where(target: figure.where(kind: image)): it => {
it.fields()
}
*/
// Use Lithuanian quotes
set smartquote(quotes: "„“")
set heading(numbering: "1.")
// Set bibliography and citing style
set bibliography(style: "Assets/iso690-numeric-lt.csl")
// Return the body
body
}
#let lab-report(
title,
subTitles,
type: none,
authors: none,
recipients: none,
recipientRole: none,
authorRole: none,
body
) = {
show: setup-page.with()
// Title page
[
// Top of the title page
#v(4pt)
#align(center)[
#image("Assets/ktu-logo.png", width: 2.46cm, height: 2.69cm)
#v(26pt)*Kauno technologijos universitetas*
#v(4pt)Informatikos fakultetas
#v(94pt)
]
// The title page information
#align(center)[
#set block(below: 16pt)
#text(size: 18pt)[*#title*]
#v(4pt)
#for subTitle in subTitles {
[
#v(-5pt)
#text(size: 14pt)[#subTitle]
]
}
#v(100pt)
]
// Written by and intended for
// TODO: support multiple authors
#v(15pt)
#align(left)[
#for author in authors {
[
//#v(-5pt)
#h(300pt)*#author*
#parbreak()
]
}
#h(300pt)#authorRole
#v(12pt)
#for recipient in recipients {
[
//#v(-5pt)
#h(300pt)*#recipient*
#parbreak()
]
}
#parbreak()
#h(300pt)#recipientRole
]
// Footer of place where it was written and year
#align(center+bottom)[
*Kaunas, #datetime.today().year()*
]
// Begin numbering from the outline
#set page(
numbering: "1"
)
#outline(
title: "Turinys",
target: heading
)
#pagebreak()
#body
]
}
// A template function to create a stylized report
#let ataskaita(
title,
subTitles,
type: none,
authors: none,
recipients: none,
recipientRole: none,
authorRole: none,
body
) = {
// Setup page properties
set page(
paper: "a4",
width: 210mm,
height: 297mm,
numbering: none,
number-align: right,
margin: (
right: 10mm,
left: 30mm,
bottom: 20mm,
top: 20mm
)
)
set par(
leading: 1.15em
)
set par(
leading: 6pt
)
show: all => [
#set text(
font: "Times New Roman",
size: 12pt,
style: "normal",
weight: "regular",
spacing: 200%
)
#all
]
// Nustatom visus paragrafus
show heading: it => [
#set align(left)
#set text(
font: "Times New Roman",
size: 12pt
)
#counter(heading).display() #it.body
#v(0.35cm)
]
show heading.where(numbering: none): it => [
#set align(center)
#set text(
font: "Times New Roman",
size: 12pt
)
#it.body
];
// Setup figures
set figure.caption(separator: [.])
show figure.caption: it => [
#let supplement = it.supplement
#if it.kind == image {
supplement = "pav"
}
#if it.kind == table {
supplement = "lentelė"
}
#it.counter.display(it.numbering) #supplement#it.separator #it.body
]
// Setup heading numbering
set heading(numbering: "1.")
// Use Lithuanian quotes
set smartquote(quotes: "„“")
// Set bibliography and citing style
set bibliography(style: "Assets/iso690-numeric-lt.csl")
// Title page
[
// Top of the title page
#v(20pt)
#align(center)[
#image("Assets/ktu-logo.png", width: 2.46cm, height: 2.69cm)
#v(20pt)*Kauno technologijos universitetas*
#v(0pt)Informatikos fakultetas
#v(83pt)
]
// The title page information
#align(center)[
#text(size: 18pt)[*#title*]
#for subTitle in subTitles {
[
#v(-5pt)
#text(size: 14pt)[#subTitle]
]
}
#v(100pt)
]
// Written by and intended for
// TODO: support multiple authors
#v(15pt)
#align(left)[
#for author in authors {
[
//#v(-5pt)
#h(300pt)*#author*
#parbreak()
]
}
#h(300pt)#authorRole
#v(12pt)
#for recipient in recipients {
[
//#v(-5pt)
#h(300pt)*#recipient*
#parbreak()
]
}
#parbreak()
#h(300pt)#recipientRole
]
// Footer of place where it was written and year
#align(center+bottom)[
*Kaunas, #datetime.today().year()*
]
#pagebreak()
// Begin numbering from the outline
#set page(
numbering: "1"
)
// Add an outline
#outline(
title: "Turinys"
)
#pagebreak()
#body
]
}
// Bibliography shorthand
#let bibl(path) = {
[
#bibliography(
path,
title: "Literatūros sąrašas",
full: true
)
]
}
// PRESENTATION
#import "@preview/polylux:0.3.1": *
// The margins are set automatically to 2.5/21 times the smaller dimension of the page. This results in 2.5cm margins for an A4 page.
#let autoMarginSize = 2.5/21 * 7.50in
#let margins = (
top: autoMarginSize,
right: autoMarginSize,
left: autoMarginSize,
bottom: autoMarginSize
);
#let ktu-theme(body) = {
set page(
fill: white,
numbering: "1",
number-align: right,
width: 13.33in,
height: 7.50in,
margin: margins,
footer: {
locate(loc => {
let page-counter = counter(page).display("1")
if loc.page() != 1 {
place(bottom+right, dx: 18pt, dy: -20pt)[
#set text(size: 14pt)
*#page-counter*
]
}
})
}
)
// Default content size
set text(size: 22pt, font: "Arial")
// First level heading size
show heading.where(level: 1): it => [
#set text(size: 50pt)
#it.body
];
// Second level heading size
show heading.where(level: 2): it => [
#set text(size: 30pt)
#it.body
];
// Embed the body
body
}
#let ktu-title-slide(body) = {
polylux-slide[
// Content
#set align(bottom)
#box(width: 80%)[
#body
]
// Horizontal line
#place(
top,
dx: 222pt,
dy: -200pt,
pad(
right: -margins.right + 100pt,
left: -margins.left,
scale(
x: 300%,
rotate(
-90deg,
image("Assets/image12.svg")
)
)
)
)
/*
#place(
top,
dx: 190pt,
//dy: -200pt,
dy: -88pt,
pad(
//right: -margins.right + 100pt,
//left: -margins.left,
scale(
y: 10%,
x: 10%,
image("Assets/image4.svg")
)
)
)
*/
// KTU logo
#place(
top,
dx: 792pt,
dy: -40pt,
image("Assets/ktu-logo.png", height: 36mm)
)
// Vertical line
#place(
top,
dx: 360pt,
dy: 385pt,
pad(
top: -margins.top,
bottom: -margins.bottom,
rotate(
-90deg,
scale(
y: -100%,
image("Assets/image15.svg")
)
)
)
)
// Text on the vertical line side
#place(top, dx: 670pt, dy: 250pt)[
#set text(size: 15pt)
#rotate(-90deg)[
*UŽ KIEKVIENOS TECHNOLOGIJOS ŽMOGUS*
]
]
]
}
#let ktu-outline-slide(body) = {
polylux-slide[
// Content
#box(
pad(
left: 90pt,
body
)
)
// KTU logo
#place(
top,
//dx: 792pt,
dx: -50pt,
dy: -40pt,
image("Assets/ktu-logo.png", height: 36mm)
)
// Vertical line
#place(
top,
dx: -360pt,
dy: 385pt,
pad(
top: -margins.top,
bottom: -margins.bottom,
rotate(
90deg,
scale(
y: -100%,
x: -100%,
image("Assets/image15.svg")
)
)
)
)
// Text on the vertical line side
#place(top, dx: -170pt, dy: 250pt)[
#set text(size: 15pt)
#rotate(-90deg)[
*UŽ KIEKVIENOS TECHNOLOGIJOS ŽMOGUS*
]
]
]
}
#let ktu-main-slide(body) = {
let header = body.children.find(it => { return it.func() == heading })
polylux-slide[
// Content
#block(width: 95%, height: 100%)[
#header
#v(36pt)
#body.children.filter(it => {return it.func() != heading}).join()
]
// DECORATIONS
// Horizontal line
#place(
top,
dy: 44pt,
pad(
right: -margins.right + 94pt,
left: -margins.left,
image("Assets/image15.svg")
)
)
// KTU logo
#place(
top,
dx: 820pt,
dy: 0pt,
image("Assets/ktu-text.svg", height: 10mm)
)
// Vertical line
#place(
top,
dx: 800pt,
pad(
top: -margins.top,
bottom: -margins.bottom,
image("Assets/image12.svg")
)
)
// Text on the vertical line side
#place(top, dx: 700pt, dy: 250pt)[
#set text(size: 13pt)
#rotate(-90deg)[
*UŽ KIEKVIENOS TECHNOLOGIJOS ŽMOGUS*
]
]
]
}
#let ktu-no-vertical-slide(body) = {
let header = body.children.find(it => { return it.func() == heading })
polylux-slide[
// Content
#block(width: 100%, height: 100%)[
#header
#v(36pt)
#body.children.filter(it => {return it.func() != heading}).join()
]
// DECORATIONS
// Horizontal line
#place(
top,
dy: 1.52cm,
pad(
right: -margins.right,
left: -margins.left,
image("Assets/image15.svg")
)
)
// KTU logo
#place(
top,
dx: 820pt,
dy: 0pt,
image("Assets/ktu-text.svg", height: 10mm)
)
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

+204
View File
@@ -0,0 +1,204 @@
#import "@local/ktu-paper:0.2.0": (
ktu-paper, setup-code,
ktu-table-of-contents, ktu-picture-list, ktu-table-list,
ktu-heading-page-normal,
ktu-table,
custom-ref, ref-no
)
#show: ktu-paper.with(
font: "Times New Roman",
)
#show: setup-code.with()
#show math.equation: it => {
show regex("\d+\.\d+"): it => {show ".": {","+h(0pt)}
it}
it
}
#ktu-heading-page-normal(
faculty: "Fakulteto pavadinimas",
title: "Rašto darbo pavadinimas",
subtitles: "Praktikos ataskaita / referatas ir pan. (įrašyti rašto darbo tipą)",
authors: (
("Vardenis Pavardenis", "Projekto autorius"),
("Vardenis Pavardenis", "Vadovas"),
),
place: "Kaunas",
year: datetime.today().year(),
)
#pagebreak()
#ktu-table-of-contents()
#pagebreak()
#ktu-picture-list()
#pagebreak()
#ktu-table-list()
#pagebreak()
= Sąrašai
Vienas sąrašas:
1. Vienas;
2. Du;
3. Trys.
Kitas sąrašas:
- Vienas;
- Du;
- Trys.
#pagebreak()
= Skyrius
== Poskyris
=== Skyrelis
...
== Matematikos poskyris
Skaitiniams tipams yra naudojamas histogramos. Histogramų binų (stulpelių) skaičius nustatomas formule: $1 + 3.22 dot log_10 n$, kur n -- imties dydis.
Mūsų atveju, $n = 4908$, tada $"binų skaičius" approx 12.88 = 12$.
== Tolydaus tipo atributai
Šias apskaičiuotas charakteristikas pateikiame lentelėje:
#{
show table.cell: set text(size: 8pt)
[#figure(
ktu-table(
columns: (25mm, 13mm, 17mm, 20mm, auto, auto, auto, auto, auto, auto, 17mm),
align: (x, y) => if x == 0 or y == 0 { horizon + left } else { horizon + right },
table.header([*Atributo pavadinimas*], [*Kiekis (eilučių skaičius)*], [*Trūkstamos reikšmės, %*], [*Kardinalumas*], [*Min reikšmė*], [*Max reikšmė*], [*1-asis kvartilis*], [*Mediana*], [*3-iasis kvartilis*], [*Vidurkis*], [*Standartinis nuokrypis*]),
[age], [5110], [0,0], [104], [0,08], [82,0], [25,0], [45,0], [61,0], [43,227], [22,613],
[avg_glucose_level], [5110], [0,0], [3979], [55,12], [271,74], [77,245], [91,885], [114,09], [106,148], [45,284],
[bmi], [5110], [3,933], [418], [10,3], [97,6], [23,5], [28,1], [33,1], [28,893], [7,854],
),
caption: [
Skaitinio tipo atributų statistinės charakteristikos
],
) <tab-1>]
}
Įdomus pastebėjimas, kad amžiaus minimali reikšmė yra "0,080". Tai yra logiška, kadangi yra vaikų duomenų. Kitas pastebėjimas -- trūksta "bmi" duomenų 3,9% visų įrašų. Atributų kardinalumas yra aukštas, todėl juos tikrai galima laikyti tolydžiais.
Duomenų sklaidą yra patogu pavaizduoti ir stačiakampe diagrama:
#figure(
image("image.jpeg", width: 70%),
caption: [
Skaitinių atributų stačiakampė diagrama
],
)
Matome, kad "avg_glucose_level" ir "bmi" atributai turi gana daug išimčių. Tačiau čia reikia būti atsargiems, kadangi išimtys nustatomos kaip reikšmės interkvartilinio intervalo. Patikrinkime ar šios vertės nėra įvedimo klaidos.
Anot https://www.who.int/data/gho/indicator-metadata-registry/imr-details/2380, normalus gliukozės lygis nevalgius yra apie 70-100 mg/dL. Lyginant su mmol/L, tikėtina, kad "avg_glucose_level" yra matuojamas mg/dL. Tada matome, kad maksimali vertė 2,72 kartų didesnė normą.
Kūno masės indekso rodiklis apskaičiuojamas formule: $"BMI" = "svoris" / "ūgis" = "kg" / "m"^2$. Tikrinami maksimalią vertę darykime prielaidą, kad asmens ūgis = 1,6 m, tada svoris = $97 dot 1.6^2$ = 248,32 kg.
== Duomenų problemų taisymas
#lorem(70)
#lorem(70)
#lorem(70)
Kažkas... $[Q_1 - 1.5 dot "IQR"; Q_3 + 1.5 dot "IQR"]$ intervale.
#figure(```python
def main():
print("Hello, world!")
if __name__ == "__main__":
main()
```, caption: [
Python kodas
])
== Image grids
#lorem(120)
Paveikslėlius galima grupuoti į "grid" #custom-ref(<image-grid-2>, <image-grid-3>)
#figure(grid(
columns: 2,
gutter: 2mm,
image("image.jpeg", width: 100%),
image("image.jpeg", width: 100%),
), caption: [
Paveikslėliai "grid'e" 1
]) <image-grid-2>
#figure(grid(
columns: 3,
gutter: 2mm,
image("image.jpeg", width: 100%),
image("image.jpeg", width: 100%),
image("image.jpeg", width: 100%),
image("image.jpeg", width: 100%),
image("image.jpeg", width: 100%),
), caption: [
Paveikslėliai "grid'e" 2
]) <image-grid-3>
#pagebreak()
= Skyrius
#lorem(160) Gauti skaičiai @table-1 tikrai dideli.
#{
show table.cell: set text(size: 8pt)
[#figure(
table(
columns: (33mm, 13mm, 17mm, 20mm, 13mm, 13mm, 13mm, 13mm, 13mm, 13mm, 17mm),
align: (x, y) => if x == 0 or y == 0 { horizon + left } else { horizon + right },
[*Atributo pavadinimas*], [*Kiekis (eilučių skaičius)*], [*Trūkstamos reikšmės, %*], [*Kardinalumas*], [*Min reikšmė*], [*Max reikšmė*], [*1-asis kvartilis*], [*Mediana*], [*3-iasis kvartilis*], [*Vidurkis*], [*Standartinis nuokrypis*],
[age], [4908], [0.0], [104], [0.08], [82.0], [25.0], [44.0], [60.0], [42.869], [22.556],
[hypertension], [4908], [0.0], [2], [0], [1], [0.0], [0.0], [0.0], [0.092], [0.289],
[heart_disease], [4908], [0.0], [2], [0], [1], [0.0], [0.0], [0.0], [0.05], [0.217],
[avg_glucose_level], [4908], [0.0], [3851], [55.12], [271.74], [77.0675], [91.68], [113.495], [105.297], [44.426],
[bmi], [4908], [0.0], [418], [10.3], [97.6], [23.5], [28.1], [33.1], [28.895], [7.854],
[stroke], [4908], [0.0], [2], [0], [1], [0.0], [0.0], [0.0], [0.043], [0.202],
),
caption: [
Lentelės pavadinimas
],
) <table-1>]
}
Kažkokia formulė apibrėžiama taip:
$
Z = (X - mu) / sigma
$
čia $X$ -- imtis, $mu$ -- imties vidurkis, $sigma$ -- imties standartinis nuokrypis. Fragmentas pateikiamas #ref-no(<image-1>) paveikslėlyje.
#figure(
image("image.jpeg", width: 90%),
caption: [
Paveikslėlio pavadinimas
],
) <image-1>
#pagebreak()
= Išvados
- Viską bandėme.
- Viskas pavyko.
+71 -89
View File
@@ -1,29 +1,46 @@
#import "../template.typ": lab-report, table-list, picture-list, bibliography-list, unnumbered-heading #import "@local/ktu-paper:0.2.0": (
ktu-paper, setup-code,
#show: lab-report.with( ktu-table-of-contents, ktu-picture-list, ktu-table-list,
"Kompiuterinis raštingumas", ktu-heading-page-normal,
( ktu-table,
[Technologinis projektas], unnumbered-heading,
[Typst šablonas] custom-ref, ref-no
),
authors: ("Vardenis Pavardenis",),
recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas"
) )
#set list(marker: [--]) #show: ktu-paper.with(
font: "Times New Roman",
)
#show: setup-code.with()
#table-list() #show figure: it => {
set block(breakable: true)
it
}
#set list(indent: 0.63cm, marker: [--])
#ktu-heading-page-normal(
faculty: "Fakulteto pavadinimas",
title: "Rašto darbo pavadinimas",
subtitles: "Praktikos ataskaita / referatas ir pan. (įrašyti rašto darbo tipą)",
authors: (
("Vardenis Pavardenis", "Projekto autorius"),
("Vardenis Pavardenis", "Vadovas"),
),
place: "Kaunas",
year: datetime.today().year(),
)
#pagebreak() #pagebreak()
#picture-list() #ktu-table-of-contents()
#pagebreak() #pagebreak()
#ktu-picture-list()
#pagebreak()
#ktu-table-list()
#pagebreak()
#unnumbered-heading[= Įvadas] #unnumbered-heading[= Įvadas]
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
@@ -37,7 +54,6 @@ Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam: Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam:
- Ut antiopam efficiendi deterruisset sit. - Ut antiopam efficiendi deterruisset sit.
- Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. - Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim.
@@ -47,125 +63,99 @@ An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
// TODO: lentele
#[
#show figure: set block(breakable: true)
#figure( #figure(
table( table(
columns: 5, columns: (40mm, 35mm, 44mm, auto),
table.header( align: (x, y) => top + left,
[Stiliaus pavadinimas],
[Stiliaus pavadinimas galerijoje],
[Stiliaus formalieji reikalavimai],
[Stiliaus naudojimo aprašymas],
[Pritaikyta?]
),
[Antraštė non-TOC], [Antraštė non-TOC],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po antraštės 10 pt, centruota lygiuotė.],
[Antraštėms, kurios nėra įtraukiamos į turinį: "Turinys".],
[Ne],
table.header(
[*Stiliaus pavadinimas*], [*Stiliaus pavadinimas galerijoje*],
[*Stiliaus formalieji reikalavimai*], [*Stiliaus naudojimo aprašymas*],
),
[Antraštė non-TOC], [Antraštė non-TOC],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių -- 1,15, atstumas prieš ir po antraštės -- 10 pt, centruota lygiuotė.], [Antraštėms, kurios nėra įtraukiamos į turinį: „Turinys“.],
[Antraštė be nr.], [Antraštė be nr.], [Antraštė be nr.], [Antraštė be nr.],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po antraštės 10 pt, centruota lygiuotė, antraštė rašoma naujame puslapyje po puslapio skirtuko.], [Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių -- 1,15, atstumas prieš ir po antraštės -- 10 pt, centruota lygiuotė, antraštė rašoma naujame puslapyje po puslapio skirtuko.],
[Antraštėms, kurios įtraukiamos į turinį, bet nėra numeruojamos: „Lentelių sąrašas“, „Paveikslų sąrašas“, „Santrumpų ir terminų sąrašas“, „Įvadas“, „Išvados“, „Literatūros sąrašas“, „Informacijos šaltinių sąrašas“, „Priedai“.], [Antraštėms, kurios įtraukiamos į turinį, bet nėra numeruojamos: „Lentelių sąrašas“, „Paveikslų sąrašas“, „Santrumpų ir terminų sąrašas“, „Įvadas“, „Išvados“, „Literatūros sąrašas“, „Informacijos šaltinių sąrašas“, „Priedai“.],
[Trūksta intervalo],
[1. Heading 1,Skyrius], [Skyrius], [\1. Heading 1,Skyrius], [Skyrius],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas po antraštės 10 pt, abipusė lygiuotė, antraštė rašoma naujame puslapyje po puslapio skirtuko.], [Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių -- 1,15, atstumas po antraštės -- 10 pt, abipusė lygiuotė, antraštė rašoma naujame puslapyje po puslapio skirtuko.],
[Skyrių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.], [Skyrių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.],
[Trūksta intervalo],
[1.1. Heading 2,Poskyris], [Poskyris], [1.1. Heading 2,Poskyris], [Poskyris],
table.cell(rowspan: 2)[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po antraštės 10 pt, abipusė lygiuotė, numeracija siejama su aukštesnio lygio antrašte.], table.cell(rowspan: 2)[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių -- 1,15, atstumas prieš ir po antraštės -- 10 pt, abipusė lygiuotė, numeracija siejama su aukštesnio lygio antrašte.],
[Poskyrių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.], [Poskyrių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.],
[Trūksta intervalo],
[1.1.1. Heading 4,Skyrelis], [Skyrelis], [1.1.1. Heading 4,Skyrelis], [Skyrelis],
[Skyrelių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.], [Skyrelių antraštėms, kurios įtraukiamos į turinį ir yra numeruojamos.],
[Trūksta intervalo],
[Tekstas], [Tekstas], [Tekstas], [Tekstas],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas po pastraipos 10 pt, abipusė lygiuotė.], [Šrifto dydis 12 pt, intervalas tarp eilučių -- 1,15, atstumas po pastraipos -- 10 pt, abipusė lygiuotė.],
[Tekstui visose rašto darbo dalyse (įvade, skyriuose, poskyriuose ir t.t.).], [Tekstui visose rašto darbo dalyse (įvade, skyriuose, poskyriuose ir t.t.).],
[],
[List Bullet;Sąrašas (suženklintas)], [Sąrašas (suženklintas)], [List Bullet;Sąrašas (suženklintas)], [Sąrašas (suženklintas)],
[Pirmos pastraipos eilutės įtrauka 0,63 cm, šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 0 pt, atstumas po sąrašo 10 pt, abipusė lygiuotė.], [Pirmos pastraipos eilutės įtrauka 0,63 cm, šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 0 pt, atstumas po sąrašo 10 pt, abipusė lygiuotė.],
[Tekstui, kuris pateikiamas suženklintu sąrašu.], [Tekstui, kuris pateikiamas suženklintu sąrašu.],
[],
[List Number;Sąrašas (numeruotas)], [Sąrašas (numeruotas)], [List Number;Sąrašas (numeruotas)], [],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 0 pt, atstumas po sąrašo 10 pt, abipusė lygiuotė.], [Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 0 pt, atstumas po sąrašo 10 pt, abipusė lygiuotė.],
[Tekstui, kuris pateikiamas sunumeruotu sąrašu.], [Tekstui, kuris pateikiamas sunumeruotu sąrašu.],
[],
[Footnote Text;Išnašos tekstas], [Išnašos tekstas], [Footnote Text;Išnašos tekstas], [Išnašos tekstas],
[Šrifto dydis 10 pt, intervalas tarp eilučių 1,15, atstumas prieš ir po sąrašo 0 pt, abipusė lygiuotė.], [Šrifto dydis 10 pt, intervalas tarp eilučių 1,15, atstumas prieš ir po sąrašo 0 pt, abipusė lygiuotė.],
[Tekstui, kuris pateikiamas išnašose.], [Tekstui, kuris pateikiamas išnašose.],
[],
[Lentelės pavad.], [Lentelės pavad.], [Lentelės pavad.], [Lentelės pavad.],
[Šrifto dydis 11 pt, intervalas tarp eilučių 1,15, atstumas prieš pavadinimą 10 pt, po pavadinimo 3 pt, lygiuotė prie kairiojo krašto.], [Šrifto dydis 11 pt, intervalas tarp eilučių 1,15, atstumas prieš pavadinimą 10 pt, po pavadinimo 3 pt, lygiuotė prie kairiojo krašto.],
[Lentelių pavadinimams (numeris ir žodis lentelė rašomas paryškintu šriftu).], [Lentelių pavadinimams (numeris ir žodis lentelė rašomas paryškintu šriftu).],
[],
[Lentelės I eil.], [Lentelės I eil.], [Lentelės I eil.], [],
[Šrifto dydis 10 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po pastraipos 3 pt, lygiuotė prie kairiojo krašto.], [Šrifto dydis 10 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po pastraipos 3 pt, lygiuotė prie kairiojo krašto.],
[Tekstui lentelės antraštinei (pirmai) eilutei.], [Tekstui lentelės antraštinei (pirmai) eilutei.],
[Trūksta intervalo],
[Lentelė], [Lentelė], [Lentelė], [],
[Šrifto dydis 10 pt, intervalas tarp eilučių 1, atstumas prieš ir po pastraipos 3 pt, lygiuotė prie kairiojo krašto.], [Šrifto dydis 10 pt, intervalas tarp eilučių 1, atstumas prieš ir po pastraipos 3 pt, lygiuotė prie kairiojo krašto.],
[Tekstui lentelėje.], [Tekstui lentelėje.],
[Trūksta intervalo],
[Caption,Paveikslo pavad.], [Paveikslo pavad.], [Caption,Paveikslo pavad.], [],
[Šrifto dydis 11 pt, intervalas tarp eilučių 1,15, atstumas prieš ir po pavadinimo 10 pt, centruota lygiuotė.], [Šrifto dydis 11 pt, intervalas tarp eilučių 1,15, atstumas prieš ir po pavadinimo 10 pt, centruota lygiuotė.],
[Paveikslų pavadinimams (numeris ir santrumpa pav. rašoma paryškintu šriftu).], [Paveikslų pavadinimams (numeris ir santrumpa pav. rašoma paryškintu šriftu).],
[],
[Figure;Paveikslas], [Paveikslas], [Figure;Paveikslas], [],
[Atstumas prieš ir po paveikslo 10 pt, centruota lygiuotė.], [Atstumas prieš ir po paveikslo 10 pt, centruota lygiuotė.], [Paveikslui, iliustracijai .],
[Paveikslui, iliustracijai .],
[],
[Bibliography,Bibliografija], [Bibliografija], [Bibliography,Bibliografija], [Bibliografija],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 2 pt, abipusė lygiuotė.], [Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, atstumas tarp tokio paties stiliaus pastraipų 2 pt, abipusė lygiuotė.],
[Literatūros ir Informacijos šaltinių sąrašuose nurodytiems šaltiniams.], [Literatūros ir Informacijos šaltinių sąrašuose nurodytiems šaltiniams.],
[],
[Priedas], [Priedas], [Priedas], [Priedas],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po antraštės 10 pt, lygiuotė prie kairiojo krašto.], [Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, atstumas prieš ir po antraštės 10 pt, lygiuotė prie kairiojo krašto.],
[Priedo numeriui, žodžiui _priedas_, priedo pavadinimui.], [Priedo numeriui, žodžiui _priedas_, priedo pavadinimui.],
[],
[TOC 1,Turinys 1], [Turinys 1], [TOC 1,Turinys 1], [Turinys 1],
[Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, įtrauka 0,64.], [Šrifto dydis 12 pt, šriftas paryškintas, intervalas tarp eilučių 1,15, įtrauka 0,64.],
[Turinyje esančioms antraštėms, kurios nėra numeruojamos („Lentelių sąrašas“, „Paveikslų sąrašas“, „Santrumpų ir terminų sąrašas“, „Įvadas“, „Išvados“, „Literatūros sąrašas“, „Informacijos šaltinių sąrašas“, „Priedai“) ir numeruojamai antraštei „Skyriaus pavadinimas“.], [Turinyje esančioms antraštėms, kurios nėra numeruojamos („Lentelių sąrašas“, „Paveikslų sąrašas“, „Santrumpų ir terminų sąrašas“, „Įvadas“, „Išvados“, „Literatūros sąrašas“, „Informacijos šaltinių sąrašas“, „Priedai“) ir numeruojamai antraštei „Skyriaus pavadinimas“.],
[],
[TOC 2,Turinys 2], [Turinys 2], [TOC 2,Turinys 2], [Turinys 2],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 0,96.], [Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 0,96.],
[Turinyje esančiai antraštei „Poskyrio pavadinimas“.], [Turinyje esančiai antraštei „Poskyrio pavadinimas“.],
[],
[TOC 3,Turinys 3], [Turinys 3], [TOC 3,Turinys 3], [Turinys 3],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 1,28.], [Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 1,28.],
[Turinyje esančiai antraštei „Skyrelio pavadinimas“. ], [Turinyje esančiai antraštei „Skyrelio pavadinimas“. ],
[],
[TOC 4,Turinys 4], [Turinys 4], [TOC 4,Turinys 4], [Turinys 4],
[Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 0,64.], [Šrifto dydis 12 pt, intervalas tarp eilučių 1,15, įtrauka 0,64.],
[Numeruotiems priedams.], [Numeruotiems priedams.],
[],
), ),
caption: "Pagrindiniai rašto darbo stiliai ir aprašymai" caption: [
) Pagrindiniai rašto darbo stiliai ir aprašymai
] ],
) <tab-1>
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has #footnote[Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id.]. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has1.
=== Skyrelio pavadinimas === Skyrelio pavadinimas
@@ -175,7 +165,7 @@ Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis ato
2. Sed dolorem quaerendum ne, prompta instructior ne pri. 2. Sed dolorem quaerendum ne, prompta instructior ne pri.
3. Et mel partiendo suscipiantur, docendi abhorreant ea sit. 3. Et mel partiendo suscipiantur, docendi abhorreant ea sit.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea #footnote[Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit.]. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea2. In sumo inani numquam has.
=== Skyrelio pavadinimas === Skyrelio pavadinimas
@@ -183,7 +173,6 @@ Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis ato
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
== Poskyrio pavadinimas == Poskyrio pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
@@ -193,7 +182,6 @@ Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam
#pagebreak() #pagebreak()
= Skyriaus pavadinimas = Skyriaus pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
@@ -203,22 +191,22 @@ Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
#figure( #figure(
image("image1.png", width: 60%), image("Picture.png", width: 11.2cm, height: 8cm),
caption: [Kauno technologijos universiteto "Santakos" slėnio fasadas] caption: [
) Kauno technologijos universiteto „Santakos“ slėnio fasadas
],
) <image-1>
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
== Poskyrio pavadinimas == Poskyrio pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te: Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te:
1. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. 1. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam.
2. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. 2. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim.
3. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. 3. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
=== Skyrelio pavadinimas === Skyrelio pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
- Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. - Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam.
@@ -235,19 +223,14 @@ Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam
#pagebreak() #pagebreak()
= Skyriaus pavadinimas = Skyriaus pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
== Poskyrio pavadinimas == Poskyrio pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
== Poskyrio pavadinimas == Poskyrio pavadinimas
Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
@@ -255,14 +238,13 @@ Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam
#pagebreak() #pagebreak()
#unnumbered-heading[= Išvados] #unnumbered-heading[= Išvados]
1. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te. 1. Lorem ipsum dolor sit amet, eam ex decore persequeris, sit at illud lobortis atomorum. Sed dolorem quaerendum ne, prompta instructior ne pri. Et mel partiendo suscipiantur, docendi abhorreant ea sit. Recteque imperdiet eum te.
2. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has. 2. Eu eum decore inimicus consetetur, cu usu habeo corpora intellegam. Ut antiopam efficiendi deterruisset sit. Mel sint eirmod id, qui quot virtute id, dolor nemore forensibus usu id. Fugit dolore voluptatum cu vim. An vix veniam graecis insolens, sit posse iusto id. Ut vim ceteros percipit, id quo ubique recusabo, eum sint lucilius ea. In sumo inani numquam has.
#pagebreak() #pagebreak()
#bibliography-list("examples/bibl.yml") #unnumbered-heading[= Literatūros sąrašas]
1. Literatūros šaltinis
// TODO: Informacijos šaltinių sąrašas (pagal poreikį) 2. Literatūros šaltinis
// TODO: Priedai (pagal poreikį) 3. Literatūros šaltinis
4. Literatūros šaltinis
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
# Clean up previous test results
if [ -d "tests/original-res" ]; then
rm -r tests/original-res
fi
if [ -d "tests/modified-res" ]; then
rm -r tests/modified-res
fi
if [ -d "tests/modified" ]; then
rm -r tests/modified
fi
if [ -d "tests/original/src" ]; then
rm -r tests/original/src
fi
mkdir -p tests/original-res
mkdir -p tests/modified-res
# Copy current template
cp -r src/ tests/original/src
cp -r tests/original tests/modified
# replace the "#import "@local/ktu-paper:0.1.0""
# with "#import "./src/lib.typ"" in the modified files
find tests/modified -type f -name "*.typ" -exec \
sed -i 's/#import "@local\/ktu-paper:0.1.0"/#import ".\/src\/lib.typ"/g' {} \;
find tests/modified -type f -name "ataskaita.typ" -exec \
sed -i 's/setup-page/ktu-paper/g' {} \;
# Compile the original document
typst compile --root tests/original tests/original/ataskaita.typ "tests/original-res/{0p}.png"
# Compile the modified document
typst compile --root tests/modified tests/modified/ataskaita.typ "tests/modified-res/{0p}.png"
typst compile --root tests/modified tests/modified/ataskaita.typ "tests/modified.pdf"
# Compare the results
diff -r tests/original-res tests/modified-res
if [ $? -eq 0 ]; then
echo "No differences found between original and modified results."
else
echo "Differences found between original and modified results."
fi
+13
View File
@@ -0,0 +1,13 @@
[package]
name = "ktu-paper"
version = "0.2.0"
compiler = "0.15.1"
entrypoint = "src/lib.typ"
repository = "https://github.com/svetikas/ktu-paper"
authors = ["Dominykas Svetikas <https://svetikas.lt>"]
license = "MIT"
description = "KTU report template to use for writing lab reports or final thesis."
[template]
path = "template"
entrypoint = "main.typ"