* [9fans] native lbl, long text in troff, bold italics in eqn @ 2010-09-03 15:16 Rudolf Sykora 2010-09-03 15:38 ` Brian L. Stuart ` (3 more replies) 0 siblings, 4 replies; 11+ messages in thread From: Rudolf Sykora @ 2010-09-03 15:16 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Hello, I have basically 3 questions: 1) is there a native lbl (for symbolic labels in text documents), or do I have to grab the unix tarball and somehow compile that? (How? Using APE? Never tried that before...) 2) I heard and read that the 'ms' troff macros are not suitable for longer documents (I want to write my PhD thesis), as opposed supposedly to the 'me' macros (which, however are not in plan9, I believe). Can anybody give me their opinion? 3) Although eqn produces worse result than TeX, I like the way formulae are input, and thus have used it. Sometimes I need bold italics, which I achieve by overstriking. This isn't ideal, maybe using a special bold italics font would be better. Has anyone thought about this? Thanks Ruda ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-03 15:16 [9fans] native lbl, long text in troff, bold italics in eqn Rudolf Sykora @ 2010-09-03 15:38 ` Brian L. Stuart 2010-09-03 15:54 ` Charles Forsyth 2010-09-03 15:44 ` Charles Forsyth ` (2 subsequent siblings) 3 siblings, 1 reply; 11+ messages in thread From: Brian L. Stuart @ 2010-09-03 15:38 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > 2) I heard and read that the 'ms' troff macros are not > suitable for > longer documents (I want to write my PhD thesis), as > opposed > supposedly to the 'me' macros (which, however are not in > plan9, I > believe). Can anybody give me their opinion? There should be some macro packages out there that fit particular universities' requirements. If you can't find one that's close to your needs, I think I can find the one I did at Notre Dame, but you may have to change things like chapter headings if you have stricter requirements than ND had. (I did have stricter requirements at Purdue, but I used LaTeX there). Be forewarned though, this macro package was written 25 years ago on troff running on 4BSD. No guarantees that it'll work out of the box with current troff on Plan 9. BLS ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-03 15:38 ` Brian L. Stuart @ 2010-09-03 15:54 ` Charles Forsyth 0 siblings, 0 replies; 11+ messages in thread From: Charles Forsyth @ 2010-09-03 15:54 UTC (permalink / raw) To: 9fans >There should be some macro packages out there that >fit particular universities' requirements. oh. if there were whacky requirements (i think the main one for me was a now-obsolete requirement for 1.5 spacing) i tweaked settings as required. it was fairly minor effort (and i don't typically understand the internals of troff packages). ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-03 15:16 [9fans] native lbl, long text in troff, bold italics in eqn Rudolf Sykora 2010-09-03 15:38 ` Brian L. Stuart @ 2010-09-03 15:44 ` Charles Forsyth 2010-09-03 22:50 ` Pietro Gagliardi 2010-09-16 11:51 ` Rudolf Sykora 3 siblings, 0 replies; 11+ messages in thread From: Charles Forsyth @ 2010-09-03 15:44 UTC (permalink / raw) To: 9fans >2) I heard and read that the 'ms' troff macros are not suitable for >longer documents (I want to write my PhD thesis), as opposed >supposedly to the 'me' macros (which, however are not in plan9, I >believe). Can anybody give me their opinion? i don't see the problem. i've used -ms without fuss on dissertations. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-03 15:16 [9fans] native lbl, long text in troff, bold italics in eqn Rudolf Sykora 2010-09-03 15:38 ` Brian L. Stuart 2010-09-03 15:44 ` Charles Forsyth @ 2010-09-03 22:50 ` Pietro Gagliardi 2010-09-16 11:51 ` Rudolf Sykora 3 siblings, 0 replies; 11+ messages in thread From: Pietro Gagliardi @ 2010-09-03 22:50 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Sep 3, 2010, at 11:16 AM, Rudolf Sykora wrote: > 3) Although eqn produces worse result than TeX, I like the way > formulae are input, and thus have used it. Sometimes I need bold > italics, which I achieve by overstriking. This isn't ideal, maybe > using a special bold italics font would be better. Has anyone thought > about this? You should be able to embed troff directives in eqn: f( "\f(BIx\fP" ) = 4 sin "\f(BIy\fP" worked for me. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-03 15:16 [9fans] native lbl, long text in troff, bold italics in eqn Rudolf Sykora ` (2 preceding siblings ...) 2010-09-03 22:50 ` Pietro Gagliardi @ 2010-09-16 11:51 ` Rudolf Sykora 2010-09-16 13:00 ` jake 3 siblings, 1 reply; 11+ messages in thread From: Rudolf Sykora @ 2010-09-16 11:51 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Hello, so what do you use for cross-references in troff documents under plan9? Thanks, Ruda On 3 September 2010 17:16, Rudolf Sykora <rudolf.sykora@gmail.com> wrote: > is there a native lbl (for symbolic labels in text documents), or > do I have to grab the unix tarball and somehow compile that? (How? > Using APE? Never tried that before...) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-16 11:51 ` Rudolf Sykora @ 2010-09-16 13:00 ` jake 2010-09-16 15:54 ` Rudolf Sykora 0 siblings, 1 reply; 11+ messages in thread From: jake @ 2010-09-16 13:00 UTC (permalink / raw) To: 9fans > Hello, > so what do you use for cross-references in troff documents under plan9? > Thanks, > Ruda There's two versions of refer in contrib. One version is forsyth/refer.tgz, which is just refer, 'slightly improved,' and the other version is steve/refer, which is refer from forsyth with bin2ref and the plan 9 bibliography from the University of Utah. They can be installed with contrib. Hope that's what you need. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-16 13:00 ` jake @ 2010-09-16 15:54 ` Rudolf Sykora 2010-09-16 16:41 ` Gregory Pavelcak 0 siblings, 1 reply; 11+ messages in thread From: Rudolf Sykora @ 2010-09-16 15:54 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > There's two versions of refer in contrib. One version is forsyth/refer.tgz, > which is just refer, 'slightly improved,' and the other version is > steve/refer, which is refer from forsyth with bin2ref and the plan 9 > bibliography from the University of Utah. They can be installed with contrib. > Hope that's what you need. If I understand, refer is primarily meant to manage bibliographical references. I need cross-references within a document, like to pictures, pages, figures, equations, ... --- that's why I mentioned 'lbl' and asked whether there is a native port. Or more generally, what others use. I can't believe it'd be possible to write a longer document without automatically managing such things. Ruda ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-16 15:54 ` Rudolf Sykora @ 2010-09-16 16:41 ` Gregory Pavelcak 2010-09-16 16:51 ` Lyndon Nerenberg 0 siblings, 1 reply; 11+ messages in thread From: Gregory Pavelcak @ 2010-09-16 16:41 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 2460 bytes --] I think you would have to use two passes of troff. The first pass would generate the info you needed to define the crossref macro. For example: .NH 2 Middle of Paper .LP .tm crossref: .if "\\\\$1"middle" see sec. \*(SN I have the label 'crossref:' in case you are generating definitions for several macros, and you want to grep the standard error to treat different lines in different ways. If you're using -mpm, for example, and you like running heads that change with section number changes, you need to use a method like this to define a running-head macro. If crossrefs turn out to be the only things that need this treatment, you can obviously leave the label out. Do a pass with troff -ms mypaper >[2]crossrefs. So crossrefs will look like .de CR .if "\\$1"middle" see sec. 3.7 .if "\\$1"differentsection" see sec. 7.2.6 . . .. Then read in crossrefs on the next pass, and all of your refs in the doc like .CR middle .CR differentsection should work. Putting thought into a text processing mkfile is probably worthwhile here. Although it's another example of bibliographic references, Russ Cox once posted some scripts using rc, awk and a mkfile that used this two pass idea. It would probably be worth looking at his example too. It's quite brief. http://groups.google.com/group/comp.os.plan9/browse_thread/thread/76ff0d3dc3c49e59/03bfa13f60f56900?lnk=gst&q=rsc+refs#03bfa13f60f56900 I think this is roughly right; I haven't used troff in a while. I'm sure someone else will chime in if there's an easier approach. HTH Greg On Thu, Sep 16, 2010 at 11:54 AM, Rudolf Sykora <rudolf.sykora@gmail.com>wrote: > > There's two versions of refer in contrib. One version is > forsyth/refer.tgz, > > which is just refer, 'slightly improved,' and the other version is > > steve/refer, which is refer from forsyth with bin2ref and the plan 9 > > bibliography from the University of Utah. They can be installed with > contrib. > > Hope that's what you need. > > If I understand, refer is primarily meant to manage bibliographical > references. > I need cross-references within a document, like to pictures, pages, > figures, equations, ... --- that's why I mentioned 'lbl' and asked > whether there is a native port. Or more generally, what others use. I > can't believe it'd be possible to write a longer document without > automatically managing such things. > Ruda > > [-- Attachment #2: Type: text/html, Size: 3158 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-16 16:41 ` Gregory Pavelcak @ 2010-09-16 16:51 ` Lyndon Nerenberg 2010-09-27 16:31 ` Peter A. Cejchan 0 siblings, 1 reply; 11+ messages in thread From: Lyndon Nerenberg @ 2010-09-16 16:51 UTC (permalink / raw) To: 9fans On 10-09-16 9:41 AM, Gregory Pavelcak wrote: > I think you would have to use two passes of troff. The first pass would > generate the info you needed to define the crossref macro. Also, take a look around troff.org. At the very least there should be a link to Stevens' notes about typesetting the TCP books. I'm pretty sure he talks about how he did index assist macros. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] native lbl, long text in troff, bold italics in eqn 2010-09-16 16:51 ` Lyndon Nerenberg @ 2010-09-27 16:31 ` Peter A. Cejchan 0 siblings, 0 replies; 11+ messages in thread From: Peter A. Cejchan @ 2010-09-27 16:31 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 180 bytes --] OT: Ruda, if you are located in CZ, please, contact me at cej_at_gli_cas_cz, (s/at/@/; s/_/./, of course) it would be nice to have some plan9ist here, I sit at Prague. Thanks! [-- Attachment #2: Type: text/html, Size: 187 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-09-27 16:31 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-09-03 15:16 [9fans] native lbl, long text in troff, bold italics in eqn Rudolf Sykora 2010-09-03 15:38 ` Brian L. Stuart 2010-09-03 15:54 ` Charles Forsyth 2010-09-03 15:44 ` Charles Forsyth 2010-09-03 22:50 ` Pietro Gagliardi 2010-09-16 11:51 ` Rudolf Sykora 2010-09-16 13:00 ` jake 2010-09-16 15:54 ` Rudolf Sykora 2010-09-16 16:41 ` Gregory Pavelcak 2010-09-16 16:51 ` Lyndon Nerenberg 2010-09-27 16:31 ` Peter A. Cejchan
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).