[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

713.0. "Modifying horizontal position of Examples?" by PSYCHE::GRANT (I've saved $948.00 since I quit smoking.) Mon Jul 27 1987 15:09

I've been trying to move examples horizontally on the page.  When I modify the
\codexampleindent in the .DESIGN file, nothing happens.  The problem is that
the examples aren't aligned with the text.  Here is what we would like it to
look like:
*****************************************************************

1.1.1 First Header

      Text........
      etc.......

      1  KA------ here's the example with callouts....
         more stuff in the example
                .
                .
                .
      Last line of the example

      Example 1-1  Example caption goes here

      More text........etc

*****************************************************************

What we're getting is:

1.1.1 First Header

      Text........
      etc.......

1  KA------ here's the example with callouts....
more stuff in the example
            .
            .
            .
Last line of the example

      Example 1-1  Example caption goes here

      More text........etc

*****************************************************************

I've tried \codexampleindent=\gutterwidth and equal to various multiples of
blockindent and nothings seems to have any effect on the horizontal position
of the example.

By the way, \gutterwidth=3.0pc and \blockindent=2.0pc.

Anyone have any ideas?
T.RTitleUserPersonal
Name
DateLines
713.1Try theseCLOSET::SEGALMon Jul 27 1987 17:0214
    You need to modify design parameters for numbered examples (\numex...).
    Settings used by TEX$S_HANDBOOK.DESIGN seem very close to your
    design requirements (numbers and text at the text margin rather
    than hanging left, into the gutter). Try these for starters:
    
    %
    \numexmargin=0pc                      % don't put examples in gutter
    \numexboxwd=\blockindent              % allow this much space for numbers
    \def\numexblockindent{1}              % start nums and/or code part here
    \def\numexplainindent{1}              % start text here
                                        
    Lee
    
                                                                          
713.2Still doesn't work....PSYCHE::GRANTI've saved $951.00 since I quit smoking.Wed Jul 29 1987 09:302
Thanks for the reply Lee.  I tried it and it didn't work.  I'm still stumped. 
I'll keep trying, but I sure could use some help on this one.
713.3More info pleaseVAXUUM::SEGALWed Jul 29 1987 10:152
    What doctype are you using as a basis for your design?
    How are you adding the code I provided?
713.4More info....PSYCHE::GRANTI've saved $951.00 since I quit smoking.Wed Jul 29 1987 12:2755
The doctype (I inherited) is based on the old VMSREF doctype.  It uses 
TAG$SOFTWARE for tag definitions and TEX$STANDARD_FONTS.  Here's what the
codexample and numex code looks like now.  I've been trying all sorts of
combinations with no luck.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set font and parameter values for code examples
%
\let\codexamplefont=\ninepointmono    % for code example text 
\precodexamplevskip=20pt 
\postcodexamplevskip=24pt
\codexampleindent=\gutterwidth
\let\codexampleintextfont=\ninepointmono
\asisinterlinepenalty=5000           % tolerance for page breaking


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Numbered examples
%
\def\numberedexamplehead#1#2{%
   \ifreferencecontext
      \hungexheadone{#1}%
    \else
      \subheadone{0}{#1}%
      \paravskiptrue                % set this vskip
    \fi
}
% 
% \numberedexintro redefined to undo the effects of \hunexheadone (which
%  exists to make sure that space is output correctly before the first
%  numbered example.
\gdef\numberedexintro#1{%
    \ifreferencecontext
      \kern-\baselineskip\block{#1}%undo hungexheadone
    \else\paragraph{1}\fi
}
\prenumexamplevskip=14pt
\postnumexamplevskip=20pt
%\numexmargin=\gutterwidth
    \numexmargin=4.0pc                      % don't put examples in gutter
    \numexboxwd=\blockindent              % allow this much space for numbers
    \def\numexblockindent{2}              % start nums and/or code part here
    \def\numexplainindent{2}              % start text here

%

As you can see, I've been playing around with what you gave me.  I have yet to
see any change in my output.

If you'd like, send me mail, I can make the .DESIGN file and a test .SDML
file available.

	Thanks again....

		Wayne
713.5\WIDE really means WIDE....PSYCHE::GRANTI've saved $984.00 since I quit smoking.Thu Aug 20 1987 13:237
Thanks for the help Lee, Patti....  

To let others know what happened, it turned out the the \WIDE attribute had 
been used in the .SDML file.  This overrode all the changes I was trying to
handle in the .DESIGN file.  All is OK now.

	Wayne