From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39833 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: t-bib: URL and '%'; spacing between number and text Date: Fri, 04 Apr 2008 12:37:56 +0200 Message-ID: <47F60504.5090701@net-b.de> References: <47EA8C68.4010203@net-b.de> <47F0F274.40501@elvenkind.com> <47F55D35.7030401@net-b.de> <47F5F754.1010204@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080806080701090508010205" X-Trace: ger.gmane.org 1207307490 26793 80.91.229.12 (4 Apr 2008 11:11:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 11:11:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 04 13:12:03 2008 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 1Jhjpv-0003Eh-IU for gctc-ntg-context-518@m.gmane.org; Fri, 04 Apr 2008 13:11:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 45ADA1FBCB; Fri, 4 Apr 2008 13:11:20 +0200 (CEST) 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 19939-01-3; Fri, 4 Apr 2008 13:10:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33F0B1FB6B; Fri, 4 Apr 2008 12:38:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E64C1FB57 for ; Fri, 4 Apr 2008 12:38:36 +0200 (CEST) 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 09585-01-30 for ; Fri, 4 Apr 2008 12:37:59 +0200 (CEST) Original-Received: from mail1.physik.fu-berlin.de (mail1.physik.fu-berlin.de [160.45.35.12]) by ronja.ntg.nl (Postfix) with ESMTP id 483431FCB0 for ; Fri, 4 Apr 2008 12:37:59 +0200 (CEST) Original-Received: from ith.physik.fu-berlin.de ([160.45.32.115] helo=[127.0.0.1]) by mail1.physik.fu-berlin.de with esmtp (Exim 4.63) (envelope-from ) id 1JhjIy-0004po-OF; Fri, 04 Apr 2008 12:37:58 +0200 User-Agent: Thunderbird 2.0.0.12 (X11/20071114) In-Reply-To: <47F5F754.1010204@elvenkind.com> X-ZEDV-Virus-Scanned: No viruses found. [ClamAV 0.92/6577/Fri Apr 4 12:10:17 2008] X-ZEDV-Spam-Level: -- X-ZEDV-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on zs01.physik.fu-berlin.de X-ZEDV-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 X-ZEDV-Spam-Report: * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Scan-Signature: 4cbaa271037387b24ee7bb27f4e399d1 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:39833 Archived-At: This is a multi-part message in MIME format. --------------080806080701090508010205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Taco Hoekwater wrote: > Does this fix I wrote (back in September) actually work? > > % start fix > \unprotect > \def\dousepublications#1% > {\doonlyonce > {#1.\f!bibextension} > {\readfile{#1.\f!bibextension} > {\catcode`\%=12 > \showmessage\m!bib{4}{#1.\f!bibextension}} > {\showmessage\m!bib{2}{#1.\f!bibextension}}}} > \protect > % end fix It does not seem to work here :-( "url = {{foo}}" becomes now "{foo}" instead of "foo" but the "%" causes still a TeX error and the "\%" is printed as "\%". The attached test case uses \% but replacing it by \% causes TeX errors. (publication block as found in the bbl file.) > Not too hard, if you don't mind editting the bib / bbl a bit; > making it truly automatic and still configurable would be hard. > Example attached. It does not seem to work here. I get "Is cited at ." (This is with the latest cont-tmf.tex and pdfetex of TeX Live 2007 as distributed by openSUSE.) Do I have an too old pdfeTeX version or do I need to do something else than just TeXing the file? Thanks, Tobias --------------080806080701090508010205 Content-Type: application/x-tex; name="test2.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test2.tex" \usemodule[bib] \setuppublications[alternative=aps] % start fix \unprotect \def\dousepublications#1% {\doonlyonce {#1.\f!bibextension} {\readfile{#1.\f!bibextension} {\catcode`\%=12 \showmessage\m!bib{4}{#1.\f!bibextension}} {\showmessage\m!bib{2}{#1.\f!bibextension}}}} \protect % end fix \unprotect \setuppublicationlayout[article]{% \insertartauthors{}{ }{\insertthekey{}{ }{}}% \insertarttitle {\unskip, \bgroup\it }% {\/\egroup }{}% \insertjournal{\unskip, \bgroup }{\egroup} {}% \insertcrossref{In }{}{}}% \insertvolume { \bgroup \bf } {\egroup %\insertissue{(}{)}{}% \insertfirstpage{, }{}{}} {\insertfirstpage{ }{}{}}% \insertpubyear{ (}{). }{\unskip.}% \insertdoi{ doi:}{.}{}% \insertbiburl{ }{.}{}% \insertNote{ }{.}{}% \insertcomment{}{.}{}% } \protect \startpublication[k=DiracQuote,t=article, a={{Dirac}},y=1929, u={http://links.jstor.org/sici?sici=0950-1207\%2819290406\%29123\%3A792\%3C714\%3AQ\%MOMS\%3E2.0.CO\%3B2-B}, n=110,s=Dir29] \artauthor[]{P.~A.~M.}[P.~A.~M.]{}{Dirac} \pubyear{1929} \arttitle{Quantum mechanics of many-electron systems} \journal{Proceedings of the Royal Society of London -- Series A} \volume{123} \issue{792} \pages{714-733} \biburl{http://links.jstor.org/sici?sici=0950-1207\%2819290406\%29123\%3A792\%3C71\%4\%3AQMOMS\%3E2.0.CO\%3B2-B} \stoppublication \starttext \cite[DiracQuote] \placepublications \stoptext --------------080806080701090508010205 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 ___________________________________________________________________________________ --------------080806080701090508010205--