HDTenEightyP/NetNews huggingface dataset:
From: kjb@cgl.citri.edu.au (Kendall Bennett)
Newsgroups: comp.text
Subject: Re: Rounding function in c
Date: 30 Jul 92 01:53:09 GMT
Organization: RMIT Advanced Computer Graphics Centre, CITRI, Melbourne

theo@rascal.UUCP (1472) writes:

>> Does anyone out there have a rounding function for ANSI 'C', I am
>>trying to do some financial applications, and badly need a rounding
>>function.

This must be an FAQ, but you can do it with a simple macro or C++ inline
function:

#define	ROUND(x)	(floor((x) + 0.5))

or

inline double round(double x)
{
	return floor(x + 0.5);
}

Note that this is universal, and works correctly for both the positive AND
negative cases of x.

+------------------------------------------+-------------------------------+
| Kendall Bennett,                         | Internet:                     |
| Advanced Computer Graphics Centre,       | kjb@godzilla.cgl.citri.edu.au |
| Royal Melbourne Institute of Technology, | rcskb@minyos.xx.rmit.oz.au    |
| Victoria, AUSTRALIA.                     |                               | 
+------------------------------------------+-------------------------------+
| CoSysop (Bossman), PC Connection Australia:               +61 3 688 0909 |
+--------------------------------------------------------------------------+
From: joe@zitt (Joe Zitt)
Newsgroups: comp.text.interleaf
Subject: Stopping Wrap Prompts
Date: Thu, 23 Jul 92 00:11:09 CDT
Organization: Metatron Press / Human Systems Performance Group, Austin, TX

(Interleaf 5 on a RISC System/6000)

I'm creating a tool that goes through books of Interleaf documents, collecting
and listing instances of NO TAGs. To do this, I'm using
	(tell *text-editor* mid:goto :reference nil)
or something like it (I'm not at that system now).

Unfortunately, everytime it hits the end of a file, it shows a Wrap or
Cancel window, requiring the user to press Enter (or click the mouse)
before it can proceed to the next document. This makes it difficult to
run the program without someone there to babysit it.

Is there anyway to get it to stop such a search when it hits the end of
the document?
--
"Go to an extreme and then retreat to a more useful position"  --  Brian Eno
Joe Zitt 	       ...cs.utexas.edu!kvue!zitt!joe  	       (512)450-1916
Newsgroups: comp.text.interleaf
From: coriale@casper.serum.kodak.com (Matthew Coriale (x37975))
Subject: Re: Table of contents:  How to set up the masters how I want them
Organization: Clinical Products Division, Eastman Kodak Company
Date: Fri, 24 Jul 1992 14:31:56 GMT

In article <1992Jul24.131319.24448@genrad.com> djg@genrad.com (Deborah J. Graham) writes:
>In article <1992Jul23.162507.24523@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael Wolf) writes:
>>I would like to have the table of contents use the masters I have
>>set up.  Each time the TOC is generated, it forgets my changes to
>>the masters in the previous TOC.
>
>We do this by having a template that we paste the Interleaf-created
>TOC into (select the TOC document and then cut, open the template and then 
>paste in the black component bar). Then we Select->All of-><component>TOC,
>Change-><component>TOC....and so on for all the components. This takes
>the Master properties in the template and applies them to the
>generated contents.
>
>Our template is in the System5 cabinet, Create cabinet, GRTemplates
>drawer (which holds all the GenRad-created templates) so that anyone
>can get a new copy when they need to generate another TOC.
>
>Hope this helps and answers your question.
>
>Let me know if you have any other questions.
>
>deb
>(djg@genrad.com)
>GR Interleaf Guru; Editor and Writer, GR Interleaf Newsletter


This will work, BUT, this is not the way it was intended.  See my
earlier note regarding Catalogs.  You will never have to mess around
with manually doing things in a TOC again.  It doesn't matter what the
file name is or anything, just create the catalog, and let it go.

- Matt Coriale

p.s.  what is the GR InterGrief Newsletter?

coriale@serum.kodak.com

/* My views, STILL */
From: wca0@ns1.cc.lehigh.edu (Konsultant Cody A)
Newsgroups: comp.text.interleaf
Subject: Re: Interleaf failing to see new files created outside of Interle
Date: 27 Jul 92 17:05:55 GMT
Organization: Lehigh University

In article <jhanbpxn@csv.warwick.ac.uk>, esrmm@warwick.ac.uk (Denis Anthony) wri
tes:
>
>I find that any files created (in the desktop directory) outside of
>Interleaf (e.g. from Unix prompt) while Interleaf is running are not
>found by Interleaf, and any files deleted outside of Interleaf are
>still displayed as existing. I do not get this problem on my Apollo
>system, but only on Suns. Is this a local problem, or does anyone else
>note this?
>
>Denis
>

Choose the Custom->Rescan option from your desktop.  Interleaf only "notices"
files that were on your desktop and its subdirectories at startup.

As for the difference between the Suns and Apollos, I imagine that automatic
rescan must be an installation option.
-- 

***************************************************************************
wca0@Blinky.CC.Lehigh.Edu   |  W. Cody Anderson
wca0@Yocco.CC.Lehigh.Edu    |  LUCC Systems Programming
wca0@NetNews.CC.Lehigh.Edu  |  (215) 758-5062
***************************************************************************
From: larock@software.org (Curt Larock)
Subject: Interleaf 5 Authoring and Version Control Tools
Organization: Software Productivity Consortium, Herndon, Virginia
Date: Fri, 24 Jul 1992 14:01:29 GMT

What authoring and version control tools are available for
Interleaf?  I'm especially interested in grammar/style checkers
that can be customized, our documents usually contain lots
of jargon, code fragments, etc., that get misidentified as
errors by style checkers.

I'm already familiar with Proof Positive for grammar checking and
RDM for version control.  What else it out there?

Please e-mail me and I'll summarize.
-- 
Curt Larock			Software Productivity Consortium
larock@software.org		2214 Rock Hill Rd.
				Herndon VA 22070
Newsgroups: comp.text.interleaf
From: gjs@pursuit.camb.inmet.com (George Snyder)
Subject: Re: Site wide mouse button defaults
Organization: Intermetrics Inc.
Date: Wed, 22 Jul 1992 17:48:14 GMT

In article <1992Jul15.195657.27608@kocrsv01.delcoelect.com>
    c23cjc@kocrsv01.delcoelect.com (Chris Cleary) writes:

> Is there any way to change the default mouse buttons on a site basis?

Edit /interleaf/ileaf5/english.cab/Custom.cab/profile.drw/init.lsp
(english.cab may be a different name, depending on the installed
language).  Each Interleaf user has a symbolic link to this file from
their ~/desktop/System5.cab/Custom.cab/profile.drw.  Uncomment the three
lisp commands shown below, and edit them to specify the desired system
default actions.

    ;;;
    ;;;     Mouse button mappings:
    ;;;
    ;(tell *wn-wmgr* mid:set-props :left-button :select)
    ;(tell *wn-wmgr* mid:set-props :middle-button :menu)
    ;(tell *wn-wmgr* mid:set-props :right-button :extend)

Any user with a customized profile (e.g. created with Profile Tool) will
get the settings from the profile, overriding these defaults.

-- George Snyder    Intermetrics, Inc.	    Internet:  gjs@inmet.com
--		    733 Concord Avenue	      Usenet:  uunet!inmet!gjs
--		    Cambridge, MA 02138	       Voice:  (617) 661-1840
Newsgroups: comp.text.interleaf
From: tw@sics.se (Tommy Wallo)
Subject: Ileaf5.3 and X11R5
Organization: Swedish Institute of Computer Science, Kista
Date: Sat, 25 Jul 1992 17:43:27 GMT

I have a irritating problem with Interleaf5.3 runnning under 
MIT X11R5. Interleaf doesn't refresh the screen after popup menus, 
the menus leaves a white area on the screen until you manually give 
a refresh command. 
The problem seems to only exist with a X11R5 server, displaying on 
X11R4, AIX-windows, DECwindows and Openwindows-3.0 all works OK, but 
not MIT X11R5.

Any suggestions ?

I am running Interleaf version 5.3 on a Sun Sparcstation, 
SunOS 4.1.2 and MIT X11R5.

	-- Tommy


--
Tommy Wallo                                     Internet: tw@sics.se
Swedish Institute of Computer Science (SICS)    Tel:      +46 8 752 15 53
PO Box 1263, S-164 28 KISTA, SWEDEN             Fax:      +46 8 751 72 30
Newsgroups: comp.text.interleaf
From: bigos_p@apollo.HP.COM (Patrick Bigos)
Subject: Screen Captures?
Date: Mon, 27 Jul 1992 12:03:17 GMT
Organization: Hewlett-Packard Company, Exeter, NH


Good morning all,

    I was trying to invoke a screen capture within the Interleaf
Five window and I am not getting the results I used to get with
TPS4.0.  I was trying to capture a menu sequence.  You know...
Hold down the middle button, traverse through the menus.  When I
did the ctrl-Z thing, the menu said SEEYA!

                             What's up with this?

                             Patrick Bigos
                             bigos_p@apollo.hp.com
Newsgroups: comp.text.interleaf
From: coriale@casper.serum.kodak.com (Matthew Coriale (x37975))
Subject: Re: Table of contents:  How to set up the masters how I want them
Summary: catalog is your answer!
Organization: Clinical Products Division, Eastman Kodak
Date: Fri, 24 Jul 1992 12:04:05 GMT

In article <1992Jul24.120612.1@cc.newcastle.edu.au>
eekl@cc.newcastle.edu.au (Kim LAW, Dept. E.E., Uni Newcastle, NSW,
AUSTRALIA) writes:  >In article <1992Jul23.162507.24523@rtsg.mot.com>,
wolfmc@rtsg.mot.com (Michael Wolf) writes:  
>> I would like to have the table of contents use the masters I have 
>> set up.  Each time the TOC is generated, it forgets my changes to 
>> the masters in the previous TOC.  
>> 
>> This is causing problems because I have tabs som of the TOC entries 
>> and it screws up the tab formatting in the generated TOC.
>> 
>> All help is appreciated 
>> 
>> TIA 
>> 
>> Michael 
>>

Well, the way the TOC feature works is this:  Whenever you do a "TOC",
it merely writes a new ascii-text file of the table-of-contents.  It
does create a component for each of the entries, however, these masters
are not dependant upon what was previously in the other TOC (as you
have found out).  What you need to do is this:  Enter into the next
realm of InterGrief Wizardry - CATALOGS!

1]      create a catalog file (look it up in your books if you don't
	know how to do this)

2]      physically place this catalog file just to the left of your TOC
	file

3]      copy 1 of each of your components from the TOC into the catalog
	file and then format them the way you want.  From this point on
	(assuming you are running the right license under InterGrief),
	the catalog now contains a "master" for the document.  Now, even
	though you are creating a new text file every time you "TOC",
	your catalog file will override the component "defaults" in the
	new TOC file and replace their props with the ones from the
	master.  This all seems pretty confusing, but it's really simple
	if you get the hang of it.  Remember that the Catalog only works
	under certain licenses, and you must open (or resave from the
	desktop) your TOC file for the catalog to take effect.  Make sure
	you look up the "EXPORTS" section on the catalog file's PROPS.

NOTE:  This also can be used for the headers and footers too!  

Catalogs are pretty neat, and you can even have multiple ones in the
same file.  I suggest that you mess around with one for a while, THEN
read the manual.  The manual(s) don't really make that much sense until
you have a basic idea of what you are trying to accomplish.  Also,
catalogs can be used on ANY document file, so you can use them to set
up masters for a whole book at one time.

Hope this helps.

- Matt Coriale

coriale@serum.kodak.com

/* The inventor of the nick-name "InterGrief" */
/* the views above are MINE MINE MINE all MINE */
From: esrmm@warwick.ac.uk (Denis Anthony)
Newsgroups: comp.text.interleaf
Subject: Email address for Interleaf Ltd. required
Date: 22 Jul 92 17:40:34 GMT
Organization: Computing Services, Warwick University, UK

Anyone know it. If Interleaf Ltd. listening, could you give me a buzz
via email please.
From: eros@rigel.cs.pdx.edu (In UNIX no one can hear you scream.)
Newsgroups: comp.text.interleaf
Subject: Re: Interleaf to .ps conversion
Date: 26 Jul 92 02:43:33 GMT
Article-I.D.: pdxgate.5935

sam@cs.adelaide.edu.au (Sam Sangster) writes:

>In article <1633@hydra.bucknell.edu>, lokanthn@acrux.bucknell.edu 
>|>(arumugamangalam lokanathan GR) writes:
>|> Framemaker V3.1x has a menu driven command to store a file as a .ps file.
>|> 
>|> However, I have not been able to find a way to do that in Interleaf 
>|> ( running on Domain Window Manager on HP Apollo ). Suggestions?


>I am led to believe by the documentation that your system manager is able to
>add such functionality in installing a special "printer" to Interleaf.

>I would have tried that, but we didn't receive the installation documentation
>when Interleaf shipped to us ... but we're expecting ver 5.3 real soon now,
>so I hope to include this functionality myself then.

Try making a "printleaf" file, to do this, where you would select the printer
on the menu, select "printleaf" instead. This will create a ".pl" file. Then,
on the command line, use the "pltops" command, this can be found with your other
interleaf binaries. The "pltops" command is used in this maner:
	pltops file.pl > file.ps

Hope this helps,
			      Adam Harrison
Warning: I'm a member of R.S.A.I.G.O.U.P.W.H.N.B.T.D.W.T.T.T.W.M.- Rushed
	Students Against Idle Gossip Of Uninteresting People Who Have 
	Nothing Better To Do With Their Time Than Waste Mine.
Newsgroups: comp.text.interleaf
From: stevez@outboard.med.ge.com (Steve Zanoni 5-4325)
Subject: Revision Bars - automatic
Organization: GE Medical Systems,  Milwaukee,  WI
Date: Sat, 25 Jul 92 05:35:43 GMT

I would like to open a document, set revision bar on, and then have every-
thing I type get a revision bar.

Now I put my cursor where I want to make a change, go turn on revision, then
type away to get revision bars. Once I move the cursor to a different section
of the text, I have to go through the same sequence.

There must be an easier way to do this. At least I hope there is.
--
Steve Zanoni
GE Medical Systems
stevez@med.ge.com
From: djg@genrad.com (Deborah J. Graham)
Newsgroups: comp.text.interleaf
Subject: Re: Interleaf failing to see new files created outside of Interleaf
Date: 27 Jul 92 13:38:32 GMT
Organization: GenRad, Inc.

In article <jhanbpxn@csv.warwick.ac.uk> esrmm@warwick.ac.uk (Denis Anthony) writes:
>
>I find that any files created (in the desktop directory) outside of
>Interleaf (e.g. from Unix prompt) while Interleaf is running are not
>found by Interleaf, and any files deleted outside of Interleaf are
>still displayed as existing. I do not get this problem on my Apollo
>system, but only on Suns. Is this a local problem, or does anyone else
>note this?

Yup. We noticed this. I read the release notes that came with
Interleaf 5.2 and found a paragraph that says because automatic
refresh took too much time, Interleaf decided to remove it. So,
anytime that you add or delete files, you need to do Custom->Refresh
to have Interleaf look at the actual directory. Drives the users here
at GenRad crazy. I get a call about once a month that says "I just
copied a file and I can't find it in Interleaf". 

Also, remember that the icons are actually the .@files and if you do
not delete those at the operating system level, a Custom->Refresh
still displays them. If you try to open then, you get an error
stickup, and if you do props, you find out they are incomplete files.
You can, cut or Custom->Expunge the icons.

If you have any other questions, let me know.

deb
(djg@genrad.com)
GR Interleaf Guru; editor & writer, GR Interleaf Newsletter
From: lagrue.Wgc-e@rx.xerox.com (John Lagrue)
Newsgroups: comp.text.interleaf
Subject: Interleaf conversion to Postscript - with compression
Date: 22 Jul 92 16:01:53 GMT
Reply-To: lagrue@rx.xerox.com
Organization: Rank Xerox, Welwyn Garden City, UK

I have to generate postscript from Interleaf docs that contain
several hundred pages of bitmaps. I currently have a doc whose
first 100 pages produces a postscript file 140Mb long. I have
discovered that pl2ps takes a '-cmprs' switch that compresses
the bitmaps in a postscript master, and by editting the printers.lsp
file to use this switch I can reduce the postscript coming from the
same 100 pages to 9.3Mb!

However, nothing seems to be able to handle this new postscript file
except pageview from OW 3.0 in my sun!

Does anyone have any info on what exactly the -cmprs switch does?
What kind of compression does it produce?

I would be very grateful for any light anyone can shed on this.

---
John Lagrue
=============================================================
| uucp address: ..!uunet!rx.xerox.com!lagrue.wgc-e          |
| Arpa address: Lagrue.Wgc-e@RX.Xerox.COM                   |
=============================================================
Newsgroups: comp.text.interleaf
From: ctalbott@mksol.dseg.ti.com (christopher j talbott)
Subject: Re: Grammar/style checkers
Organization: Texas Instruments, Inc
Date: Thu, 30 Jul 1992 22:20:16 GMT

In article <3634@cvbnetPrime.COM> nparent@larrybird.prime.com (Nicole Parent) writes:
>
>
>Is anybody familiar with grammar/style checkers that work with 
>Interleaf?         
>
>Any recommendations?
>
>Thank you!
>
>Nicole

My group has had Avalanche's ProofPositive in-house for about a year now,
and it seems to be a fairly nice grammar/style checker.  It's based on the
Houghton-Mifflin engine, and it's pretty quick.  I can find their number 
if you're interested.  ProofPositive is an Interleaf layered application
which runs against an open document on your desktop.  It's got a fair level
of control over which rules it uses and how sensitive it is (e.g. how badly
an infinitive has to be split before it complains), and it has a Dictionary/
Thesaurus program as well.  Our only complaint with it is that it won't work
non-interactively (a key concern for us, maybe not for you).  Apparently, a
future release of PP will allow you to define your own grammar rules.

Hope this helped.

-Chris Talbott (chris@ews7.dseg.ti.com)

-- 
//////////////////////////////////////////////////////////////////
/// Chris Talbott     ///////// ctalbott@mksol.dseg.ti.com ///////
/// Software Designer ///////// chris@ews7.dseg.ti.com     ///////
//////////////////////////////////////////////////////////////////
From: ram@cs.umb.edu (Robert Morris)
Newsgroups: comp.text.interleaf
Subject: Re: Stopping Wrap Prompts
Date: 24 Jul 92 12:05:41 GMT
Reply-To: ram@cs.umb.edu
Organization: University of Massachusetts at Boston

In article <aXmcoB1w163w@zitt> joe@zitt (Joe Zitt) writes:
Path: news.cs.umb.edu!hsdndev!news.bbn.com!olivea!uunet!cs.utexas.edu!natinst.com!balkan!dogface!zitt!joe
   From: joe@zitt (Joe Zitt)
   Newsgroups: comp.text.interleaf
   Date: 23 Jul 92 05:11:09 GMT
   Organization: Metatron Press / Human Systems Performance Group, Austin, TX
   Lines: 17

   (Interleaf 5 on a RISC System/6000)

   I'm creating a tool that goes through books of Interleaf documents, collecting
   and listing instances of NO TAGs. To do this, I'm using
	   (tell *text-editor* mid:goto :reference nil)
   or something like it (I'm not at that system now).

   Unfortunately, everytime it hits the end of a file, it shows a Wrap or
   Cancel window, requiring the user to press Enter (or click the mouse)
   before it can proceed to the next document. This makes it difficult to
   run the program without someone there to babysit it.

   Is there anyway to get it to stop such a search when it hits the end of
   the document?
   --
   "Go to an extreme and then retreat to a more useful position"  --  Brian Eno
   Joe Zitt 	       ...cs.utexas.edu!kvue!zitt!joe  	       (512)450-1916

------------------
We use
	(stk-intercept stk:doc-wrap-search-fwd   '(lambda (&rest bogus) nil))
	(stk-intercept stk:doc-wrap-search-back '(lambda (&rest bogus) nil)))

to turn off the wrap stickups by subclassing them to provide an
empty open method.

	(stk-disable STK-OBJ)

may be less archaic, and from its name, I would guess it is preferred.

        (stk-unintercept stk:doc-wrap-search-fwd)
        (stk-unintercept stk:doc-wrap-search-back))

will turn them on. I didn't notice any explicit stk-enable, and the
relevant doc string seems to suggest using this with stk-disable anyway.

At least in 5.3, and probably earlier, all of this is deducible from
"apropos wrap" and "apropos stk".


Bob Morris
ram@cs.umb.edu
From: djg@genrad.com (Deborah J. Graham)
Newsgroups: comp.text.interleaf
Subject: Re: Table of contents:  How to set up the masters how I want them
Date: 24 Jul 92 13:17:48 GMT
Organization: GenRad, Inc.

In article <1992Jul24.131319.24448@genrad.com> djg@genrad.com (Deborah J. Graham) writes:
>In article <1992Jul23.162507.24523@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael Wolf) writes:
>>I would like to have the table of contents use the masters I have
>>set up.  Each time the TOC is generated, it forgets my changes to
>>the masters in the previous TOC.

I forgot the most important thing! Name the template table of contents
something besides "toc" - Interleaf overwrites any existing "toc" file
and that may be where you're losing the master information.

Ours is called table_ps_811 (to differentiate it from the cx version,
and the 7by9 version).

Sorry about that. It was one of those, send-then-remember things.

deb
(djg@genrad.com)
GR Interleaf Guru; Editor and Writer, GR Interleaf Newsletter
From: arte@inmet.camb.inmet.com
Date: 27 Jul 1992 09:11 EDT
Newsgroups: comp.text.interleaf
Subject: Re: Table of contents:  How to set up t
Message-ID: <729400002@inmet>
Nf-ID: #R:<1992Jul23:162507:inmet:729400002:000:1009
Nf-From: inmet.camb.inmet.com!arte    Jul 27 09:11:00 1992


While I haven't been able to figure out how to print TOCs with different master
components than those provided by Interleaf, I have streamlined the process of
using the ones Interleaf generates.

I've generated a document which I call master_TOC.doc which takes into account
the properties of my documents (I also use tabs in section headers). This 
document must have masters of the same name as those that would be generated by
your documents (i.e. headTOC, head1TOC, head2TOC, etc.) 

You can then generate the Interleaf TOC, cutting and pasting the contents into 
your TOC master (or a copy). Go into your new TOC document, perform a 
SELECT-->ALL on each kind of component and change them to be the components they
say they are (on Interleaf 5 this should be the default for the CHANGE--> pull-
down menu). In 3-5 easy steps the document should look perfect. (This whole 
process usually takes me less than 5 minutes (once the master is set up).

						Arte Kenyon
						arte@inmet.camb.inmet.com
From: djg@genrad.com (Deborah J. Graham)
Newsgroups: comp.text.interleaf
Subject: Re: Revision Bars - automatic
Date: 27 Jul 92 13:21:28 GMT
Organization: GenRad, Inc.

In article <1992Jul25.053543.27629@mr.med.ge.com> stevez@outboard.med.ge.com (Steve Zanoni 5-4325) writes:
>I would like to open a document, set revision bar on, and then have every-
>thing I type get a revision bar.

Interleaf 5 has Persistent Revision Bars - they stay active no matter
where you type, until you either toggle them off or turn revision bars
off totally.

To activate, use Font->Props->Revision->Persistent. The title bar of
the document should show RevBars*, the star meaning persistent.

That should do it.

Even when you close and reopen the document, persistent revision bars
are still active.

Let me know if you have any other questions.

deb
(djg@genrad.com)
GR Interleaf Guru; editor & writer, GR Interleaf Newsletter
Newsgroups: comp.text.interleaf