[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

610.0. "ok I give up..." by DELNI::COLELLO () Wed Jul 08 1987 10:59

Objective:

To have book title as running folio after doing a book build.

Problem:

The \xdef\titletext{#1} and \titletext{#2} are being put into the same
\hbox as one entity with NO kerning in between them.
__________________________
My .gnc code:

<title>(DECnet/SNA Gateway\Management Guide)

Here is my \titlepagetitle macro.  
%
\newdimen\titlerightadjust\titlerightadjust=0pc%shift right margin in for titles
\def\titlepagetitle#1#2{\par%#3#4{\par 
   \advance\hsize by -\titlerightadjust
   \vbox{%
    \titlefontspecs
     \vskipbb{8pc}\rrag\block{1}%
\if 0#1\else #1\xdef\titletext{#1}\fi 
    \if 0#2\else 
      \newline #2\xdef\titletext{{\titletext{#1}}\kern4pt #2}\fi  
   }
   \advance\hsize by \titlerightadjust
\vskipbb{2pc} 
}
% End titlepage 

Why does it treat #1 as \titlepagetitle{0} in my .tex file? 

\begintexinput
\frontmatter
\starttitlepage
\titlepagetitle{0}%
{NaC Software Design\newline Sample Output}
\abstract{Field Test Draft}
This is a sample output for the NaC Software design. It is intented to used as
a visual guide on how the design for software documentation within NaC will
look when using the Nac\_soft doctype.
\endabstract
\titlepagesysteminfo{Revision{\slash}Update Information:}{This is a new manual.}
\titlepagesysteminfo{Operating System and Version:}{\vaxvms{vaxvms} Version 4.4 or later}
\titlepagesysteminfo{Software Version:}{DECnet{\slash}SNA VMS Gateway Management Version 2.0}
\endtitlepage{0}

On my title page my 2 parameters are formatted fine, but my running folio 
after a book build gives me this output:

1-2                          0  DECnet/SNA GatewayManagement Guide

With the following outputroutine macro:

\setrightfooter{% 
       \CHtext\kern 1em{\foliofont \hss\sdmlfolios}}%\fi

    \setleftfooter{% 
       \sdmlfolios\kern 1em {\foliofont \hfill\titletext} }

frustration.....

Thanks,
Bette JEan
T.RTitleUserPersonal
Name
DateLines
610.1Another approach?BUNSUP::LITTLETodd Little NJCD SWS 323-4475Fri Jul 10 1987 00:5616
    I think part of your problem is in the definition of the <TITLE> you
    are using.  The standard definition of <TITLE> accepts 3 arguments but
    places all three arguments into the second argument to the
    \titlepagetitle macro seperated by \newline.  The first argument to the
    \titlepagetitle macro is the "product name" as defined by the <PRODUCT>
    tag.  
    
    I suspect you could either replace the <TITLE> tag with one that does
    what you seem to be expecting it to do, or instead, you might be able
    to only use the second argument to the \titlepagetitle macro and inside
    you're xdef, you could possibly redefine \newline to be a kern,
    although I've never tried it.  You might need to make sure the xdef'd
    contents are properly "grouped" so as not to cause \newline to fail
    in other places.
    
    -tl
610.2\titlepagetitleDELNI::COLELLOWed Jul 22 1987 13:439
    Thanks for your input Todd.  I ended up defining my <product> tag
    to be nothing and with the help of L.S. wrote a new \titlepagetitle
    macro to check and see if there was an argument and then if there
    was an argument do a \newline.  We also \xdef\titletext{#1 #2 #3}
    so that if they were all there, they would be expanded upon a book
    build when \titletext appeared in a folio macro.  Phew!
    
    This of course is specific to a particular design.
    Bette Jean