From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38289 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?q?First_document_=E2=80=94_problems_with_bi?= =?utf-8?q?b_module_and_layout?= Date: Wed, 26 Dec 2007 12:15:09 +0100 Message-ID: <477237BD.1030607@elvenkind.com> References: <200712252339.12166.matija.suklje@rutka.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050307090906060003050408" X-Trace: ger.gmane.org 1198667823 15741 80.91.229.12 (26 Dec 2007 11:17:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2007 11:17:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 26 12:17:16 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J7UGA-0004Lm-Ap for gctc-ntg-context-518@m.gmane.org; Wed, 26 Dec 2007 12:17:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1EABC1FB8F; Wed, 26 Dec 2007 12:16:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08790-03-6; Wed, 26 Dec 2007 12:16:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 02E661FB91; Wed, 26 Dec 2007 12:16:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF78F1FB91 for ; Wed, 26 Dec 2007 12:16:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10906-01-2 for ; Wed, 26 Dec 2007 12:15:40 +0100 (CET) Original-Received: from www.bittext.nl (unknown [195.86.58.132]) by ronja.ntg.nl (Postfix) with ESMTP id EF2C21FB37 for ; Wed, 26 Dec 2007 12:15:12 +0100 (CET) Original-Received: from localhost (vz3.aanhet.net [127.0.0.1]) by www.bittext.nl (Postfix) with ESMTP id 99B7C1E8C2B3 for ; Wed, 26 Dec 2007 12:15:11 +0100 (CET) X-Virus-Scanned: amavisd-new at bittext.nl Original-Received: from www.bittext.nl ([127.0.0.1]) by localhost (vz3.aanhet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tNbyJLZXfQGn for ; Wed, 26 Dec 2007 12:15:08 +0100 (CET) Original-Received: from [10.10.0.6] (boo.demon.nl [82.161.175.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.bittext.nl (Postfix) with ESMTP id 9CFA21E8C2B4 for ; Wed, 26 Dec 2007 12:15:08 +0100 (CET) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <200712252339.12166.matija.suklje@rutka.net> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38289 Archived-At: This is a multi-part message in MIME format. --------------050307090906060003050408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Matija =C5=A0uklje wrote: > Hullo, >=20 > I'm just making my first real document in ConTeXt and although I'm thin= king=20 > more and more how this was a great idea. I also decided to simultaneous= ly=20 > write an external document/module containing all definitions to fit the= =20 >=20 > But as a newbie, of course, I stumbled upon some beginner's problems: >=20 > 1. Chapter heading is not like I would expect =E2=80=94 I would like to= have the line=20 > above the chapter as long as the one below it You need a \noindentation in the setuphead command: before=3D{\page\noindentation\hairline\blank[line]}, this is not very obvious, but the \hairline is indented just like a normal paragraph if you don't add the \noidentation. > 2. The empty page at the end of the document annoys me and doesn't want= to go=20 > away. This is a FAQ: Large documents that have front- and backmatters are likely books, and books should have an even number of pages. On a small document (article, letter), you would simply not use the section block commands at all. In any case, from the wiki page http://wiki.contextgarden.net/Empty_page_at_the_end comes this solution/workaround \setupsectionblock[appendix][page=3Dno] > 3. The citations won't show any content, neither does the list of publi= cations=20 > =E2=80=94 I'm clearly doing something very wrong here. What I want is n= umbered=20 > citation with short references at the bottom and full references in the= list=20 > of publications in the appendices. Here you've hit a number of problems, some of which are in the bib module, not your doing. * the module does not currently support all types of \cite across section block boundaries, and that is why you do not get output from your \cite commands. Solution: none. it is not possible to combine 'short' citation and mainmatter/backmatter/appendices. (this problem is nasty, but quite hard to fix). * the module also has a different problem; this time with your file name (konkuren=C4=8Dnaklavzula_context.tex). One of the internal references the bib module creates attaches the input file name to a reference, and if the document name is not 7-bit ascii this apparently fails. It is something I have never tested. Workaround: only use visible ASCII in your file names (for now, I intend to fix this). * You have to be a bit more careful about the \startpublication arguments: - watch out for extra space characters. The only ones that are ignored are the ones just before a key. - if a value contains equals signs, square brackets, or commas, you have to wrap it in braces. * The \author command inside bbl files takes three arguments: \author{Matija}{}{=C5=A0uklje} * monthconversion takes a 'conversion specifier', not a macro name. So you need this instead: \setuppublications[monthconversion=3DRomannumerals] Finally, if you want to have 'short' keys in the publication list, it makes sense to add a set up like this: \setuppublications[numbering=3Dshort,autohang=3Dyes] \setuppublicationlist[samplesize=3DZOFVI] After all those changes, fixes, and workarounds, I ended up with the attached files. > 4. If I want to include 'pf_ul.tex' and 'moja_bibliografija.bbl' into m= y=20 > user's local modules in Linux, where should I place the link to them? I= t's a=20 > bit annoying to have to place links to them in each directory where I m= ake a=20 > new new file that uses them. And clearly, there will be many yet to com= e! The normal place would be /tex/context/user in one of the directories that is searched by context. You have to re-run maketexlsr after adding files to that directory, and then context should be able to find your files just like it knows where knuth.tex etc. are. Best wishes, Taco --------------050307090906060003050408 Content-Type: text/x-tex; name="pf_ul.tex" Content-Disposition: inline; filename="pf_ul.tex" Content-Transfer-Encoding: quoted-printable %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 =C5=A0uklje, matija.suklje@rutka.net, http://matija.sukl= je.name %c Avtor dovoljuje (in spodbuja) uporabo vsebino tega =E2=80=9Edela=E2=80= =9C pod pogoji v licenci GPL. %d This are the ConTeXt definitions of layout etc. as perscribed for writ= ing a thesis %d on the Law faculty, University of Ljubljana %c Author: Matija =C5=A0uklje, matija.suklje@rutka.net, http://matija.suk= lje.name %c The author permits (and encourages) the usage of this "work" under the= terms of the GPL licence. %%% %%% splo=C5=A1ne 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=C5=A1e v informacij= e v PDF \setupinteraction [state=3Dstart, title=3D{\naslov}, subtitle=3D{\tip}, author=3D{\avtor}, keyword=3D{\tip, \kljucnebesede} ] % ustvari kazalo v PDF \placebookmarks[chapter,section,subsection] %%% %%% kazalo %%% \setupcombinedlist[content][alternative=3Dc] \setuplist[chapter][style=3Dbold,alternative=3Db,width=3D1.5em] \setuplist[section][margin=3D1.5em,width=3D2em] \setuplist[subsection][margin=3D3.5em,width=3D3em] \setuplist[subsubsection][margin=3D6.5em,width=3D4em] %%% %%% oblika poglavij ipd. %%% % zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dok= umenta in datuma ob generiranju \setuphead [title] [align=3Dmiddle, textstyle=3D\sc, style=3D\bfd, before=3D{\startalignment[middle] Univerza v Ljubljani \crlf Pravna faku= lteta \vfill}, after=3D { (\tip) % definiraj v dokumentu =E2=80=94 npr. \def\tip{diplomska nalog= a} \vfill Avtor: \avtor % definiraj v dokumentu =E2=80=94 npr. \def\autor{Matija= =C5=A0uklje} \crlf Mentor: \mentor % definiraj v dokumentu =E2=80=94 npr. \def\mentor{pre= ljubi profesor} \vfill Ljubljana, \currentdate{} \stopalignment \page } ] % poglavja \setuphead [chapter] [header=3Dempty, textstyle=3D\sc, style=3D\bfb, before=3D{\page\noindentation\hairline\blank[line]}, after=3D{\nowhitespace\hairline\blank[4*line]} ] % oddelki \setuphead [section] [page=3Dyes, textstyle=3D\sc, style=3D\tfa, align=3Dright, before=3D{\blank[2*line]}, after=3D{\blank[line]} ] % pododdelki \setuphead [subsection] [style=3D\it, align=3Dright, before=3D{\blank[2*line]}, after=3D{\blank[line]} ] %%% %%% splo=C5=A1na oblika teksta %%% \setupindenting[1.5em] \setupindenting[yes] \setupwhitespace[medium] %%% %%% definicije za citiranje in bibliografijo %%% % da sploh dela citiranje in bibliografija in ga poi=C5=A1=C4=8De v zunan= ji datoteki \usemodule[bib] \input moja_bibliografija.bbl % splo=C5=A1ne nastavitve za citiranje %TODO =E2=80=94 predeli ...je sam za=C4=8Dasna oblika \setuppublications [sorttype=3Dcite, refcommand=3Dshort, numbering=3Dshort, autohang=3Dyes, monthconversion=3DRomannumerals% ne dela? ] % splo=C5=A1ne nastavitve za bibliografijo %TODO =E2=80=94 sploh ustvari!! % zakonodaja %TODO =E2=80=94 predeli ...je sam za=C4=8Dasna oblika \setuppublicationlayout[zakon]{ \inserttitle{\bgroup}{\egroup. }{} \insertjournal{\bgroup\it}{\egroup, }{} \insertvolume{}{ }{} \insertpubyear{(}{) }{} \insertissue{}{, }{} \insertday{}{. }{} \insertmonth{}{. }{} \insertpages{Str. }{.}{} } % \setupcite[key,author][] \setuppublicationlayout[test]{ \inserttitle{}{}{} } %TODO =E2=80=94 prenesi vse kar se le da iz glavnega dokumenta sem %TODO =E2=80=94 citiranje (to bo =C5=A1e komplicirano!) \setupsectionblock[appendix][page=3Dno] --------------050307090906060003050408 Content-Type: text/plain; name="moja_bibliografija.bbl" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="moja_bibliografija.bbl" ClxzZXR1cHB1YmxpY2F0aW9ubGlzdFtzYW1wbGVzaXplPVpPRlZJXQoKXHN0YXJ0cHVibGlj YXRpb25bCglrPVpPRlZJLAklIGtleSwgcG8ga2F0ZXJlbSBjaXRpcmHFoQoJdD16YWtvbiwJ JSB0aXAgcHVibGlrYWNpamUgamUgemFrb24KCXk9MTk5NiwKCXM9Wk9GVkksCSUgc2hvcnQg Y2l0YXRpb24KCXU9e2h0dHA6Ly93d3cudXJhZG5pLWxpc3Quc2kvMS91bG9ubGluZS5qc3A/ dXJsaWQ9MTk5NjEyJmRoaWQ9MzIyNDh9XQoJXHRpdGxle1pha29uIG8gb3JnYW5pemFjaWpp IGluIGZpbmFuY2lyYW5qdSB2emdvamUgaW4gaXpvYnJhxb5ldmFuamF9Cglcam91cm5hbHtV cmFkbmkgbGlzdCBSZXB1Ymxpa2UgU2xvdmVuaWplfQoJXHZvbHVtZXszNX0KCVxpc3N1ZXsx Mn0KCVxwdWJ5ZWFyezE5OTZ9XG1vbnRoezJ9XGRheXsyOX0KCVxiaWJ1cmx7aHR0cDovL3d3 dy51cmFkbmktbGlzdC5zaS8xL3Vsb25saW5lLmpzcD91cmxpZD0xOTk2MTImZGhpZD0zMjI0 OH0KCVxwYWdlc3s4NDEtODYyfQpcc3RvcHB1YmxpY2F0aW9uCgpcc3RhcnRwdWJsaWNhdGlv blthPXtNYXRpamEgxaB1a2xqZX0sCglrPW5la2ksCgl0PXRlc3QsCgl5PTIwMDcsCglzPU5l a2ldClx0aXRsZXtOZWtpIG5la2FzdGdhfQpcYXV0aG9ye01hdGlqYX17fXvFoHVrbGplfQpc c3RvcHB1YmxpY2F0aW9u --------------050307090906060003050408 Content-Type: text/x-tex; name="konkurencnaklavzula_context.tex" Content-Disposition: inline; filename="konkurencnaklavzula_context.tex" Content-Transfer-Encoding: quoted-printable % za pravila PF UL \input pf_ul \def\avtor{Matija =C5=A0uklje} \def\mentor{as. mag. Luka Ti=C4=8Dar} \def\tip{seminarska naloga} \def\naslov{Konkuren=C4=8Dna klavzula v delovni pogodbi} \def\kljucnebesede{delovno pravo} % moji lastni linki \useURL[author-email][mailto:matija.suklje@rutka.net][][matija.suklje@rut= ka.net] \useURL[homepage][http://matija.suklje.name][][matija.suklje.name] \starttext \startstandardmakeup \title{\naslov} \stopstandardmakeup \startfrontmatter \setuppagenumbering[left=3D{stran },conversion=3DRomannumerals,location=3D= right] \placecontent \section[uvod]{Uvod} \subsection[povzetek]{Povzetek} \input knuth {\en % za=C4=8Dasno spremeni jezik v angle=C5=A1=C4=8Dino \subsection[summary]{Summary} \input knuth } \stopfrontmatter \startbodymatter \setuppagenumbering[left=3D{stran },right=3D{ od \lastpagenumber},locatio= n=3Dright] \chapter{Kr en poglavje} \section[1]{Prvo poglavje} \input tufte \subsection[1.1]{podpoglavje} \input knuth tuki citiram, ve=C5=A1? \cite[ZOFVI] \cite[neki] %\stopbodymatter %\startappendices \subject{Bibliografija} \placepublications \stopbodymatter \stoptext --------------050307090906060003050408 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------050307090906060003050408--