From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74710 Path: news.gmane.org!not-for-mail From: Jean-Philippe Rey Newsgroups: gmane.comp.tex.context Subject: Problem with external cross-references Date: Sat, 25 Feb 2012 17:47:41 +0100 Message-ID: <8FC5E853-84AD-43B5-85B2-DCEDC7ACBEFB@ecp.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330188485 24204 80.91.229.3 (25 Feb 2012 16:48:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 16:48:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 25 17:48:04 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1Kmx-0002Ue-46 for gctc-ntg-context-518@m.gmane.org; Sat, 25 Feb 2012 17:48:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C834BCB25B; Sat, 25 Feb 2012 17:48:01 +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 E7Fu4wH453Nn; Sat, 25 Feb 2012 17:47:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25875CB256; Sat, 25 Feb 2012 17:47:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22E02CB256 for ; Sat, 25 Feb 2012 17:47:57 +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 I4PCkII3kVBZ for ; Sat, 25 Feb 2012 17:47:46 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 26E28CB251 for ; Sat, 25 Feb 2012 17:47:46 +0100 (CET) Original-Received: from jaguar.ecp.fr (jaguar.ecp.fr [138.195.33.9]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1PGliPr009599 for ; Sat, 25 Feb 2012 17:47:45 +0100 Original-Received: from [192.168.0.13] (lns-bzn-32-82-254-32-78.adsl.proxad.net [82.254.32.78]) by jaguar.ecp.fr (Postfix) with ESMTP id 3D36B68043; Sat, 25 Feb 2012 17:47:44 +0100 (CET) X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=138.195.33.9; country=FR; region=A8; city=Chatenay-malabry; latitude=48.7667; longitude=2.2667; http://maps.google.com/maps?q=48.7667,2.2667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aGCgLJVr - 8f59fcdb7cbc - 20120225 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:74710 Archived-At: Hello everybody, I'm trying to use external cross-references between two files but I can't m= ake it work with MkIV. I am using ConTeXt current ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english With MkII, the following minimal example works perfectly well : % file test_crossref1 \starttext \chapter[lorem]{Lorem} Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem]. \stoptext % file test_crossref2 \usereferences[test_crossref1] \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem]. \stoptext However with MkIV, I get an unknown reference (??) in test_crossref2 and th= e following lines in test_crossref2.log [...] system > references from other files are handled automatically [...] references > unknown reference [][lorem] [...] With = % file test_crossref2 \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[test_c= rossref1::lorem]. \stoptext I still get an unknown reference (??) and the following diagnosis in the lo= g file [...] references > references from document 'test_crossref1' are not exported references > unknown reference [][test_crossref1::lorem] [...] However when I add the export option in the test_crossref1 file % file test_crossref1 \setupreferencing[export=3Dyes] \starttext \chapter[lorem]{Lorem} Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem]. \stoptext I get an error at compile time. Below is the full log file. Does anyone kno= w what I am doing wrong ? Thank you for your help. (test_crossref1.tex ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english system > cont-new.mkiv loaded (/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/cont-ne= w.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > test_crossref1.top loaded system > options > begin of optionfile system > options > system > options > % runtime options files (command line driven) system > options > \unprotect system > options > % feedback and basic job control system > options > % handy for special styles system > options > \startluacode system > options > document =3D document or { } system > options > document.arguments=3D{ system > options > ["arrange"]=3Dtrue, system > options > ["synctex"]=3Dtrue, system > options > } system > options > document.files=3D{ system > options > "test_crossref1.tex", system > options > } system > options > \stopluacode system > options > % process info system > options > \setupsystem[inputfile=3Dtest_crossref1.tex] system > options > \setupsystem[\c!n=3D1,\c!m=3D1] system > options > % modes system > options > % options (not that important) system > options > \startsetups *runtime:options system > options > \setuparranging[\v!disable] system > options > \stopsetups system > options > % styles and modules system > options > \startsetups *runtime:modules system > options > \stopsetups system > options > % done system > options > \protect \endinput system > options > system > options > end of optionfile (test_crossref1.top) fonts > latin modern fonts are not preloaded languages > language en is active {/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/fonts/map/pdftex/context= /mkiv-base.map} fonts > preloading latin modern fonts (second stage) (/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/type-si= z.mkiv) (/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base= /type-otf.mkiv){/Users/jprey/ConTeXt-2011.05.18/tex/texmf/fonts/map/dvips/l= m/lm-math.map}{/Users/jprey/ConTeXt-2011.05.18/tex/texmf/fonts/map/dvips/lm= /lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded system > begin file test_crossref1.tex at line 2 structure > sectioning > chapter @ level 2 : 0.1 -> Lorem references > unknown reference [][lorem] backend > xmp > using file '/Users/jprey/ConTeXt-2011.05.18/tex/tex= mf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 system > end file test_crossref1.tex at line 7 ! LuaTeX error ...0731/tex/texmf-context/tex/context/base/strc-ref.lua:560:= attempt to index global 'jobpages' (a nil value) stack traceback: ...0731/tex/texmf-context/tex/context/base/strc-ref.lua:560: in function '= referencer' ...0731/tex/texmf-context/tex/context/base/strc-ref.lua:609: in function '= export'
:1: in main chunk. system > tex > error on line 7 in file test_crossref1.tex: LuaTeX = error ... 1 \setupreferencing[export=3Dyes] 2 \starttext 3 \chapter[lorem]{Lorem} 4 = 5 Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[= lorem]. 6 = 7 >> \stoptext ...lua {structures.references.export()} = \firstofoneargument #1->#1 = \finalend ...se \the \everybye \the \everygoodbye = \doifsometokselse \everyn= o... l.7 \stoptext = ? = ! Emergency stop. system > tex > error on line 7 in file test_crossref1.tex: Emergen= cy stop ... 1 \setupreferencing[export=3Dyes] 2 \starttext 3 \chapter[lorem]{Lorem} 4 = 5 Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[= lorem]. 6 = 7 >> \stoptext ...lua {structures.references.export()} = \firstofoneargument #1->#1 = \finalend ...se \the \everybye \the \everygoodbye = \doifsometokselse \everyn= o... l.7 \stoptext = End of file on the terminal! ! =3D=3D> Fatal error occurred, no output PDF file produced! -- = Jean-Philippe Rey Professeur - =C9cole Centrale Paris jean-philippe.rey@ecp.fr 92295 Ch=E2tenay-Malabry Cedex - France ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________