From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82759 Path: news.gmane.org!not-for-mail From: "Lance Larsen" Newsgroups: gmane.comp.tex.context Subject: Exporting labels from a ConTeXt document Date: Tue, 4 Jun 2013 13:35:50 -0600 Message-ID: <51ae4198.301a420a.0508.7b57@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0517683538==" X-Trace: ger.gmane.org 1370374570 10925 80.91.229.3 (4 Jun 2013 19:36:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Jun 2013 19:36:10 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 04 21:36:10 2013 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 1Ujx1d-0006k4-Ox for gctc-ntg-context-518@m.gmane.org; Tue, 04 Jun 2013 21:36:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 74B21101E9; Tue, 4 Jun 2013 21:36:09 +0200 (CEST) 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 czvRjiRgH5dk; Tue, 4 Jun 2013 21:36:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 05944101E4; Tue, 4 Jun 2013 21:36:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01D0C101E4 for ; Tue, 4 Jun 2013 21:36:07 +0200 (CEST) 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 Md65aHPz0rfq for ; Tue, 4 Jun 2013 21:36:05 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id A2EFF101E0 for ; Tue, 4 Jun 2013 21:35:55 +0200 (CEST) Original-Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r54JZrDO003309 for ; Tue, 4 Jun 2013 21:35:54 +0200 Original-Received: by mail-pd0-f173.google.com with SMTP id v10so693893pde.32 for ; Tue, 04 Jun 2013 12:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=ypouDL5YwUY1SvuDq36lV7vEDyxMVOTsDrztx75R4Ak=; b=mduDvE772+aTCVaMVrYIew+vqRYdTOaJp8qwdSw3QNUxGMYvQT+Gp/e+tINQQ+S1Y9 AuVHn/1XZLjUFAcpw521y8ksfQ7MwN/k/8VmXyEguXd8vO7Rf/wKT+Gqbjo8fwkLehNP JFqqQfeD8RO0uX2G1wXlXBsET6iUgC0K6DwlJG4UbcxJ+29ntq5Beap51M/xNg3XZ4fi Ix4nJWUWomslrF+7avEhoJfdxS0QEyEa/GOnFGGaOE24TsjGkUzRQQldPRCqkCHCihlt y5H4GXZDvoZbV7w9gG8x7IbLRylPO+qF9watOVhEr2bW0Xs/4e/eZ8q0tq2P+ixRyePR N2pA== X-Received: by 10.68.130.199 with SMTP id og7mr30241734pbb.132.1370374553230; Tue, 04 Jun 2013 12:35:53 -0700 (PDT) Original-Received: from CNU238C3KT (107-1-187-170-ip-static.hfc.comcastbusiness.net. [107.1.187.170]) by mx.google.com with ESMTPSA id i16sm19988561pag.18.2013.06.04.12.35.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Jun 2013 12:35:52 -0700 (PDT) X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac5hWrg19VZxVR44Qy6we2r401jdoA== Content-Language: en-us X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.192.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJIjzS1T - 4d23a621bd19 - 20130604 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82759 Archived-At: This is a multi-part message in MIME format. --===============0517683538== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CE6128.6EBAE010" Content-Language: en-us This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CE6128.6EBAE010 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a document with several equations included. I need to reference these in an external document. To automate the process, I need a mapping between the equation label (i.e., eq:my_eq_name) to an equation number such as (4.22). Is there a way to export this mapping possibly as a command line input? Or is there a log file I can parse to get this information (the *.tuc file did list equation reference names, but I did not see a mapping to equation numbers). If there is not a command line option to dump this information, what is the best way to extract it. Can I embed lua code in the document that reads the equation number as the document in processed? If I could read the number from lua, I could write this to a file. Any help is appreciated. -Lance Larsen ------=_NextPart_000_0001_01CE6128.6EBAE010 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have a = document with several equations included. I need to reference these in = an external document. To automate the process, I need a mapping between = the equation label (i.e.,  eq:my_eq_name) to an equation number = such as (4.22). Is there a way to export this mapping possibly as a = command line input? Or is there a log file I can parse to get this = information (the *.tuc file did list equation reference names, but I did = not see a mapping to equation numbers).

 

If there is = not a command line option to dump this information, what is the best way = to extract it. Can I embed lua code in the document that reads the = equation number as the document in processed? If I could read the number = from lua, I could write this to a file. Any help is = appreciated.

 

-Lance Larsen

------=_NextPart_000_0001_01CE6128.6EBAE010-- --===============0517683538== 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 ___________________________________________________________________________________ --===============0517683538==--