ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* First document — problems with bib module and layout
@ 2007-12-25 22:39 Matija Šuklje
  2007-12-26 11:15 ` Taco Hoekwater
  0 siblings, 1 reply; 12+ messages in thread
From: Matija Šuklje @ 2007-12-25 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 1557 bytes --]

Hullo,

I'm just making my first real document in ConTeXt and although I'm thinking 
more and more how this was a great idea. I also decided to simultaneously 
write an external document/module containing all definitions to fit the 

But as a newbie, of course, I stumbled upon some beginner's problems:

1. Chapter heading is not like I would expect — I would like to have the line 
above the chapter as long as the one below it

2. The empty page at the end of the document annoys me and doesn't want to go 
away.

3. The citations won't show any content, neither does the list of publications 
— I'm clearly doing something very wrong here. What I want is numbered 
citation with short references at the bottom and full references in the list 
of publications in the appendices.

4. If I want to include 'pf_ul.tex' and 'moja_bibliografija.bbl' into my 
user's local modules in Linux, where should I place the link to them? It's a 
bit annoying to have to place links to them in each directory where I make a 
new new file that uses them. And clearly, there will be many yet to come!

If anything I just wrote doesn't make much sense, I excuse myself ...I'm 
tired, tried to learn and hack together this definitions the whole day today 
and didn't sleep much yesterday either.


Cheers,
Matija

-- 
gsm: +386 41 849 552
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
yahoo: matija_suklje

[-- Attachment #1.1.2: konkurenčnaklavzula_context.tex --]
[-- Type: text/x-tex, Size: 1132 bytes --]

% za pravila PF UL
\input pf_ul
\def\avtor{Matija Šuklje}
\def\mentor{as. mag. Luka Tičar}
\def\tip{seminarska naloga}
\def\naslov{Konkurenčna klavzula v delovni pogodbi}
\def\kljucnebesede{delovno pravo}

% moji lastni linki
\useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rutka.net]
\useURL[homepage][http://matija.suklje.name][][matija.suklje.name]

\starttext
\startstandardmakeup
\title{\naslov}
\stopstandardmakeup

\startfrontmatter
\setuppagenumbering[left={stran },conversion=Romannumerals,location=right]
\placecontent

\section[uvod]{Uvod}

\subsection[povzetek]{Povzetek}

\input knuth

{\en		% začasno spremeni jezik v angleščino
\subsection[summary]{Summary}

\input knuth
}

\stopfrontmatter

\startbodymatter
\setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]

\chapter{Kr en poglavje}

\section[1]{Prvo poglavje}

\input tufte

\subsection[1.1]{podpoglavje}

\input knuth

tuki citiram, veš? \cite[ZOFVI] \cite[neki]



\stopbodymatter

\startappendices

\placepublications

\stopappendices
\stoptext

[-- Attachment #1.1.3: moja_bibliografija.bbl --]
[-- Type: text/plain, Size: 645 bytes --]

\startpublication[
	k=ZOFVI,	% key, po katerem citiraš
	t=zakon,	% tip publikacije je zakon
	y=1996,
	s=ZOFVI,	% short citation
	u=http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248,
]
	\title{Zakon o organizaciji in financiranju vzgoje in izobraževanja}
	\journal{Uradni list Republike Slovenije}
	\volume{35}
	\issue{12}
	\pubyear{1996}\month{2}\day{29}
	\biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612&dhid=32248}
	\pages{841-862}
\stoppublication

\startpublication[
	a={Matija Šuklje}
	k=neki,
	t=test,
	y=2007,
	s=Neki
]
\title{Neki nekastga}
\author{Matija Šuklje}
\stoppublication

[-- Attachment #1.1.4: pf_ul.tex --]
[-- Type: text/x-tex, Size: 3657 bytes --]

%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske
%d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani
%c Avtor: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name
%c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL.

%d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis
%d on the Law faculty, University of Ljubljana
%c Author: Matija Šuklje, matija.suklje@rutka.net, http://matija.suklje.name
%c The author permits (and encourages) the usage of this "work" under the terms of the GPL licence.

%%%
%%% splošne definicije dokumenta
%%%

% jezik, UTF-8 in velikost papirja
\mainlanguage[sl]
\enableregime[utf8]
\setuppapersize[a4][a4]

%%%
%%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta
%%%

% da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu
\input spec-tst

% pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF
\setupinteraction
	[state=start,
	title={\naslov},
	subtitle={\tip},
	author={\avtor},
	keyword={\tip, \kljucnebesede}
	]

% ustvari kazalo v PDF
\placebookmarks[chapter,section,subsection]

%%%
%%% kazalo
%%%

\setupcombinedlist[content][alternative=c]
\setuplist[chapter][style=bold,alternative=b,width=1.5em]
\setuplist[section][margin=1.5em,width=2em]
\setuplist[subsection][margin=3.5em,width=3em]
\setuplist[subsubsection][margin=6.5em,width=4em]

%%%
%%% oblika poglavij ipd.
%%%

% zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju
\setuphead
	[title]
	[align=middle,
	textstyle=\sc,
	style=\bfd,
	before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill},
	after=
		{
		(\tip)		% definiraj v dokumentu — npr. \def\tip{diplomska naloga}
		\vfill
		Avtor: \avtor		% definiraj v dokumentu — npr. \def\autor{Matija Šuklje}
		\crlf
		Mentor: \mentor		% definiraj v dokumentu — npr. \def\mentor{preljubi profesor}
		\vfill
		Ljubljana, \currentdate{} \stopalignment \page
		}
	]

% poglavja
\setuphead
	[chapter]
	[header=empty,
	textstyle=\sc,
	style=\bfb,
	before={\page\hairline\blank[line]},
	after={\nowhitespace\hairline\blank[4*line]}
	]

% oddelki
\setuphead
	[section]
	[page=yes,
	textstyle=\sc,
	style=\tfa,
	align=right,
	before={\blank[2*line]},
	after={\blank[line]}
	]

% pododdelki
\setuphead
	[subsection]
	[style=\it,
	align=right,
	before={\blank[2*line]},
	after={\blank[line]}
	]

%%%
%%% splošna oblika teksta
%%%

\setupindenting[1.5em]
\setupindenting[yes]
\setupwhitespace[medium]

%%%
%%% definicije za citiranje in bibliografijo
%%%

% da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki
\usemodule[bib]
\input moja_bibliografija.bbl

% splošne nastavitve za citiranje
%TODO — predeli ...je sam začasna oblika
\setuppublications
	[sorttype=cite,
	refcommand=short,
	monthconversion=\Romannumerals % ne dela?
	]

% splošne nastavitve za bibliografijo
%TODO — sploh ustvari!!

% zakonodaja
%TODO — predeli ...je sam začasna oblika
\setuppublicationlayout[zakon]{
	\inserttitle{\bgroup}{\egroup. }{}
	\insertjournal{\bgroup\it}{\egroup, }{}
	\insertvolume{}{ }{}
	\insertpubyear{(}{) }{}
	\insertissue{}{, }{}
	\insertday{}{. }{}
	\insertmonth{}{. }{}
	\insertpages{Str. }{.}{}
}
\setupcite[key,author][]

\setuppublicationlayout[test]{
	\inserttitle{}{}
}

%TODO — prenesi vse kar se le da iz glavnega dokumenta sem

%TODO — citiranje (to bo še komplicirano!)

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-04-06 18:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-25 22:39 First document — problems with bib module and layout Matija Šuklje
2007-12-26 11:15 ` Taco Hoekwater
2007-12-26 22:50   ` Matija Šuklje
2007-12-27 10:38     ` Matija Šuklje
2007-12-27 10:56       ` Matija Šuklje
2007-12-27 15:46         ` Taco Hoekwater
2007-12-27 18:51           ` Matija Šuklje
2007-12-28 14:27             ` Taco Hoekwater
2007-12-29 12:20               ` Matija Šuklje
2007-12-29 19:06                 ` Aditya Mahajan
2007-12-29 20:06                   ` Matija Šuklje
2008-04-06 18:51                   ` Matija Šuklje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).