[comp.text.tex] beautify TeX code...

NABTEXM@TAMZEUS.BITNET (Neil Burleson --- Assistant User Services Coordinator) (05/16/91)

 
 
>TeX doesn't do what I want:
>
>\font\cs=cmr12 \cs
>
>a paragraph % I want a regular parskip
>
>\parindent=8 mm \parskip= 0 mm
>% I don't want a regular parskip
>\item{[1]} a
>\item{[2]} short
>\item{[3]} list
>% I want go back to regular parskip
>\parindent=0mm \parskip=3pt plus1pt minus .5pt
>
>another paragraph
>\end
 
I think grouping braces would be in order here, to set off groups
one from another.
 
\parskip=xmm\parindent=xxpt
 
1st paragraph
\par          % make sure this paragraph is closed before changing
              % \parskip. A \par or vertical glue is sufficient.
{\parskip=ymm
 
New info: A list, another paragraph, or whatever.
 
\smallskip    % again to close the paragraph. A \par would have worked
}             % as well.
 
%Old value of \parskip automatically takes effect here
 
Next paragraph.
 
----------------------------------------------------------------------
 
I believe the problem you were having is TeX likes to see a closed
paragraph before any of the pargraph-type tokens are changed. The
above should work without any problems.
 
The {} also help structure TeX files and make them more readable.
 
------------------------------------------------------------------------------
Neil Burleson                        BITNet: NABTEXM@TAMSUMMA (soon: TAMACS)
Assist. User Services Coordinator    Internet: nabtexm@summa.tamu.edu
Academic Computing Services          THEnet: ACS::NABTEXM
Texas A&M University              U.S. mail: 3902 College Main #508
ph: 845-8415, 845-5951                       Bryan, TX 77801
-----------------------------------------------------------------------------