From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64530 Path: news.gmane.org!not-for-mail From: Jon Crump Newsgroups: gmane.comp.tex.context Subject: Marginal line numbers Date: Tue, 14 Dec 2010 12:33:30 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292358843 7704 80.91.229.12 (14 Dec 2010 20:34:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 20:34:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 21:33:53 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 1PSbZI-0001E7-QZ for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 21:33:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFF40CA8F5; Tue, 14 Dec 2010 21:33:51 +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 QS4BBWGooMLw; Tue, 14 Dec 2010 21:33:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A49FCA8E5; Tue, 14 Dec 2010 21:33:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3CD7CA8E5 for ; Tue, 14 Dec 2010 21:33:45 +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 nKsnfdiKYkBC for ; Tue, 14 Dec 2010 21:33:33 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id A2E02CA8DA for ; Tue, 14 Dec 2010 21:33:33 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBEKXV6a032394 for ; Tue, 14 Dec 2010 21:33:32 +0100 Original-Received: by qwa26 with SMTP id 26so1112456qwa.14 for ; Tue, 14 Dec 2010 12:33:30 -0800 (PST) Original-Received: by 10.229.186.75 with SMTP id cr11mr181375qcb.113.1292358810573; Tue, 14 Dec 2010 12:33:30 -0800 (PST) Original-Received: by 10.229.239.11 with HTTP; Tue, 14 Dec 2010 12:33:30 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; 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: 0dDH8xv4X - d0ebac5bc594 - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:64530 Archived-At: All, Thanks to Thomas's help, I've been making my way up the learning curve. My TEI xml has empty lb elements indicating lines in the original and corresponding lb elements in the translation. I'd like to be able to set these numbers in the margin so that readers may coordinate the lineation. So far I have this: \startxmlsetups xml:lb \lineNumbers{\xmlatt{#1}{n}} \xmlflush{#1} \stopxmlsetups \defineinmargin [lineNumbers] [outer] [normal] which works, but I'd like to be able to set only every fifth or tenth line number. Is there a way to perform some arithmetic on the value of the n attribute and then execute \lineNumbers accordingly? for example: if n%5 == 0 then \lineNumbers else ignore Thanks, Jon ___________________________________________________________________________________ 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 ___________________________________________________________________________________