Article View: comp.text.tex
Article #11032Help needed with spacing
From: Charles Lin
Date: Thu, 07 Jan 1993 22:36
Date: Thu, 07 Jan 1993 22:36
42 lines
1796 bytes
1796 bytes
I am trying to print a line, such as a section heading in TeX, but
I want to control the amount of space afterwards. For example,
\leftline{Summary of Stuff}
\vspace{2cm}
some text here.
The effect that I am looking for is that the baseline of the left line, and
the baseline of the first line of text should be 2 cm apart. Right now, it
appears to be doing something like this. When it sees \vspace, TeX automatically
ends the leftline as a paragraph, inserts \parskip worth of vertical space, then
puts 2 more cm of space. I would like a macro like
\sect#1#2
and use it like \sect{Summary of Stuff}{2cm}
where it will place approximate 2 cm of space between the
section heading and the first paragraph. This will look like
Example:
Summary of Stuff __________
|
| baselines are 2cm + \baselineskip apart
I am summing up ___|_______
\sect{Summary of Stuff}{0cm} will make the lines \baselineskip apart.
Example:
Summary of Stuff -----------
| baselines are \baselineskip apart
I am summing up ______|____
I would prefer e-mail responses, but will look out for posted responses.
Send responses to clin@eng.umd.edu. Thanks in advance.
--
Charles Lin
clin@eng.umd.edu
Technical Details
Message-ID:
<1993Jan07.223650.12426@eng.umd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!mojo.eng.umd.edu!clinShow Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!mojo.eng.umd.edu!clin From: clin@eng.umd.edu (Charles Lin) Subject: Help needed with spacing Message-ID: <1993Jan07.223650.12426@eng.umd.edu> Date: Thu, 07 Jan 93 22:36:50 GMT Organization: College of Engineering, Maryversity von Uniland, College Park Sender: clin@eng.umd.edu (Charles C. Lin) Originator: clin@signal.eng.umd.edu Lines: 42