* [9fans] troff: references @ 2009-07-23 20:13 ` Rudolf Sykora 2009-07-25 16:56 ` Benn Newman 2009-07-27 9:30 ` Darren Bane 0 siblings, 2 replies; 5+ messages in thread From: Rudolf Sykora @ 2009-07-23 20:13 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Hello, is there anything ready for troff/eqn that could help me with 1) automatic equation numbering with possible setting a label to an equation by means of which one could forward/backward reference the equation? 2) setting a label somewhere in the text, so one can reference it and obtain e.g. a page on which the label is? Thanks Ruda ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] troff: references 2009-07-23 20:13 ` [9fans] troff: references Rudolf Sykora @ 2009-07-25 16:56 ` Benn Newman 2009-07-27 9:30 ` Darren Bane 1 sibling, 0 replies; 5+ messages in thread From: Benn Newman @ 2009-07-25 16:56 UTC (permalink / raw) To: 9fans On Thu, 23 Jul 2009 22:13:50 +0200, rudolf.sykora@gmail.com wrote: > Hello, > > is there anything ready for troff/eqn that could help me with > 1) automatic equation numbering with possible setting a label to an > equation by means of which one could forward/backward reference the > equation? > 2) setting a label somewhere in the text, so one can reference it and > obtain e.g. a page on which the label is? > > Thanks > Ruda > Hello I am not aware of anything specificallyto meet your need, but I can get you started. To automatically number equations: .nr En 0 1 \" En: equation number, 0: starting number, 1: auto-incrementer .EQ "" \n+(En e = m c sup 2 .EN .am EQ \" This will print the equation number and page number to stderr .tm eqn: \\$2 \\n% .. See CSTR 128, `Tools for Printing Indexes' by Jon Bentley and bwk, particularly section 2., `Typical Use' <http://www.kohala.com/start/troff/cstr128.ps>. Then you would have a macro, .En equation-number, that would use the label in t.out and match it with its page number using a preprocessor. Then mix this all up to do exactly what you want to do. -- Benn Newman ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] troff: references 2009-07-23 20:13 ` [9fans] troff: references Rudolf Sykora 2009-07-25 16:56 ` Benn Newman @ 2009-07-27 9:30 ` Darren Bane 2009-07-27 10:26 ` cej 1 sibling, 1 reply; 5+ messages in thread From: Darren Bane @ 2009-07-27 9:30 UTC (permalink / raw) To: 9fans On 2009-07-23 21:17:27 +0100, rudolf.sykora@gmail.com (Rudolf Sykora) said: > Hello, > > is there anything ready for troff/eqn that could help me with > 1) automatic equation numbering with possible setting a label to an > equation by means of which one could forward/backward reference the > equation? > 2) setting a label somewhere in the text, so one can reference it and > obtain e.g. a page on which the label is? > > Thanks > Ruda lbl from http://www.ugu.com/sui/ugu/show?I=software.roff&F\x1111111111&G=Y worked quite well for me in the past on UNIX. It's not a lot of code, so hopefully will compile without much trouble in APE. -- Darren Bane White Acorn Software ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] troff: references 2009-07-27 9:30 ` Darren Bane @ 2009-07-27 10:26 ` cej 2009-07-27 10:34 ` Francisco J Ballesteros 0 siblings, 1 reply; 5+ messages in thread From: cej @ 2009-07-27 10:26 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 140 bytes --] > lbl from > http://www.ugu.com/sui/ugu/show?I=ftware.roff&F\x1111111111&G=worked http://www.ugu.com/pub/unix/sec1/lbl.tar.Z ++pac [-- Attachment #2: winmail.dat --] [-- Type: application/ms-tnef, Size: 2290 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] troff: references 2009-07-27 10:26 ` cej @ 2009-07-27 10:34 ` Francisco J Ballesteros 0 siblings, 0 replies; 5+ messages in thread From: Francisco J Ballesteros @ 2009-07-27 10:34 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Just to check out... Anyone writing spanish documents using troff on Plan 9? If so, please, drop me a line off-list. It's likely we have similar problems :) thanks On Mon, Jul 27, 2009 at 12:26 PM, <cej@gli.cas.cz> wrote: > >> lbl from >> http://www.ugu.com/sui/ugu/show?I=ftware.roff&F 11111111&G=worked > > http://www.ugu.com/pub/unix/sec1/lbl.tar.Z > > ++pac > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-27 10:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.2318.1248394094.1513.9fans@9fans.net> 2009-07-23 20:13 ` [9fans] troff: references Rudolf Sykora 2009-07-25 16:56 ` Benn Newman 2009-07-27 9:30 ` Darren Bane 2009-07-27 10:26 ` cej 2009-07-27 10:34 ` Francisco J Ballesteros
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).