https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Hook&feedformat=atomWiki - User contributions [en]2024-03-28T15:00:31ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Text_Editors&diff=10298Text Editors2010-02-12T21:19:47Z<p>Hook: /* ConTeXt-aware */</p>
<hr />
<div>< [[Main Page]] | [[Related Programs]] ><br />
<br />
You can use any text editor for creating a source file for ConTeXt (in case of desperation, even notepad should do :). A lot of editors provide generic TeX syntax highlighting (not based on a word list). But some have a bit more support for ConTeXt:<br />
<br />
== ConTeXt-aware ==<br />
<br />
<table> <tr style="background:#cccccc;"><br />
<td> Editor </td><br />
<td colspan="7"> features </td><br />
<td> Linux </td><br />
<td> Win </td><br />
<td> MacOS X </td><br />
<td> Remarks </td><br />
</tr> <tr style="background:#eeeeee;"><br />
<td> [http://www.emacswiki.org/cgi-bin/wiki Emacs] with [http://www.gnu.org/software/auctex/ AUCTeX] </td><br />
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> </td><td> ? </td><br />
<td> y </td><br />
<td> y </td><br />
<td> y </td><br />
<td> Extremely powerful & highly configurable text editor for CTRL- and ALT- key lovers.<br> The official AUCTeX distribution beginning with 11.50 has ConTeXt support. Berend de Boers ConTeXt mode for Emacs has been merged with the former ConTeXt support in AUCTeX by Patrick Gundlach. [[More AUCTeX]] has further AUCTeX customization for ConTeXt. If you write documents with bibliographies, indexes, or cross-references, you may also be interested in [[Using reftex with ConTeXt]]. There is also [[ConTeXt_and_emacs-muse|Emacs-muse]] which is an extension.</td><br />
</tr> <tr><br />
<td> [[Vim]] </td><br />
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> 2 </td><td> ? </td><br />
<td> y </td><br />
<td> y </td><br />
<td> y </td><br />
<td> Extremely powerful & highly configurable text editor. It operates in different "modes": you type in text in "insert mode" and pass commands to the editor in "normal mode." Whether you prefer Vim or emacs is a religious question of the highest importance. (See also: [[Vim]])</td><br />
</tr> <tr style="background:#eeeeee;"><br />
<td>[[Scite]]</td><br />
<td> C </td><td> </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td><br />
<td> y </td><br />
<td> y </td><br />
<td> y (X11) </td><br />
<td> ConTeXt support not before v1.6.x. ConTeXt support files come with the ConTeXt distribution in directory context/data/context.properties. See also the [http://www.pragma-ade.com/general/manuals/mscite-s.pdf manual mcite.pdf]<br />
[http://homepage.mac.com/atl/tex/#other SciTE on MacOSX 10.3] is Adam's quick-and-dirty port of SciTE to Panther/X11. </td><br />
</tr><tr><br />
<td> [http://www.uoregon.edu/~koch/texshop/ TeXshop] </td><br />
<td> ? </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td><br />
<td> - </td><br />
<td> - </td><br />
<td> y (native)</td><br />
<td> Simple Cocoa IDE. [[ConTeXt_Minimals/Mac_Installation#TeXShop_installation_and_configuration|Configuration instructions]] </td><br />
</tr><tr style="background:#eeeeee;"><br />
<td> [http://gedit.sourceforge.net/ gedit] </td><br />
<td> </td><td> </td><td> S </td><td> </td><td> U </td><td> ? </td><td> </td><br />
<td> y </td><br />
<td> - </td><br />
<td> y (X11) </td><br />
<td> GNOME editor </td><br />
</tr><tr><br />
<td> [http://lumumba.luc.ac.be/jori/klat/ klat] </td><br />
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> ? </td><td> </td><br />
<td> y </td><br />
<td> - </td><br />
<td> y (X11) </td><br />
<td> KDE editor, based on kate </td><br />
</tr> <tr style="background:#eeeeee;"><br />
<td> [[iTeXMac]] </td><br />
<td> ? </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> + </td><br />
<td> - </td><br />
<td> - </td><br />
<td> y (native) </td><br />
<td> More advanced Cocoa IDE (one of its modes doesn't like tabulated source)</td><br />
</tr><tr><br />
<td> [[TextMate]] </td><br />
<td> C </td><td> - </td><td> S </td><td> T </td><td> U </td><td> ?</td><td> </td><br />
<td> - </td><br />
<td> - </td><br />
<td> y (native)</td><br />
<td> ConTeXt bundle not yet in distribution, but you can download one at [http://dl.contextgarden.net/support/context-tmbundle.dmg]. There is an [[ConTeXt Bundle for TextMate|extra page]] </td><br />
</tr> <tr style="background:#eeeeee;"><br />
<td> [[Notepad++]] </td><br />
<td> </td><td> </td><td>S </td><td>T </td><td>U </td><td>2 </td><td>+ </td><br />
<td> </td><br />
<td>y </td><br />
<td> </td><br />
<td> Npp is one of the most powerful and useful text editors around. For windows users (you can also use it under wine) wanting a more modern interface with loads of included features (see especially the TextFX menu), it deserves a close look. </td><br />
</tr><tr><br />
<td> [http://kate-editor.org Kate] </td><br />
<td> - </td><td> - </td><td> S </td><td> ? </td><td> U </td><td> - (KDE3) / 2 (KDE4) <td> + </td><br />
<td> y </td><br />
<td> y </td><br />
<td> y </td><br />
<td> Kate is an advanced multi-document text editor for KDE (KWrite is in the same package, but handles only single documents). It has already built-in LaTeX syntax highlighting, but you can install a [http://kde-files.org/content/show.php/ConTeXt+-+Syntax+Highlighting?content=54006 file that provides ConTeXt syntax highlight]. It is planned to be included in the Kate package itself in the (near) future though.<br />
</tr><tr style="background:#eeeeee;"><br />
<td> [http://kile.sourceforge.net Kile] </td><br />
<td> C </td><td> P </td><td> S </td><td> T </td><td> U </td><td> - (KDE3) / 2 (KDE4) </td><td> + </td><br />
<td> y </td><br />
<td> y </td><br />
<td> y </td><br />
<td> Kile is a very advanced KDE-based editor/environment that primarily aims at LaTeX users, but since 2.x it has native ConTeXt support as well.Amongst other advanced features, Kile has to offer project management, inverse and forward TEX<->DVI search, side tree view of the document structure (e.g. by chapters, sections etc.), insertion of TeX and ConTeXt commands, insertion of symbols.<br />
</tr><br />
<tr><br />
<td> [http://tuppis.com/smultron/ Smultron]</td><br />
<td> - </td><td> P </td><td> S </td><td> T </td><td> - </td><td> - </td><td> - </td><br />
<td> - </td><br />
<td> - </td><br />
<td> y </td><br />
<td> [[ConTeXt_Minimals/Mac_Installation#Smultron_installation_and_configuration|Configuration instructions]] </td><br />
</tr> <tr style="background:#eeeeee;"><br />
<td>[http://www.tug.org/texworks/ TeXWorks]</td><br />
<td> </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td><br />
<td> (y) </td><br />
<td> y </td><br />
<td> y </td><br />
<td> </td><br />
</tr><br />
</table><br />
<br />
'''features:''' <br />
* C = TeX/ConTeXt command completion <br />
* P = PDF preview <br />
* S = TeX/ConTeXt syntax highlighting <br />
* T = ConTeXt typesetting<br />
* U = Unicode (UTF-8) handling<br />
* 2 = bidirectional edit (right-to-left)<br />
* + = more…<br />
* ? = previous feature probable but unsure<br />
<br />
== Other editors ==<br />
<br />
The following editors have no specific ConTeXt support, but do a good job for generic (La)TeX typesetting, so you may use them for ConTeXt as well:<br />
<table><br />
<tr style="background:#cccccc;"><br />
<td> Editor </td><br />
<td colspan="7"> features </td><br />
<td> Linux </td><br />
<td> Win </td><br />
<td> MacOS X </td><br />
<td> Remarks </td><br />
</tr><tr style="background:#eeeeee;"><br />
<td> [http://www.winedt.com/ WinEdt]</td><br />
<td> - </td><td> - </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td><br />
<td> - </td><br />
<td> y </td><br />
<td> - </td><br />
<td> A nice, configurable Windows editor, very suitable for newbies to (La)TeX. A large collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker, but no support for UTF yet.<br> LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button. This is supported For ConTeXt also. You can configure it easily.<br>''(WinEdt is not free software, but shareware with 31+ days trial.)''</td><br />
</tr><tr><br />
<td> [http://nedit.org/ NEdit]</td><br />
<td> - </td><td> - </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td><br />
<td> y </td><br />
<td> y </td><br />
<td> ? </td><br />
<td>X server (Cygwin/Xorg) is needed to run Nedit on Windows</td><br />
</tr><tr style="background:#eeeeee;"><br />
<td> [http://www.toolscenter.org/ TeXnicCenter]</td><br />
<td> - </td><td> P </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td><br />
<td> - </td><br />
<td> y </td><br />
<td> - </td><br />
<td> Oriented towards the use of LaTeX, but can also be used for processing ConTeXt documents. A large collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker.<br> LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button (it is easy to [[Configure TeXnicCenter for ConTeXt]] use).<br>''(TeXnicCenter is freely available under GPL).''</td></tr><br />
<br />
</table><br />
<br />
== SyncTeX ==<br />
<br />
For synchronising between text in PDF and TeX source see [[SyncTeX]].<br />
<br />
[[Category:Text Editors]]</div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8557Law Faculty University of Ljubljana Styling and citations2008-04-16T16:58:03Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)<br />
* 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)<br />
* 0.3 - translated the comments into English --[[User:Hook|Hook]] 18:55, 16 April 2008 (CEST)<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% general definitions of the document<br />
%%%<br />
<br />
% language, UTF-8 and paper size<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% general text format<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% page numbering<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack to remove excess blank pages in the end. needed because front- and back-matter usage<br />
% makes the system assume it is a book and therefore it adds pages to make the number even<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% for the information in the PDF, which it reads from the definitions in the main document itself<br />
%%%<br />
<br />
% to make UTF-8 work also in the PDF content/bookmarks and document information<br />
\input spec-tst<br />
<br />
% takes the definitions from the main document and writes them into the PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% makes the PDF content/bookmarks<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% content<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% chapter styling etc.<br />
%%%<br />
<br />
% this generates the first page around the title, using definitions from the main document and the system time<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % define in the document — e.g. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % define in the document — e.g. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % define in the document — e.g. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% chapters<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% sections<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% subsections<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% citation and bibliography definitions<br />
%%%<br />
<br />
% to make citing and bibliography work and check the external file for bibliography<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definition of new citation commands<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
% my adaptation of it for the legal acts<br />
% big help: Aditya Mahajan<br />
% note — when citing acts for the first time, it writes the long form, but without the paragraph <br />
% (faculty rules). otherwise it writes the short form together with the paragraph.<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
% my adaptation of it to articles<br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
% my adaptation of it to journals<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% general bibliography settings<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — find a better way to determine the right order in the bibliography at the end<br />
% (e.g. by types and in them by alphabet)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% special bibliography settings for books<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% special bibliography settings for articles<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for journals<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for legal acts<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% General definitions<br />
%%%<br />
<br />
% by the rules of PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% my own links<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Text start<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Intro with content and summary<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % temporary change language to english<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Text itself<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% extra fields definitions for shortened titles and authors<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% extra fields definitions needed for legal acts<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% books<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% journals<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% articles in magazines<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% legal acts<br />
%%%<br />
<br />
%TODO — very ugly hacks in some places — fix them :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% date of publication<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% date of publication<br />
\yearfiled{}\monthfiled{}\dayfiled{} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% court decisions<br />
%%%<br />
<br />
%TODO — court decisions<br />
<br />
%TODO — European Court of Human Rights decisions<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO — internet citation<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8556Law Faculty University of Ljubljana Styling and citations2008-04-16T16:56:51Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)<br />
* 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)<br />
* 0.3 - translated the comments into English --[[User:Hook|Hook]] 18:55, 16 April 2008 (CEST)<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% general definitions of the document<br />
%%%<br />
<br />
% language, UTF-8 and paper size<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% general text format<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% page numbering<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack to remove excess blank pages in the end. needed because front- and back-matter usage<br />
% makes the system assume it is a book and therefore it adds pages to make the number even<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% for the information in the PDF, which it reads from the definitions in the main document itself<br />
%%%<br />
<br />
% to make UTF-8 work also in the PDF content/bookmarks and document information<br />
\input spec-tst<br />
<br />
% takes the definitions from the main document and writes them into the PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% makes the PDF content/bookmarks<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% content<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% chapter styling etc.<br />
%%%<br />
<br />
% this generates the first page around the title, using definitions from the main document and the system time<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % define in the document — e.g. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % define in the document — e.g. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % define in the document — e.g. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% chapters<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% sections<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% subsections<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% citation and bibliography definitions<br />
%%%<br />
<br />
% to make citing and bibliography work and check the external file for bibliography<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definition of new citation commands<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
% my adaptation of it for the legal acts<br />
% big help: Aditya Mahajan<br />
% note — when citing acts for the first time, it writes the long form, but without the paragraph <br />
% (faculty rules). otherwise it writes the short form together with the paragraph.<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
% my adaptation of it to articles<br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
% my adaptation of it to journals<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% general bibliography settings<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — find a better way to determine the right order in the bibliography at the end<br />
% (e.g. by types and in them by alphabet)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% special bibliography settings for books<br />
posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% special bibliography settings for articles<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for journals<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for legal acts<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% General definitions<br />
%%%<br />
<br />
% by the rules of PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% my own links<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Text start<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Intro with content and summary<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % temporary change language to english<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Text itself<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% extra fields definitions for shortened titles and authors<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% extra fields definitions needed for legal acts<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% books<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% journals<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% articles in magazines<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% legal acts<br />
%%%<br />
<br />
%TODO — very ugly hacks in some places — fix them :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% date of publication<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% date of publication<br />
\yearfiled{}\monthfiled{}\dayfiled{} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% court decisions<br />
%%%<br />
<br />
%TODO — court decisions<br />
<br />
%TODO — European Court of Human Rights decisions<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO — internet citation<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8555Law Faculty University of Ljubljana Styling and citations2008-04-16T16:55:46Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)<br />
* 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)<br />
* 0.3 - translated the comments into English --[[User:Hook|Hook]] 18:55, 16 April 2008 (CEST)<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% general definitions of the document<br />
%%%<br />
<br />
% language, UTF-8 and paper size<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% general text format<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% page numbering<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack to remove excess blank pages in the end. needed because front- and back-matter usage<br />
% makes the system assume it is a book and therefore it adds pages to make the number even<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% for the information in the PDF, which it reads from the definitions in the main document itself<br />
%%%<br />
<br />
% to make UTF-8 work also in the PDF content/bookmarks and document information<br />
\input spec-tst<br />
<br />
% takes the definitions from the main document and writes them into the PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% makes the PDF content/bookmarks<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% content<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% chapter styling etc.<br />
%%%<br />
<br />
% this generates the first page around the title, using definitions from the main document and the system time<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % define in the document — e.g. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % define in the document — e.g. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % define in the document — e.g. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% chapters<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% sections<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% subsections<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% citation and bibliography definitions<br />
%%%<br />
<br />
% to make citing and bibliography work and check the external file for bibliography<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definition of new citation commands<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
% my adaptation of it for the legal acts<br />
% big help: Aditya Mahajan<br />
% note — when citing acts for the first time, it writes the long form, but without the paragraph <br />
% (faculty rules). otherwise it writes the short form together with the paragraph.<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
% my adaptation of it to articles<br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
% my adaptation of it to journals<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% general bibliography settings<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — find a better way to determine the right order in the bibliography at the end<br />
% (e.g. by types and in them by alphabet)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% special bibliography settings for books<br />
posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% special bibliography settings for articles<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for journals<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for legal acts<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% General definitions<br />
%%%<br />
<br />
% by the rules of PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% my own links<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Text start<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Intro with content and summary<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % temporary change language to english<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Text itself<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% extra fields definitions for shortened titles and authors<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% extra fields definitions needed for legal acts<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% books<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% journals<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% articles in magazines<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% legal acts<br />
%%%<br />
<br />
%TODO — very ugly hacks in some places — fix them :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% date of publication<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% date of publication<br />
\yearfiled{}\monthfiled{}\dayfiled{} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% court decisions<br />
%%%<br />
<br />
%TODO — court decisions<br />
<br />
%TODO — odločbe European Court of Human Rights<br />
<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO — naredi še za internet citiranje<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8554Law Faculty University of Ljubljana Styling and citations2008-04-16T16:54:31Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)<br />
* 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)<br />
* 0.3 - translated the comments into English --~~<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% general definitions of the document<br />
%%%<br />
<br />
% language, UTF-8 and paper size<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% general text format<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% page numbering<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack to remove excess blank pages in the end. needed because front- and back-matter usage<br />
% makes the system assume it is a book and therefore it adds pages to make the number even<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% for the information in the PDF, which it reads from the definitions in the main document itself<br />
%%%<br />
<br />
% to make UTF-8 work also in the PDF content/bookmarks and document information<br />
\input spec-tst<br />
<br />
% takes the definitions from the main document and writes them into the PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% makes the PDF content/bookmarks<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% content<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% chapter styling etc.<br />
%%%<br />
<br />
% this generates the first page around the title, using definitions from the main document and the system time<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % define in the document — e.g. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % define in the document — e.g. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % define in the document — e.g. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% chapters<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% sections<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% subsections<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% citation and bibliography definitions<br />
%%%<br />
<br />
% to make citing and bibliography work and check the external file for bibliography<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definition of new citation commands<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
% my adaptation of it for the legal acts<br />
% big help: Aditya Mahajan<br />
% note — when citing acts for the first time, it writes the long form, but without the paragraph <br />
% (faculty rules). otherwise it writes the short form together with the paragraph.<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
% my adaptation of it to articles<br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
% my adaptation of it to journals<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% general bibliography settings<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — find a better way to determine the right order in the bibliography at the end<br />
% (e.g. by types and in them by alphabet)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% special bibliography settings for books<br />
posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% special bibliography settings for articles<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for journals<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% special bibliography settings for legal acts<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% General definitions<br />
%%%<br />
<br />
% by the rules of PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% my own links<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Text start<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Intro with content and summary<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % temporary change language to english<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Text itself<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% extra fields definitions for shortened titles and authors<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% extra fields definitions needed for legal acts<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% books<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% journals<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% articles in magazines<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% legal acts<br />
%%%<br />
<br />
%TODO — very ugly hacks in some places — fix them :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% date of publication<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% date of publication<br />
\yearfiled{}\monthfiled{}\dayfiled{} % date of validity %%% TODO — better definition<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% court decisions<br />
%%%<br />
<br />
%TODO — court decisions<br />
<br />
%TODO — odločbe European Court of Human Rights<br />
<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO — naredi še za internet citiranje<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=User:Hook&diff=8537User:Hook2008-04-09T07:28:16Z<p>Hook: </p>
<hr />
<div>'''Matija Šuklje'''<br />
<br />
e-mail: matija.suklje@rutka.net<br />
<br />
www: http://matija.suklje.name<br />
<br />
aim: hookofsilver<br />
<br />
icq: 110183360<br />
<br />
jabber/g-talk: matija.suklje@gabbler.org<br />
<br />
msn: matija.suklje@rutka.net<br />
<br />
yahoo: matija_suklje</div>Hookhttps://wiki.contextgarden.net/index.php?title=User:Hook&diff=8536User:Hook2008-04-09T07:27:45Z<p>Hook: </p>
<hr />
<div>Matija Šuklje<br />
<br />
e-mail: matija.suklje@rutka.net<br />
<br />
www: http://matija.suklje.name<br />
<br />
aim: hookofsilver<br />
<br />
icq: 110183360<br />
<br />
jabber/g-talk: matija.suklje@gabbler.org<br />
<br />
msn: matija.suklje@rutka.net<br />
<br />
yahoo: matija_suklje</div>Hookhttps://wiki.contextgarden.net/index.php?title=User:Hook&diff=8535User:Hook2008-04-09T07:27:22Z<p>Hook: New page: Matija Šuklje -- e-mail: matija.suklje@rutka.net www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: matija.suklje@gabbler.org msn: matija.suklje@rutka.net y...</p>
<hr />
<div>Matija Šuklje<br />
<br />
-- <br />
e-mail: matija.suklje@rutka.net<br />
www: http://matija.suklje.name<br />
<br />
aim: hookofsilver<br />
icq: 110183360<br />
jabber/g-talk: matija.suklje@gabbler.org<br />
msn: matija.suklje@rutka.net<br />
yahoo: matija_suklje</div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8534Law Faculty University of Ljubljana Styling and citations2008-04-09T07:25:54Z<p>Hook: /* ChangeLog */</p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - initial submition --[[User:Hook|Hook]] 17:05, 6 April 2008 (CEST)<br />
* 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)<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8533Law Faculty University of Ljubljana Styling and citations2008-04-09T07:24:03Z<p>Hook: /* ChangeLog */</p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 0.1 - 2008-04-06 - initial submition --[[User:Hook|Hook]] 09:24, 9 April 2008 (CEST)<br />
* 0.2 - 2008-04-06 - (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]] 09:24, 9 April 2008 (CEST)<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8532Law Faculty University of Ljubljana Styling and citations2008-04-09T07:23:12Z<p>Hook: /* Introduction */</p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]]<br />
<br />
== ChangeLog ==<br />
<br />
* 2008-04-06 - initial submition<br />
* 2008-04-06 - (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).<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8531Law Faculty University of Ljubljana Styling and citations2008-04-09T07:22:33Z<p>Hook: /* ChangeLog */</p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]] 20:51, 6 April 2008 (CEST)<br />
<br />
== ChangeLog ==<br />
<br />
* 2008-04-06 - initial submition<br />
* 2008-04-06 - (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).<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8529Law Faculty University of Ljubljana Styling and citations2008-04-06T19:11:05Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
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).<br />
<br />
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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]] 20:51, 6 April 2008 (CEST)<br />
<br />
== ChangeLog ==<br />
<br />
2008-04-06 - initial submition<br />
2008-04-06 - (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).<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8528Law Faculty University of Ljubljana Styling and citations2008-04-06T18:53:28Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
Style and citing for writting diploma thesis (and other works) compatible with the Law Faculty of the University of Ljubljana (Pravna fakulteta Univerze v Ljubljani)<br />
<br />
This is not an official styling, it is just what I use for my works on my university. 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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]] 20:51, 6 April 2008 (CEST)<br />
<br />
== ChangeLog ==<br />
<br />
2008-04-06 - initial submition<br />
2008-04-06 - (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).<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. Also I still lack citation rules for internet and (various) court decisions. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Sample bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8527Law Faculty University of Ljubljana Styling and citations2008-04-06T18:51:27Z<p>Hook: </p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
Style and citing for writting diploma thesis (and other works) compatible with the Law Faculty of the University of Ljubljana (Pravna fakulteta Univerze v Ljubljani)<br />
<br />
This is not an official styling, it is just what I use for my works on my university. 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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]] 20:51, 6 April 2008 (CEST)<br />
<br />
== ChangeLog ==<br />
<br />
2008-04-06 - initial submition<br />
2008-04-06 - (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).<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is to get the \placepublications in a way to display separately cited works from the bibliography in different blocks by their type (e.g. t=zakon) and inside these blocks by alphabet. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%velika pomoč: Aditya Mahajan<br />
%opomba — ko prvič citiraš, napiše dolgo obliko, ampak brez člena (kot po definiciji fakulteta). Pazi!<br />
\def\zakon[#1][#2]%<br />
{\doifdefinedelse{zakonkratko:#2}<br />
{\zakonkratko[#1][#2]}<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[title][#2] to \localtitle<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[spremembe][#2] to \localspremembe<br />
\footnote{\localtitle\ (\localkratko), \localjournal, št. \localissue/\localvolume\ \localspremembe.}%<br />
\egroup}<br />
\setvalue{zakonkratko:#2}{done}<br />
}<br />
<br />
\def\zakonkratko[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
%TODO — najdi boljši način za določit vrstni red v Literaturi (npr. po tipih in znotraj teh abecedi)<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=no,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document with comments on how to use it (and fill-in texts)<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
% \input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
Nek drug zakon\zakon[][ZPP-UPB3] in je prav\zakon[7. člen][ZPP-UPB3] tako relevanten\zakon[103. člen][ZPP-UPB3] pa spet članek v zborniku \zbornik[][raz_purity]<br />
<br />
pa še zakon\zakon[33. člen][SPZ] ...in še enkrat isti zakon\zakon[12. člen][SPZ]<br />
<br />
<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
\startpublication[k=ZPP-UPB3,<br />
t=zakon,<br />
y=2004,<br />
s=ZPP<br />
]<br />
\title{Zakon o pravdnem postopku (uradno prečiščeno besedilo)}<br />
\kratko{ZPP-UPB3}<br />
\engtitle{Civil Procedure Act (consolidated text)}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2007}<br />
\issue{73}<br />
\spremembe{}<br />
\pubyear{2007}\month{8}\day{13}% datum objave<br />
\yearfiled{}\monthfiled{}\dayfiled{} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/objava.jsp?urlid=200773&stevilka=3965}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Law_Faculty_University_of_Ljubljana_Styling_and_citations&diff=8526Law Faculty University of Ljubljana Styling and citations2008-04-06T17:03:21Z<p>Hook: New page: < Sample documents == Introduction == Style and citing for writting diploma thesis (and other works) compatible with the Law Faculty of the University of Ljubljana (Pravna fakulteta ...</p>
<hr />
<div>< [[Sample documents]]<br />
<br />
== Introduction ==<br />
<br />
Style and citing for writting diploma thesis (and other works) compatible with the Law Faculty of the University of Ljubljana (Pravna fakulteta Univerze v Ljubljani)<br />
<br />
This is not an official styling, it is just what I use for my works on my university. 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. ;)<br />
<br />
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.<br />
<br />
--[[User:Hook|Hook]] 19:03, 6 April 2008 (CEST)<br />
<br />
== ChangeLog ==<br />
<br />
2008-04-06 - initial submition<br />
<br />
<br />
== TODO ==<br />
<br />
What it misses the most right now is the citation rules for (various) court decisions and a more elegant solution to (automatically) show cited legal acts in the long form only the first time and in later citing in the shorter form. I may change the fonts and layout a bit as well. But that's low priority.<br />
<br />
== Environment ==<br />
<br />
Here's the environment .tex file.<br />
<br />
<texcode><br />
%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske<br />
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani<br />
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.<br />
<br />
%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis<br />
%d on the Law faculty, University of Ljubljana<br />
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name<br />
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.<br />
<br />
%%%<br />
%%% splošne definicije dokumenta<br />
%%%<br />
<br />
% jezik, UTF-8 in velikost papirja<br />
\mainlanguage[sl]<br />
\enableregime[utf8]<br />
\setuppapersize[a4][a4]<br />
<br />
%%%<br />
%%% splošna oblika teksta<br />
%%%<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
\setupwhitespace[medium]<br />
<br />
% oštevilčenje strani<br />
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]<br />
<br />
% hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter,<br />
% sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
%%%<br />
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta<br />
%%%<br />
<br />
% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu<br />
\input spec-tst<br />
<br />
% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF<br />
\setupinteraction<br />
[state=start,<br />
title={\naslov},<br />
subtitle={\tip},<br />
author={\avtor},<br />
keyword={\tip, \kljucnebesede}<br />
]<br />
<br />
% ustvari kazalo v PDF<br />
\placebookmarks[chapter,section,subsection]<br />
<br />
%%%<br />
%%% kazalo<br />
%%%<br />
<br />
\setupcombinedlist[content][alternative=c]<br />
\setuplist[chapter][style=bold,alternative=b,width=1.5em]<br />
\setuplist[section][margin=1.5em,width=2em]<br />
\setuplist[subsection][margin=3.5em,width=3em]<br />
\setuplist[subsubsection][margin=6.5em,width=4em]<br />
<br />
%%%<br />
%%% oblika poglavij ipd.<br />
%%%<br />
<br />
% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju<br />
\setuphead<br />
[title]<br />
[align=middle,<br />
textstyle=\sc,<br />
style=\bfd,<br />
before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},<br />
after=<br />
{<br />
\blank[line]<br />
(\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga}<br />
\vfill<br />
Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje}<br />
\crlf<br />
Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor}<br />
\vfill<br />
Ljubljana, \currentdate[month,year] \stopalignment \page<br />
}<br />
]<br />
<br />
% poglavja<br />
\setuphead<br />
[chapter]<br />
[header=empty,<br />
textstyle=\sc,<br />
style=\bfb,<br />
before={\page\noindentation\hairline\blank[line]},<br />
after={\nowhitespace\hairline\blank[4*line]}<br />
]<br />
<br />
% oddelki<br />
\setuphead<br />
[section]<br />
[page=yes,<br />
textstyle=\sc,<br />
style=\tfa,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
% pododdelki<br />
\setuphead<br />
[subsection]<br />
[style=\it,<br />
align=right,<br />
before={\blank[2*line]},<br />
after={\blank[line]}<br />
]<br />
<br />
%%%<br />
%%% definicije za citiranje in bibliografijo<br />
%%%<br />
<br />
% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki<br />
\usemodule[bib]<br />
\input moja_bibliografija.bbl<br />
<br />
% definicija novih ukazov za citiranje<br />
% definition by: Taco Hoekwater<br />
\def\citat[#1][#2]%<br />
{\bgroup<br />
% this adds the reference to the publication list<br />
% in the back:<br />
\nocite[#2]%<br />
% you can get all single-valued fields with this<br />
% \commands (title,issue,journal etc.) but not the<br />
% \author,\artauthor and \editor because they have<br />
% special arguments:<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[pubyear][#2] to \localyear<br />
% you may want more fields and/or better formatting:<br />
\footnote{\localavtor, {\sc\localkratko} (\localyear)#1.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zakone<br />
%TODO — ne najdem kako bi prvič citiral z vsemi info in šele kasneje vedno samo z okrajšavo<br />
% možna rešitev bi bila, da bi tu definiral vse info in nato vsakič samo uporabljal \footnote za krajše<br />
\def\zakon[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kratko][#2] to \localkratko<br />
\footnote{#1 \localkratko.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za članke <br />
\def\clanek[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[journal][#2] to \localjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: \localjournal, {\localvolume} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
%moja adaptacija le-tega še za zbornike<br />
\def\zbornik[#1][#2]%<br />
{\bgroup<br />
\nocite[#2]%<br />
\getcitedata[kauthor][#2] to \localavtor<br />
\getcitedata[kratko][#2] to \localkratko<br />
\getcitedata[kjournal][#2] to \localkjournal<br />
\getcitedata[volume][#2] to \localvolume<br />
\getcitedata[issue][#2] to \localissue<br />
\getcitedata[pubyear][#2] to \localyear<br />
\getcitedata[pages][#2] to \localpages<br />
\footnote{\localavtor, \localkratko, v: {\sc \localkjournal} (\localyear) \localissue\unskip, str. \localpages.}%<br />
\egroup}<br />
<br />
% nekakšne splošne nastavitve za bibliografijo<br />
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]<br />
\setuppublicationlist<br />
[title={{\sca\naslov} \blank[line]},<br />
% totallist=6,<br />
author=\invertedauthor,<br />
artauthor=\invertedauthor,<br />
editor=\invertedauthor,<br />
namesep={, },<br />
lastnamesep={ in },<br />
finalnamesep={ in },<br />
authoretallimit=10,<br />
authoretaltext={ in drugi},<br />
artauthoretallimit=10,<br />
artauthoretaltext={ in drugi},<br />
editoretallimit=10,<br />
editoretaltext={ in drugi},<br />
]<br />
<br />
\setuppublications<br />
[sorttype=cite,<br />
numbering=yes,<br />
% autohang=yes,<br />
criterium=cite<br />
]<br />
<br />
% posebne nastavitve za knjige v bibliografiji<br />
\setuppublicationlayout[knjiga]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{\bgroup\sc}{\egroup}{}%<br />
\insertrevision{ (}{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{.}{}%<br />
}<br />
<br />
% posebne nastavitve za članke v bibliografiji<br />
\setuppublicationlayout[clanek]{<br />
\insertauthors{}{: }{}%<br />
\inserttitle{}{}{}%<br />
\insertjournal{, v: }{}{}%<br />
\insertvolume{, }{}{\unskip}%<br />
\insertpubyear{ (}{)}{}%<br />
\insertissue{ }{}{\unskip}%<br />
\insertpages{, str. }{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za zbornike v bibliografiji<br />
\setuppublicationlayout[zbornik]{<br />
\insertauthors{}{: }{\unskip}%<br />
\inserttitle{}{}{\unskip}%<br />
\insertjournal{, v: \bgroup\sc}{\egroup}{\unskip}%<br />
\inserteditors{ (ur. }{)}{\unskip}%<br />
\insertpubname{, }{}{\unskip}%<br />
\insertcity{, }{}{\unskip}%<br />
\insertpubyear{ }{}{\unskip}%<br />
\insertpages{, str.}{.}{\unskip}%<br />
}<br />
<br />
% posebne nastavitve za pravne vire v bibliografiji<br />
\setuppublicationlayout[zakon]{%<br />
\inserttitle{}{}{}%<br />
\insertkratko{ (}{)}{\unskip}%<br />
\insertjournal{, }{, }{\unskip}%<br />
\insertissue{št. }{}{}%<br />
\insertvolume{/}{ }{}%<br />
\insertspremembe{}{.}{\unskip}%<br />
}<br />
<br />
%TODO — prenesi vse kar se le da iz glavnega dokumenta sem<br />
</texcode><br />
<br />
<br />
== Sample document ==<br />
<br />
Here's a sample document (with text) on how to use it.<br />
<br />
<texcode><br />
%%%<br />
%%% Splošne definicije<br />
%%%<br />
<br />
% za pravila PF UL<br />
\input pf_ul<br />
\def\avtor{Matija Šuklje}<br />
\def\mentor{as. mag. Luka Tičar}<br />
\def\tip{seminarska naloga}<br />
\def\naslov{Konkurenčna klavzula v delovni pogodbi}<br />
\def\kljucnebesede{delovno pravo}<br />
<br />
% moji lastni linki<br />
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]<br />
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]<br />
<br />
%%%<br />
%%% Začetek teksta<br />
%%%<br />
<br />
\starttext<br />
\startstandardmakeup<br />
\title{\naslov}<br />
\stopstandardmakeup<br />
<br />
%%%<br />
%%% Kazalo in uvod s povzetki<br />
%%%<br />
\startfrontmatter<br />
\placecontent<br />
<br />
\section[uvod]{Uvod}<br />
<br />
\subsection[povzetek]{Povzetek}<br />
<br />
\input knuth<br />
<br />
{\en % začasno spremeni jezik v angleščino<br />
\subsection[summary]{Summary}<br />
<br />
\input knuth<br />
}<br />
\stopfrontmatter<br />
<br />
%%%<br />
%%% Vsebina naloge<br />
%%%<br />
\startbodymatter<br />
<br />
\section[1]{Prvo poglavje}<br />
<br />
\input tufte<br />
<br />
\subsection[1.1]{podpoglavje}<br />
<br />
\input knuth<br />
<br />
tuki citiram, veš?<br />
<br />
knjiga\citat[, str. 12][pavcnik_teorija] \crlf<br />
več avtorjev ... \citat[, str. 102-232][kusej_uvod] \crlf<br />
članek v zborniku \zbornik[, str. 5][raz_purity] \crlf<br />
pa še {\em poudarjeno nekaj} kar sem {\em res} prebral \clanek[][damjan_gpl3] \crlf<br />
ena Galičeva objava v ZZR \clanek[][galic_vloga] \crlf<br />
<br />
pa še zakon\zakon[33. člen][SPZ]<br />
<br />
\stopbodymatter<br />
<br />
%%%<br />
%%% Appendix<br />
%%%<br />
\startappendices<br />
<br />
\page<br />
\completepublications<br />
<br />
\stopappendices<br />
\stoptext<br />
</texcode><br />
<br />
<br />
== Bibliography ==<br />
<br />
...and the sample bibliography file I used in the sample document. It includes all citations types from the environment as well.<br />
<br />
<texcode><br />
% definicije dodatnega polja za skrajšane naslove in avtorje<br />
\newbibfield[kratko]<br />
\newbibfield[kjournal]<br />
\newbibfield[kauthor]<br />
<br />
% definicije dodatnih polj potrebnih za pravne vire<br />
\newbibfield[engtitle]<br />
\newbibfield[spremembe]<br />
<br />
%%%<br />
%%% knjige<br />
%%%<br />
<br />
\startpublication[k=pavcnik_teorija,<br />
a=Pavcnik,<br />
t=knjiga,<br />
y=2001,<br />
]<br />
\title{Teorija prava}<br />
\kratko{Teorija prava}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\kauthor{M. Pavčnik}<br />
\revision{2. izdaja}<br />
\pubyear{2001}<br />
\pubname{Cankarjeva založba}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
\startpublication[k=kusej_uvod,<br />
a=Kusej,<br />
t=knjiga,<br />
y=1996<br />
]<br />
\title{Uvod v pravoznanstvo}<br />
\kratko{Uvod}<br />
\author{Gorazd}[G.]{}{Kušej}<br />
\author{Marijan}[M.]{}{Pavčnik}<br />
\author{Anton}[A.]{}{Perenič}<br />
\kauthor{G. Kušej, M. Pavčnik, A. Perenič}<br />
\revision{ponatis 3. spremenjene in dopolnjene izd.}<br />
\pubyear{1996}<br />
\pubname{Uradni list Republike Slovenije}<br />
\city{Ljubljana}<br />
\stoppublication<br />
<br />
%%%<br />
%%% zborniki<br />
%%%<br />
<br />
\startpublication[k=raz_purity,<br />
a=Raz,<br />
t=zbornik,<br />
y=1998,<br />
]<br />
\title{The Purity of the Pure Theory of Law}<br />
\kratko{The Purity}<br />
\author{Joseph}[J.]{}{Raz}<br />
\kauthor{J. Raz}<br />
\journal{Norms and Normativity — Critcal Perspectives on Kelsenian Themes}<br />
\kjournal{Norms and Normativity}<br />
\editor{}[S. L.]{}{Paulson}<br />
\editor{}[B.]{}{Litschewski Paulson}<br />
\pubname{Clarendon Press}<br />
\city{Oxford}<br />
\pubyear{1998}<br />
\pages{237-252}<br />
\stoppublication<br />
<br />
%%%<br />
%%% članki v revijah<br />
%%%<br />
<br />
\startpublication[k=damjan_gpl3,<br />
a=Damjan,<br />
t=clanek,<br />
y=2007<br />
]<br />
\title{Izšla je 3. verzija licence GPL}<br />
\kratko{GPL3}<br />
\author{Matija}[M.]{}{Damjan}<br />
\kauthor{M. Damjan}<br />
\journal{Pravna praksa}<br />
\volume{26}<br />
\issue{37}<br />
\pubyear{2007}<br />
\pages{II-VIII}<br />
\stoppublication<br />
<br />
\startpublication[k=galic_vloga,<br />
a=Galic,<br />
t=clanek,<br />
y=2002<br />
]<br />
\title{Vloga sodnika pri spodbujanju sodnih poravnav}<br />
\kratko{Vloga sodnika}<br />
\author{Aleš}[A.]{}{Galič}<br />
\kauthor{A. Galič}<br />
\journal{Zbornik znanstvenih razprav}<br />
\volume{LXII}<br />
\pubyear{2002}<br />
\pages{51-72}<br />
\stoppublication<br />
<br />
%%%<br />
%%% pravni viri<br />
%%%<br />
<br />
%TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/<br />
\startpublication[k=SPZ,<br />
t=zakon,<br />
y=2002,<br />
s=SPZ<br />
]<br />
\title{Stvarnopravni zakonik}<br />
\kratko{SPZ}<br />
\engtitle{Law of Property Code}<br />
\organization{Državni zbor RS}<br />
\journal{Ur. l. RS}<br />
\volume{2002}<br />
\issue{87}<br />
\spremembe{18/2007 Skl.US: U-I-70/04-18}<br />
\pubyear{2002}\month{10}\day{17}% datum objave<br />
\yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo<br />
\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}<br />
\stoppublication<br />
<br />
%%%<br />
%%% internet<br />
%%%<br />
%TODO<br />
<br />
%TODO — manjkajo odločbe sodišč, ...<br />
</texcode></div>Hookhttps://wiki.contextgarden.net/index.php?title=Sample_documents&diff=8525Sample documents2008-04-06T16:46:49Z<p>Hook: </p>
<hr />
<div>< [[Main Page]]<br />
<br />
== PRAGMA Documents ==<br />
* [[This Way|Magazines]] (source code is in the document)<br />
* [http://context.aanhet.net/svn/manuals Sources] of (some) [http://www.pragma-ade.com/overview.htm official manuals]. <br />
* pdftex Documentation:<br />
** [http://www.pragma-ade.com/pdftex/pdftex-t.tex Source]<br />
** [http://www.pragma-ade.com/pdftex/pdftex-s.pdf Screen] | [http://www.pragma-ade.com/pdftex/pdftex-a.pdf A4] | [http://www.pragma-ade.com/pdftex/pdftex-b.pdf A5 Booklet] | [http://www.pragma-ade.com/pdftex/pdftex-l.pdf Letter]<br />
<br />
== Simple Documents ==<br />
* Letter: german DIN [[Letter style]] by Holger Schöner<br />
* Building application: French [[Bauplan style]]<br />
* [[BusinessCard]]<br />
* Research paper: [[MLA style]]<br />
* [http://www.pragma-ade.com/third/siep/samples.zip Sample documents (broken link)] by Siep Kroonenberg<br />
* [http://pmrb.free.fr/work/OS/ConTeXt/e-phd.tex Style file] for PhD thesis with KOMA-script layout<br />
* [[Law Faculty University of Ljubljana Styling and citations]] for diploma thesis and other works (Pravna fakulteta Univerze v Ljubljani)<br />
* A very simple cover page: [[A Very Simple Cover Page]]<br />
* [[Calendar script]]<br />
* [[Curriculum Vitae]]<br />
<br />
== [[Presentations]] (screen documents) ==<br />
* Presentation: ''fiëé'' [[ConTeXt info style]] by [[User:Hraban|Hraban]] with much help from [http://www.pragma-ade.com Hans]<br />
* Presentation: [[Skdk style]] by [[User:Hraban|Hraban]]<br />
* Presentation: A sample conference presentation ([http://dpdx.net/research/papers/ILASS2005_Moses_slides.tex ConTeXt source] and [http://dpdx.net/research/papers/ILASS2005_Moses_slides.pdf PDF output]) by [[User:Brooks|Brooks]]<br />
<br />
== Books and Periodicals ==<br />
* Book: [[Ubuch style]] by [[User:Hraban|Hraban]] (contains deprecated code)<br />
* Book: [[Uno style]] by [[User:Hraban|Hraban]]<br />
* Book: [[Theory book style]] by [[User:Thomas|Thomas]]<br />
== Sample macros ==<br />
* Macro for [[Chromatograms]]<br />
* Macro for [[Changes]] (revision history)<br />
* Macro for [[Chapters headers]]<br />
* Macro for [[Chapter head with absolute positioning of following text]]<br />
* Macro for [[Section head with underlining to width of last line]]<br />
<br />
== [[MetaPost]], [[MetaFun]] and alike ==<br />
* [[Simple Cover Page]] by Hans Hagen<br />
* [[Colorful CD Inlay]] by Hans Hagen<br />
* [[EuroAnim|Animated construction of the "euro" symbol]]<br>This is a JavaScript based animation as described in the MetaFun manual.<br />
<br />
== Other resources ==<br />
See also the [[:Category:Sample documents| list of sample documents in this wiki]].<br />
<br />
[[Category:Sample documents]]</div>Hook