Add files via upload

This commit is contained in:
2023-12-07 13:39:03 +02:00
committed by GitHub
parent 7f88f6d9a9
commit c43c78a63b
3 changed files with 407 additions and 0 deletions
+268
View File
@@ -0,0 +1,268 @@
<?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">
<info>
<title>ISO-690 (numeric, Lietuvių kalba)</title>
<id>http://www.zotero.org/styles/iso690-numeric-lt</id>
<link href="http://www.zotero.org/styles/iso690-numeric-lt" rel="self"/>
<link href="http://www.kf.vu.lt/uploads/docs/Studiju%20dokumentai/metodiniai_nurodymai090204.pdf" rel="documentation"/>
<author>
<name>Linas Valiukas</name>
<email>shirshegsm@gmail.com</email>
</author>
<category citation-format="numeric"/>
<category field="generic-base"/>
<summary>ISO 690 style for the Vilnius university, Faculty of Communication. (Numeric version)</summary>
<updated>2021-02-14T05:16:25+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale>
<terms>
<term name="anonymous">Anon.</term>
<term name="no date">[no date]</term>
<term name="in">in</term>
<term name="online">interaktyvus</term>
<term name="accessed">žiūrėta</term>
<term name="retrieved">Available</term>
<term name="from">from</term>
<term name="page" form="short">
<single>p.</single>
<multiple>pp.</multiple>
</term>
</terms>
</locale>
<!-- macro block
-->
<macro name="author">
<names variable="author" suffix=" ">
<name sort-separator=", " initialize-with="." name-as-sort-order="all" delimiter=" - " delimiter-precedes-last="always" et-al-min="3" et-al-use-first="1">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="capitalize-first"/>
</name>
<label form="short" text-case="capitalize-first" suffix=". "/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="container_author">
<names variable="container-author" suffix=" ">
<name sort-separator=", " initialize-with="." name-as-sort-order="all" delimiter=" - " delimiter-precedes-last="always" et-al-min="3" et-al-use-first="1">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="capitalize-first"/>
</name>
<label form="short" text-case="capitalize-first" suffix=". "/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="title">
<group delimiter=" " suffix=". ">
<choose>
<if type="book thesis" match="any">
<text variable="title" font-style="italic"/>
</if>
<else-if type="paper-conference chapter article-journal article-magazine article-newspaper webpage" match="any">
<text variable="title" suffix=". "/>
<text term="in" text-case="capitalize-first" suffix=" "/>
<text macro="container_author"/>
<choose>
<if variable="container-title">
<text variable="container-title" font-style="italic" suffix=" "/>
</if>
<else>
<text variable="event" font-style="italic" suffix=" "/>
</else>
</choose>
</else-if>
</choose>
<text macro="publication_source"/>
</group>
</macro>
<macro name="publication_source">
<choose>
<if variable="URL">
<text term="online" prefix="[" suffix="]"/>
</if>
</choose>
</macro>
<macro name="editor">
<names variable="editor">
<label form="short" text-case="capitalize-first" suffix=". "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="time_data">
<group prefix=" [žiūrėta " suffix="]. ">
<!--<text term="cited" text-case="lowercase" suffix=" "/>-->
<date variable="accessed">
<date-part name="year" suffix="-"/>
<date-part name="month" suffix="-" form="numeric-leading-zeros"/>
<date-part name="day" form="numeric-leading-zeros"/>
</date>
</group>
</macro>
<macro name="availability">
<choose>
<if variable="URL">
<text value="Prieiga per internetą: "/>
<text variable="URL" prefix="&lt;" suffix="&gt;"/>
</if>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>
</if>
<else>
<!-- sine loco (whithout place) -->
<text value="[s.l.]"/>
</else>
</choose>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<date variable="issued">
<date-part name="year" suffix=". "/>
</date>
</macro>
<macro name="date">
<date variable="issued">
<date-part name="year" suffix=". "/>
</date>
</macro>
<macro name="pages">
<choose>
<if type="book thesis" match="any">
<text variable="number-of-pages" suffix=" p."/>
</if>
<else-if type="chapter paper-conference article-newspaper" match="any">
<text variable="page" prefix="p. " suffix=". "/>
</else-if>
</choose>
</macro>
<macro name="notes">
<text variable="note" suffix=". "/>
</macro>
<macro name="edition">
<text variable="edition" suffix=". Ed."/>
</macro>
<macro name="publisher_block">
<group delimiter=", ">
<text macro="publisher"/>
<text macro="year-date"/>
</group>
</macro>
<macro name="issue">
<group delimiter=", ">
<text variable="volume" prefix="Vol. "/>
<text variable="issue" prefix="no. "/>
<text variable="page" prefix="p. "/>
</group>
</macro>
<macro name="isbn">
<text prefix="ISBN " variable="ISBN"/>
</macro>
<!-- macro block end -->
<citation>
<sort>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout vertical-align="sup" prefix="[" suffix="]" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
<choose>
<if type="book">
<group delimiter=" ">
<text macro="title" prefix=" " suffix="."/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="year-date"/>
</group>
<text macro="pages"/>
<text prefix="ISBN " variable="ISBN"/>
</group>
</if>
<else-if type="article-journal article-magazine" match="any">
<text macro="title"/>
<text macro="edition"/>
<text macro="date"/>
<text macro="issue" suffix=". "/>
<text macro="time_data" suffix=". "/>
<text macro="availability"/>
</else-if>
<else-if type="article-newspaper">
<text macro="title"/>
<text macro="edition"/>
<text macro="publisher_block"/>
<text macro="pages"/>
<text macro="time_data" suffix=". "/>
<text macro="availability"/>
</else-if>
<else-if type="chapter entry entry-dictionary entry-encyclopedia" match="any">
<text macro="title"/>
<text macro="edition"/>
<text macro="publisher_block"/>
<text macro="pages"/>
<text macro="time_data"/>
<text macro="isbn"/>
<text macro="availability"/>
</else-if>
<else-if type="paper-conference">
<text macro="title"/>
<text macro="publisher_block"/>
<text macro="pages"/>
<text macro="time_data"/>
<text macro="availability"/>
</else-if>
<else-if type="thesis">
<text macro="title"/>
<text macro="publisher_block"/>
<text macro="time_data"/>
<text macro="availability"/>
</else-if>
<else-if type="patent">
<text macro="title"/>
<text macro="date"/>
<text variable="publisher-place"/>
<text macro="time_data"/>
<text macro="availability"/>
</else-if>
<else-if type="post-weblog post webpage" match="any">
<text macro="title"/>
<text macro="year-date"/>
<text macro="time_data"/>
<text macro="availability"/>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor" prefix=" "/>
</group>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="year-date"/>
</group>
<text macro="time_data"/>
<text macro="pages"/>
<text macro="notes"/>
<text macro="availability"/>
</else>
</choose>
</layout>
</bibliography>
</style>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

+139
View File
@@ -0,0 +1,139 @@
// A template function to create a stylised report
#let ataskaita(
title,
subTitles,
type: none,
author: none,
recipient: none,
document: none
) = {
// 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
];
set heading(numbering: "1.")
// 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.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 and recipients
#v(15pt)
#align(left)[
#h(300pt)*#author*
#parbreak()
#h(300pt)Studentas
#v(12pt);
#h(300pt)*#recipient*
#parbreak()
#h(300pt)Dėstytojas
]
// 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"
)
#outline(
title: "Turinys"
)
#pagebreak()
#document
]
}
// Bibliography shorthand
#let bibl(path) = {
[
#bibliography(
path,
title: "Literatūros sąrašas",
full: true
)
]
}