From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63194 Path: news.gmane.org!not-for-mail From: Matija =?utf-8?q?=C5=A0uklje?= Newsgroups: gmane.comp.tex.context Subject: Difference between \skip and \unskip Date: Wed, 3 Nov 2010 10:21:41 +0100 Message-ID: <201011031021.44942.matija@suklje.name> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0286434918==" X-Trace: dough.gmane.org 1288776131 14318 80.91.229.12 (3 Nov 2010 09:22:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2010 09:22:11 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 03 10:22:07 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDZXi-0006Lk-9L for gctc-ntg-context-518@m.gmane.org; Wed, 03 Nov 2010 10:22:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FCCBCA815; Wed, 3 Nov 2010 10:22:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5LIstyrFuFWS; Wed, 3 Nov 2010 10:22:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5078CA801; Wed, 3 Nov 2010 10:22:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F452CA801 for ; Wed, 3 Nov 2010 10:21:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jS1j7wrbjaO4 for ; Wed, 3 Nov 2010 10:21:56 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id C0AFECA7C1 for ; Wed, 3 Nov 2010 10:21:56 +0100 (CET) Original-Received: from vimes.neko.si (vimes.neko.si [213.161.22.88]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA39LsPN007245 for ; Wed, 3 Nov 2010 10:21:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by vimes.neko.si (Postfix) with ESMTP id D4C01DF5D7 for ; Wed, 3 Nov 2010 10:21:53 +0100 (CET) Original-Received: from vimes.neko.si ([127.0.0.1]) by localhost (vimes.neko.si [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07390-10 for ; Wed, 3 Nov 2010 10:21:50 +0100 (CET) Original-Received: from faunus.localnet (unknown [88.200.87.250]) by vimes.neko.si (Postfix) with ESMTP id 9A0B8E9370 for ; Wed, 3 Nov 2010 10:21:49 +0100 (CET) User-Agent: KMail/1.13.5 (Linux/2.6.34-gentoo-r12; KDE/4.4.5; x86_64; ; ) X-Face: #(zC8P1gB1wk4BzX?; Ow(}{Uif1HD?RIg|Xkcv) =?utf-8?q?=26=5D=5EFz=5F=255Lm=0A=09B=5B=2EgY3?=, u#k[1B`?7|{^?z?}J`gGzu$-Z1qB:-iH'H) =?utf-8?q?V=2E=3FTS=5Cg=23+SSIEW=5B=7D/WejopcNYk1Y=0A=09BbZ?=>$?HjC.y(\`w3(ErHq_dMywu#ca"KP5.&`rYw-\'dGb~ X-Virus-Scanned: amavisd-new at neko.si X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.161.22.88; country=SI; region=09; city=Maribor; latitude=46.5547; longitude=15.6467; http://maps.google.com/maps?q=46.5547,15.6467&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DqxlTml - f791545d98dd - 20101103 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63194 Archived-At: --===============0286434918== Content-Type: multipart/signed; boundary="nextPart8164504.KzBzbrGIul"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart8164504.KzBzbrGIul Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hullo, can someone tell me what's the difference between \skip and \unskip and whe= n=20 to use them? I've already checked the wiki and the references, but cannot find a definit= ion=20 of either. Here's a use case that's giving me headaches for quite some time: In my bibliography I often have items that are missing one or two fields (e= =2Eg.=20 legal texts with or without amendments etc.) and I have to tell ConTeXt to= =20 skip those. From trial and error I learnt that: * \skip leaves me with the punctuation and styling around the skipped=20 field (e.g. a trailing ", ." or "( )") * \unskip seems to do what I want, but generates the following error every= =20 time 'context' reaches an '\unskip' entry: =2D-8<------------------ l.1 ...al , =C5=A1t. \localissue /\localvolume \skip , \localspremembe . \currentnotedescriptiontext ...ptionnumberentry )} =20 \handlenoteitself ... \currentnotedescriptiontext=20 \endstrut=20 \dostopstoreddes... \handlenoteinsert ...s }\handlenoteitself {#1}{#2} \egroup \the=20 \everyafterno... \@@notemakedescription ...note \currentnotenumber=20 \fi \fi \endgroup \fi \fi= =20 =2E.. =2E.. l.82 ...e Konvencija MOD =C5=A1t. 173\zakon[][MOD_173] (ter Priporo=C4=8Dilo = =C5=A1t. 18... ? help A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) =2D----------------->8-- The example code: =2D-8<------------------ \def\zakon[#1][#2]% = = =20 {\doifdefinedelse{zakonkratko:#2} = = =20 {\zakonkratko[#1][#2]} = = =20 {\bgroup = = =20 \nocite[#2]% = = =20 \getcitedata[title][#2] to \localtitle = = =20 \getcitedata[kratko][#2] to \localkratko = = =20 \getcitedata[journal][#2] to \localjournal = = =20 \getcitedata[issue][#2] to \localissue = = =20 \getcitedata[volume][#2] to \localvolume = = =20 \getcitedata[spremembe][#2] to \localspremembe = = =20 \footnote{\localtitle\ (\localkratko), \localjournal, =C5=A1t.=20 \localissue/\localvolume\skip, \localspremembe.}% = =20 \egroup} = = =20 \setvalue{zakonkratko:#2}{done} = = =20 } = = =20 = = =20 \def\zakonkratko[#1][#2]% = = =20 {\bgroup = = =20 \nocite[#2]% = = =20 \getcitedata[kratko][#2] to \localkratko = = =20 \footnote{\skip#1 \localkratko.}% = = =20 \egroup} = = =20 \startpublication[k=3DMESL, t=3Dzakon, y=3D1996 ] \title{Evropska socialna listina (spremenjena)} \kratko{MESL} \engtitle{European Social Charter (revised)} \organization{Svet Evrope} \journal{Ur. l. RS-MP} \volume{1999} \issue{7} \pubyear{1999}\month{04}\day{10} \yearfiled{1999}\monthfiled{04}\dayfiled{11} \biburl{http://www.uradni-list.si/1/objava.jsp?urlmpid=3D199920} \stoppublication =2D----------------->8-- =2D-=20 gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org --nextPart8164504.KzBzbrGIul Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQEcBAABAgAGBQJM0SmmAAoJENgK3ZBldL9HVJYH/2EUjqU6dN30BVw6Y7sZ1cuq vWPXSB51sbu9Yp/V4Jb1fJIbym0Voy0sIKr9cp78hFbYPiWGgIlv/m/irSpSsPjg Bh+SyYddSGnfeREC5dnlaIcJ0+Bit41nF4puQhSO5EXymKMOrbV0Y6RyrXOzPXl4 sXH8ZewsUK7LKDaAJxrQKBp9t2tKaib6UUpyX0+HX/RezY7bPsTCuc/M5k0n0YiU Qe/s6IRszstmOwPF11equ7OkkdencBvu75W8J4RvTGCcxFix3KELN0NKxdfNiEej aKrbcAU9PImttu0PH7NvOSQVfbHbxnxKdGzgB7K21lsDGqKKvkPICrO6RX470Jg= =7kms -----END PGP SIGNATURE----- --nextPart8164504.KzBzbrGIul-- --===============0286434918== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0286434918==--