[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

847.0. "TEX crashes when using a profile" by UNTADC::CAAHANS (Hans Bachner, ADG Munich) Mon Aug 24 1987 12:48

I found a very strange behaviour of the text formatter.

My DOCUMENT source file is about 30 blocks (so not too big). When I
insert the line
<FRONT_MATTER><CONTENTS_FILE><ENDFRONT_MATTER>
at the beginning, DOCUMENT works just fine.

But then I created a profile file with the following contents:
<PROFILE>
<front_matter>(only_contents)
<contents_file>
<endfront_matter>
<element>(caa$rep.sdml)
<ENDPROFILE>

and removed the <front_matter> sequence from the source file.
Then invoked DOCUMENT again and got

$ document /contents caa$rep.profile s.sp ln03
%DOC-I-IDENT, VAX DOCUMENT V1.0
[ T a g   T r a n s l a t i o n ]...
%TAG-I-TAG_IDENT, V1.0
%TAG-I-DEFSLOADD, End of Loading of Tag Definitions
%TAG-I-ENDPASS_1, End of first pass over the input
%TAG-I-FILEWRTOK, File CAA$REP.TEX written
[ T e x t   F o r m a t t i n g ]...
%TEX-I-IDENT, V1.0
%TEX-E-NOROOM, Exceeded memory capacity:
-TEX-I-MAXINPUTS, Maximum number of simultaneous input files is: 6
%TEX-I-LINE, Error occurred on or around line number: 10
%TEX-I-SHOWCONTEXT, '\input  CAA$REP.TEX'
%TEX-I-SHOWCONTEXT, '                   '
%TEX-I-FILENAME, 'CAA$REP'
-TEX-I-ONPAGE, on page [1] 

%TEX-I-PAGESOUT, 6 pages written.
-TEX-I-OUTFILENAME, 'caa$dev:[caa.hans.docgen]CAA$REP.DVI_LN03'
%DOC-E-ERROR_FORMATTER, Errors found by the Text Formatter.

What's the difference between having all the stuff in a single file
opposed to a mini-profile and the actual data in two different files ?

BTW, my source file contains only one chapter with a couple of <HEADn>
tags.

Any help will be appreciated.

Thanks, Hans.
T.RTitleUserPersonal
Name
DateLines
847.1A few ideas.VAXUUM::CORMANMon Aug 24 1987 14:5818
    The <front_matter> tag is not valid inside a profile. Try
    taking it out and processing the profile again. You can
    leave the <contents_file> tag in the profile; <contents_file>
    is enabled either in a profile or in the front matter.
    
    One point that confuses me: what is the name of your profile?
    You show that you process "caa$rep.profile"...is that a typo?
     The profile is an SDML file, right?
    
    And, why are you bothering to use a profile at all, if you
    are only processing one single chapter? If it is to separate
    the front matter from the chapter, you need to have an additional
    .SDML file that contains the front matter material,
    and then include that front matter file in the profile with
    a second <element> tag, such as <element>(front_matter.sdml).
    
    Hope I'm on the right track with my suggestions.
    -Barbara
847.2same filename for the book and the elementVAXUUM::KOHLBRENNERMon Aug 24 1987 16:2717
    DOCUMENT will create a separate file for each element of a book,
    and will tell TeX to include each one.  Unfortunately, your choice
    of names for the profile and the element caused DOCUMENT to
    create a CAA$REP.TEX file for the chapter and a CAA$REP.TEX file
    for the profile itself.  One of those files says to "\input"
    the other file.  When TeX goes off to "\input" that file it
    inputs the file that it is already reading.  It is in a closed loop
    that goes down six openings (of the same file) and then dies
    with too many input files open.
                            
    Rename your profile to caa$rep_profile.sdml, or something like
    that and try it again.
    
    I would echo Barbara's comments.  Why bother with a profile at all?
    
    bill
    
847.3we *generate* SDML filesUNTADA::CAAHANSHans Bachner, ADG MunichTue Aug 25 1987 04:4725
    Thank you very much for your quick response. Your suggestions worked
    just fine. I renamed the profile file (which is an SDML file regardless
    of the file type '.profile' and got what I expected.
    
    I was not aware that <front_matter> is not allowed in the profile,
    but <contents_file> is (I thought the latter is only valid within
    a <front_matter> context). However, it works with as well as without
    the <front_matter> tag in the profile.
    
    Why take a profile for a single chapter ?  You won't believe it
    but our use of DOCUMENT has progressed so far as to generate SDML
    files with the CAA document generator. (CAA is an internal software
    development tool). The result is a single chapter which can be
    included e.g. in a functional specification. To see how the contents
    part would look like for different flavours of the (query language
    driven) generated SDML file, I created a profile so I didn't need to edit
    the generated SDML file each time to include the <contents_file>
    tag.
    
    My obvious fault was to use the same file name for the profile file
    and the chapter file. Is it documented somewhere that a different
    file *type* is not sufficient for DOCUMENT to keep the files apart?
    
    Anyway, thanks a lot -
    Hans.
847.4good point...VAXUUM::KOHLBRENNERTue Aug 25 1987 10:3814
    No, we do not make a point of saying that the individual files
    that go into a book should differ in the filename portion of
    their filespecs.  
    
    I suppose it would be reasonable for someone to name the chapters
    of their book BOOK.1, BOOK.2, BOOK.3, etc, and the profile
    BOOK.PROFILE.
    
    We would generate a BOOK.TEX file for the profile and a BOOK.TEX
    file for each of the chapters!    
    
    Hmmmm.  Back to the drawing boards...
    
    bill
847.5It always seems so obvious, in retrospect.VAXUUM::CORMANTue Aug 25 1987 13:2315
>    Is it documented somewhere that a different
>    file *type* is not sufficient for DOCUMENT to keep the files apart?

    No, I believe that it's not specifically documented like that. The
    User Manual shows several examples of how to create profiles, and
    mentions that you should name the profile with any name that indicates
    it is a profile (with an .SDML extension).  Now that you've pointed
    out the oversite, it's obvious that we need to add a big note that
    the profile needs a separate name from the source file(s). I'll
    make sure to add it for next time. Thanks for pointing it out; 
    other users might get tripped up by that problem too. 
    
    -Barbara
    
    
847.6/CONTENTS as default when <contents_file> is used ?UNTADA::CAAHANSHans Bachner, ADG MunichWed Aug 26 1987 13:4720
    BTW, meantime I discovered that I only need the /CONTENTS qualifier
    to get the contents printed - the only difference is that they are
    printed after the 'meat' if I don't specify the <contens_file> tag
    either in front matter or profile. As I only want to check the results,
    this works fine for me.
    
    I apparently was somewhat puzzled concerning the relationship of
    the qualifier and the tag - the other day I found that the
    <contents_file> tag wouldn't work properly without the qualifier,
    so I was pretty sure it wouldn't also work with the qualifier used
    but the tag not...
    
    Would it be possible for DOCUMENT in a future release to assume
    the presence of the /CONTENTS qualifier if it finds the <contents_file>
    tag ? (And maybe print an informational message stating so instead
    of telling the user that some old contents file - if present - will
    be used ?)
    
    Anyway, thanks for your support,
    Hans.
847.7/CONTENTS works the way we designed it.VAXUUM::PELTZ�lvynstar Dun�dainThu Aug 27 1987 12:5847
Re: < Note 847.6 by UNTADA::CAAHANS "Hans Bachner, ADG Munich" >

>    to get the contents printed - the only difference is that they are
>    printed after the 'meat' if I don't specify the <contens_file> tag
         
         The contents is printed after the 'meat' since the meat
         is in a different file from the contents file, if you
         want your contents in a specific place use the
         <contents_file> tag in your source, and put it where you
         want your table of contents.
             
>    I apparently was somewhat puzzled concerning the relationship of
>    the qualifier and the tag - the other day I found that the
>    <contents_file> tag wouldn't work properly without the qualifier,
>    so I was pretty sure it wouldn't also work with the qualifier used
>    but the tag not...
         
         It does work properly, you just get some extra messages
         which tell you that you have a <contents_file> tag but
         didn't specify /CONTENTS.   And since you didn't run with
         /CONTENTS document didn't make an index, as you requested
         from the command line.  Get an up to date V1.0 User manual
         and read up on the relationship between /CONTENTS and
         the <contents_file> tag.  I think you will understand.
             
>    Would it be possible for DOCUMENT in a future release to assume
>    the presence of the /CONTENTS qualifier if it finds the <contents_file>
>    tag ? (And maybe print an informational message stating so instead
>    of telling the user that some old contents file - if present - will
>    be used ?)
         
         This would be an unacceptable behaviour, if you didn't
         /CONTENTS on the command line it means you don't want
         a contents file generated, nor printed.  And you especially
         don't want a contents file from a past version, after
         all it very well might be out of date and including that
         file would be WRONG.
         
         This problems has been long thought out, and we believe
         we have come to an acceptable solution.
         
         Besides, this problem belongs in a new note.
         
         Chris