Changes

Jump to navigation Jump to search
no edit summary
Style and citing for writting diploma thesis (and other works) compatible with the citing and styling rules of the Law Faculty of the University of Ljubljana (Pravna fakulteta Univerze v Ljubljani). It is not an official package of the faculty though (not that most of them ever heard of TeX).
 
Since it is used mainly for writing documents for a Slovenian faculty, I didn't bother translating my comments into English. If anyone finds use for it and needs the comments in English (or German), don't hesitate to contact me. ;)
Big thanks to everyone on the ConTeXt users' mailing list for helping me out with this! The least I can do is make it publicly available.
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)
* 0.2 - (later in the same evening) implemented a fix for legal acts so it displays the long form (without the paragraph info) the first time and in all other occurrences only the abbrevated forms (with the paragraph info). --[[User:Hook|Hook]] 19:13, 6 April 2008 (CEST)
* 0.3 - translated the comments into English --~~
== TODO ==
%%%
%%% splošne definicije dokumentageneral definitions of the document
%%%
% jeziklanguage, UTF-8 in velikost papirjaand paper size
\mainlanguage[sl]
\enableregime[utf8]
%%%
%%% splošna oblika tekstageneral text format
%%%
\setupwhitespace[medium]
% oštevilčenje stranipage numbering
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]
% hack, da ni odvečnih praznih strani zadajto remove excess blank pages in the end. ker, če uporabljaš delitev na needed because front- pa and back-matter,usage% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo številomakes the system assume it is a book and therefore it adds pages to make the number even
\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
%%%
%%% za informacije v for the information in the PDF, pobere podatke iz definicij glavnega dokumentawhich it reads from the definitions in the main document itself
%%%
% da dela to make UTF-8 tudi v work also in the PDF kazalu in informacijah o dokumentucontent/bookmarks and document information
\input spec-tst
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v takes the definitions from the main document and writes them into the PDF
\setupinteraction
[state=start,
]
% ustvari kazalo v makes the PDFcontent/bookmarks
\placebookmarks[chapter,section,subsection]
%%%
%%% kazalocontent
%%%
%%%
%%% oblika poglavij ipdchapter styling etc.
%%%
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranjuthis generates the first page around the title, using definitions from the main document and the system time
\setuphead
[title]
{
\blank[line]
(\tip) % definiraj v dokumentu define in the document npre.g. \def\tip{diplomska naloga}
\vfill
Avtor: \avtor % definiraj v dokumentu define in the document npre.g. \def\autor{Matija Šuklje}
\crlf
Mentor: \mentor % definiraj v dokumentu define in the document npre.g. \def\mentor{preljubi profesor}
\vfill
Ljubljana, \currentdate[month,year] \stopalignment \page
]
% poglavjachapters
\setuphead
[chapter]
]
% oddelkisections
\setuphead
[section]
]
% pododdelkisubsections
\setuphead
[subsection]
%%%
%%% definicije za citiranje in bibliografijocitation and bibliography definitions
%%%
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datotekito make citing and bibliography work and check the external file for bibliography
\usemodule[bib]
\input moja_bibliografija.bbl
% definicija novih ukazov za citiranjedefinition of new citation commands
% definition by: Taco Hoekwater
\def\citat[#1][#2]%
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%
\egroup}
%moja adaptacija le-tega še za zakonemy adaptation of it for the legal acts%velika pomočbig help: Aditya Mahajan%opomba note ko prvič citirašwhen citing acts for the first time, napiše dolgo oblikoit writes the long form, ampak brez člena but without the paragraph % (kot po definiciji fakultetafaculty rules). Pazi!otherwise it writes the short form together with the paragraph.
\def\zakon[#1][#2]%
{\doifdefinedelse{zakonkratko:#2}
\footnote{#1 \localkratko.}%
\egroup}
%moja adaptacija le-tega še za članke my adaptation of it to articles
\def\clanek[#1][#2]%
{\bgroup
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%
\egroup}
%moja adaptacija le-tega še za zbornikemy adaptation of it to journals
\def\zbornik[#1][#2]%
{\bgroup
\egroup}
% nekakšne splošne nastavitve za bibliografijogeneral bibliography settings
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]
\setuppublicationlist
]
%TODO — najdi boljši način za določit vrstni red v Literaturi find a better way to determine the right order in the bibliography at the end% (npre.g. po tipih by types and in znotraj teh abecedithem by alphabet)
\setuppublications
[sorttype=cite,
]
% special bibliography settings for booksposebne nastavitve za knjige v bibliografiji
\setuppublicationlayout[knjiga]{
\insertauthors{}{: }{}%
}
% posebne nastavitve za članke v bibliografijispecial bibliography settings for articles
\setuppublicationlayout[clanek]{
\insertauthors{}{: }{}%
}
% posebne nastavitve za zbornike v bibliografijispecial bibliography settings for journals
\setuppublicationlayout[zbornik]{
\insertauthors{}{: }{\unskip}%
}
% posebne nastavitve za pravne vire v bibliografijispecial bibliography settings for legal acts
\setuppublicationlayout[zakon]{%
\inserttitle{}{}{}%
<texcode>
%%%
%%% Splošne definicijeGeneral definitions
%%%
% za pravila by the rules of PF UL
\input pf_ul
\def\avtor{Matija Šuklje}
\def\kljucnebesede{delovno pravo}
% moji lastni linkimy own links
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]
%%%
%%% Začetek tekstaText start
%%%
%%%
%%% Kazalo in uvod s povzetkiIntro with content and summary
%%%
\startfrontmatter
\input knuth
{\en % začasno spremeni jezik v angleščinotemporary change language to english
\subsection[summary]{Summary}
%%%
%%% Vsebina nalogeText itself
%%%
\startbodymatter
<texcode>
% definicije dodatnega polja za skrajšane naslove in avtorjeextra fields definitions for shortened titles and authors
\newbibfield[kratko]
\newbibfield[kjournal]
\newbibfield[kauthor]
% definicije dodatnih polj potrebnih za pravne vireextra fields definitions needed for legal acts
\newbibfield[engtitle]
\newbibfield[spremembe]
%%%
%%% knjigebooks
%%%
%%%
%%% zbornikijournals
%%%
%%%
%%% članki v revijaharticles in magazines
%%%
%%%
%%% pravni virilegal acts
%%%
%TODO — zlo grdi hack-i na mestih very ugly hacks in some places nekak morš rešt to fix them :/
\startpublication[k=SPZ,
t=zakon,
\issue{87}
\spremembe{18/2007 Skl.US: U-I-70/04-18}
\pubyear{2002}\month{10}\day{17}% datum objavedate of publication \yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave date of validity %%% TODO — boljšo definicijobetter definition
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}
\stoppublication
\issue{73}
\spremembe{}
\pubyear{2007}\month{8}\day{13}% datum objavedate of publication \yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave date of validity %%% TODO — boljšo definicijobetter definition
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}
\stoppublication
 
%%%
%%% court decisions
%%%
 
%TODO — court decisions
 
%TODO — odločbe European Court of Human Rights
 
\stoppublication
%%% internet
%%%
%TODO %TODO — manjkajo odločbe sodišč, ...naredi še za internet citiranje
</texcode>
17

edits

Navigation menu