Re: [9fans] troff macros for typesetting books/longer texts

2011-03-24 Thread Allan Heim
troff got me my first job in the industry, working at SCO in the '80s 
as a typesetter. I swore by my copy of Word Processing on the UNIX
System by Morris Krieger, and I'm shocked to not see it listed at
http://www.troff.org/books.html but a Google search shows that used
copies are still available, and at reasonable prices.

If you want to go the plain TeX route, I _strongly_ recommend Arvin 
Borde's books, TeX By Example and Mathematical TeX By Example. The
books' conceit is to show typeset text on one page, and the source code 
used to generate that text on the facing page--such an obvious idea.
Those, plus The TeXbook, are sure to help someone become a solid wizard.





  



Re: [9fans] troff macros for typesetting books/longer texts

2011-03-24 Thread hiro
 i think everybody would appreciate one xor the other cleaned up,
de-pccified and added to the distribution.

I like this use of languages :)

The thread is getting big. Perhaps simply learning troff/tex is indeed easier.

But I really am no typesetter, just a simple computer user.
Tex is yet an other language, Latex too complicated, Microsoft Word
too ugly, Troff macros not in a good state...

What can I use?



Re: [9fans] troff macros for typesetting books/longer texts

2011-03-24 Thread Gabriel Diaz
hello

html?

For those who use math in their docs, this might be of interest:
http://www.mathjax.org,

gabi

On Thu, Mar 24, 2011 at 2:16 PM, hiro 23h...@googlemail.com wrote:

  i think everybody would appreciate one xor the other cleaned up,
 de-pccified and added to the distribution.

 I like this use of languages :)

 The thread is getting big. Perhaps simply learning troff/tex is indeed easier.

 But I really am no typesetter, just a simple computer user.
 Tex is yet an other language, Latex too complicated, Microsoft Word
 too ugly, Troff macros not in a good state...

 What can I use?




[9fans] troff macro II

2011-03-24 Thread Rudolf Sykora
Hello 9fans,

since in the previous thread started by me ('troff macros for
typesetting books/longer texts') nobody touched my question about
producing wanted headings, I started experimenting, but so far has not
been quite successful.

Since text to appear in my headings is to mirror section names, like
'1.2', and a beginning of such a section appears somewhere lower on a
page---definitely below the page heading---, I must create a page
heading just after the very page is filled, i.e., as I feel, the
heading could actually be produced when the ms .BT macro (usually used
to typeset footings) is called. So I naively tried to redefine the .BT
macro, actually, by just appending 4 extra lines:

.de BT
.nr PX \\n(.s
.nr PF \\n(.f
.ft 1
.ps \\n(PS
'lt \\n(LTu
.po \\n(POu
.if \\n%0 .tl \(ts\\*(LF\(ts\\*(CF\(ts\\*(RF\(ts
.ft \\n(PF
.ps \\n(PX
.\  ABOVE IS THE ORIGINAL, BELOW MY APPENDIX
.mk
\v'|0.5i'
.tl 'a'b'c'
.rt
..

Please consider this just as an experiment (no point-size changes,...).
This for some reason doesn't work.
Since some of you probably have experience, could sb. tell what is wrong?

Thank you
Ruda



Re: [9fans] troff macro II

2011-03-24 Thread Gregory Pavelcak
Typing from phone so I'll be brief.

Just put the header at the bottom of the page and pipe the .ps output
through sed to change the vertical position.

I found this easier than moving back up the page in troff.

Greg

On Mar 24, 2011 12:56 PM, Rudolf Sykora rudolf.syk...@gmail.com wrote:

Hello 9fans,

since in the previous thread started by me ('troff macros for
typesetting books/longer texts') nobody touched my question about
producing wanted headings, I started experimenting, but so far has not
been quite successful.

Since text to appear in my headings is to mirror section names, like
'1.2', and a beginning of such a section appears somewhere lower on a
page---definitely below the page heading---, I must create a page
heading just after the very page is filled, i.e., as I feel, the
heading could actually be produced when the ms .BT macro (usually used
to typeset footings) is called. So I naively tried to redefine the .BT
macro, actually, by just appending 4 extra lines:

.de BT
.nr PX \\n(.s
.nr PF \\n(.f
.ft 1
.ps \\n(PS
'lt \\n(LTu
.po \\n(POu
.if \\n%0 .tl \(ts\\*(LF\(ts\\*(CF\(ts\\*(RF\(ts
.ft \\n(PF
.ps \\n(PX
.\  ABOVE IS THE ORIGINAL, BELOW MY APPENDIX
.mk
\v'|0.5i'
.tl 'a'b'c'
.rt
..

Please consider this just as an experiment (no point-size changes,...).
This for some reason doesn't work.
Since some of you probably have experience, could sb. tell what is wrong?

Thank you
Ruda


[9fans] how can I set path

2011-03-24 Thread 流明
I'm new to plan9. i don't know how to set path on plan9, can you help me? thank 
you.

Re: [9fans] how can I set path

2011-03-24 Thread Jacob Todd
You don't.  You may want read /sys/doc/9.ps.


Re: [9fans] how can I set path

2011-03-24 Thread 流明
but i want to build inferno on plan9, i have to add 
/usr/glenda/inferno/Plan9/386/bin to my default path.
 how can i do that?
  
  
 From: Jacob Todd jaketodd422@gma...
Subject: how can I set path
Date: Fri, 25 Mar 2011 00:23:09 -0400

You don't.  You may want read /sys/doc/9.ps.

Re: [9fans] how can I set path

2011-03-24 Thread John Floren
bind -b /usr/glenda/inferno/Plan9/386/bin /bin

2011/3/24 流明 34261...@qq.com:
 but i want to build inferno on plan9, i have to add
 /usr/glenda/inferno/Plan9/386/bin to my default path.
 how can i do that?


From: Jacob Todd jaketodd422@gma...
Subject: how can I set path
Date: Fri, 25 Mar 2011 00:23:09 -0400

You don't.  You may want read /sys/doc/9.ps.




Re: [9fans] how can I set path

2011-03-24 Thread Jacob Todd
bind -a /usr/glenda/inferno/Plan9/386/bin /bin


Re: [9fans] how can I set path

2011-03-24 Thread 流明
it does!
 thank you very much!
  
  
 From: John Floren john@jfl...
Subject: how can I set path
Date: Thu, 24 Mar 2011 21:36:51 -0700

bind -b /usr/glenda/inferno/Plan9/386/bin /bin

2011/3/24 ���˜Ž 34261...@qq.com:
 but i want to build inferno on plan9, i have to� add
 /usr/glenda/inferno/Plan9/386/bin to my default path.
 how can i do that?


From: Jacob Todd jaketodd422@gma...
Subject: how can I set path
Date: Fri, 25 Mar 2011 00:23:09 -0400

You don't.�  You may want read /sys/doc/9.ps.