[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

527.0. "<INCLUDE_TEX_FILE> alignment problem" by CARLIN::LAMBERT (There must be higher love...) Thu Jun 18 1987 18:51

help!

DOCUMENT is shifting all my .TEX files to the left side of the page!
here's an example from my .GNC

<P>
<FIGURE>(RSCP ACK Message Format\RSCP_ACK_MSG_FMT)
<FIGURE_ATTRIBUTES>(KEEP)
<CONDITION>(LASER)
<INCLUDE_TEX_FILE>(RSCP_ACK_MSG_FMT.TEX)
<ENDCONDITION>
<CONDITION>(LINE)
<INCLUDE_TEX_FILE>(RSCP_ACK_MSG_FMT.PMD)
<ENDCONDITION>
<ENDFIGURE>

here's the .PMD

+-----+-----+-----+-----+-----+-----+----------+
| ENQ | TYP | RSN | PRV | --- | --- |   CRC1   |
+-----+-----+-----+-----+-----+-----+----------+

here's the .TEX

\vbox{\font\amgr=AMGR at 10truept\baselineskip0.1466667truein\lineskiplimit-\maxdimen
\catcode`\-=\active\catcode`\~=\active\def~{{\char32}}\def-{{\char1}}%
\hbox{\amgr {\char2}-----{\char18}-----{\char18}-----{\char18}-----{\char18}-----{\char18}-----{\char18}----------{\char3}%
}
\hbox{\amgr {\char0}~ENQ~{\char0}~TYP~{\char0}~RSN~{\char0}~PRV~{\char0}~---~{\char0}~---~{\char0}~~~CRC1~~~{\char0}%
}
\hbox{\amgr {\char5}-----{\char17}-----{\char17}-----{\char17}-----{\char17}-----{\char17}-----{\char17}----------{\char4}%
}}

Here's the DCL i use to make the document:

$ DOCUMENT/BATCH/PRINT/COND=LASER filename SOFTWARE LN03

And here's what it looks like from the LN03...

                      Figure 1-4   RSCP ACK Message Format
                      ---------------------------------------------------------
+-----+-----+-----+-----+-----+-----+----------+
| ENQ | TYP | RSN | PRV | --- | --- |   CRC1   |
+-----+-----+-----+-----+-----+-----+----------+
                      ---------------------------------------------------------


What can i do to get it over on the right where i want it?

-bob lambert-
T.RTitleUserPersonal
Name
DateLines
527.1.tex files not auto-centeredCOOKIE::JOHNSTONFri Jun 19 1987 11:5833
It's been my experience that DOCUMENT does not automatically center .tex 
files.  The easiest way to fix the problem is to simply add the 
necessary hard spaces in your .pmd file, and reprocess with picmode.  
It might take you several passes to get it right.

Now, a question for you.  I'm curious as to why you used an 
<include_tex_file> tag to include the .pmd file, rather than the 
<include> tag which is probably more appropriate for "markup" purposes.

The code I would use would look like this:

<figure>

<condition>(laser)
<include_tex_file>(file)
<endcondition>

<condition>(line)
<line_art>
<include>(file.pmd)
<endline_art>
<endcondition>

<endfigure>


Does using <include_tex_file>(file.pmd) let you get around using 
<line_art> as I do?


Thanx

Rose
527.2oops!ZEPPO::LAMBERTThere must be higher love...Tue Jun 23 1987 16:3419
>Now, a question for you.  I'm curious as to why you used an 
><include_tex_file> tag to include the .pmd file, rather than the 
><include> tag which is probably more appropriate for "markup" purposes.

oops, just a mistake in my code example, sorry...

actually i just use an <include>(file.PMD) w/o the <line_art>

but...  sometimes i run into trouble because of the "<" and ">" characters
in the .PMD, does using the <line_art> tag fix this problem?

lastly, what is a "markup" purpose?

-max-

p.s.  hardcoding space into the .PMD might work but it seems to be an awkward
solution.  shouldn't any file that's included get aligned according to the
current settings?

527.3Brief answers to your questions and in my opinion...COOKIE::JOHNSTONTue Jun 23 1987 17:1564
>>> but...  sometimes i run into trouble because of the "<" and ">" 
>>> characters in the .PMD, does using the <line_art> tag fix this problem?

  Yes, <line_art> will resolve that problem for you.


>>> lastly, what is a "markup" purpose?

    SDML is an acronym for Standardized Document Markup Language, or
    something real close to that.  It should be described somewhere in
    the documentation; probably the UG1 or the Step-By-Step.

    The "markup" in the language refers to using tags to label a 
    particular text element with its proper name.  Consider the tags
    <emphasis>, <new_term>, and <gref>.  They have essentially the same
    behavior for final output, italicizing the tag argument (in most 
    doctypes). 

    You would use <emphasis> to mark words that you
    want to stress because the idea or concept they present to the
    reader are important, such as <emphasis>(warning).

    You would use <new_term> tag to mark words that are being 
    introduced to the reader for the first time, such as 
    <new_term>(hierarchical database).

    And you would use <gref> to mark words that will appear in the
    glossary, such as <gref>(cardinality).  Obviously you get
    into a problem when you want to include a <new_term> in the
    glossary (do you mark it <gref> instead?) -- but that's another
    subject for another note if it ever bothers me enough to get
    on a soapbox!

    The "markup" is transparent to the reader for final output; the 
    good philosophy behind it becomes apparent when you have many people
    working on many parts of the same document or of the same
    document set.  

    Patti or any of the other developers/documenters are welcome to 
    qualify or add to anything I've written here; I know they have
    tried very hard to stress the concept of a "markup" language.

>>> p.s.  hardcoding space into the .PMD might work but it 
>>> seems to be an awkward solution.  shouldn't any file that's 
>>> included get aligned according to the current settings?

     Well, picmode is an unsupported tool.  Patti has stated that
     there are no plans to support it, though she has also stated
     that they won't deliberately do anything to make it unusable.

     So, for the .tex file to get centered correctly you need to 
     hard code the spacing in the .pmd file.  Code it in one place,
     get it in both.

     But it does bring up an interesting question: what about plain
     old text files used with <line_art> and not depending on any
     unsupported tools?  Should we have auto centering for these
     cases?  Someone correct me if I'm wrong, but I think that
     <figure_file> centers sixels; it's just the top and bottom that
     have to be fiddled with.



Rose