home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14720 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.7 KB  |  54 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!mojo.eng.umd.edu!clin
  3. From: clin@eng.umd.edu (Charles Lin)
  4. Subject: Help needed with spacing
  5. Message-ID: <1993Jan07.223650.12426@eng.umd.edu>
  6. Date: Thu, 07 Jan 93 22:36:50 GMT
  7. Organization: College of Engineering, Maryversity von Uniland, College Park
  8. Sender: clin@eng.umd.edu (Charles C. Lin)
  9. Originator: clin@signal.eng.umd.edu
  10. Lines: 42
  11.  
  12.  
  13.    I am trying to print a line, such as a section heading in TeX, but
  14. I want to control the amount of space afterwards.   For example,
  15.  
  16. \leftline{Summary of Stuff}
  17. \vspace{2cm}
  18. some text here.
  19.  
  20.     The effect that I am looking for is that the baseline of the left line, and
  21. the baseline of the first line of text should be 2 cm apart.  Right now, it
  22. appears to be doing something like this.  When it sees \vspace, TeX automatically
  23. ends the leftline as a paragraph, inserts \parskip worth of vertical space, then
  24. puts 2 more cm of space.   I would like a macro like
  25.  
  26. \sect#1#2
  27.  
  28. and use it like \sect{Summary of Stuff}{2cm}
  29. where it will place approximate 2 cm of space between the
  30. section heading and the first paragraph.   This will look like
  31.  
  32. Example:
  33.  
  34. Summary of Stuff        __________
  35.                            |
  36.                            |   baselines are 2cm + \baselineskip apart
  37.    I am summing up      ___|_______
  38.   
  39. \sect{Summary of Stuff}{0cm} will make the lines \baselineskip apart.
  40.  
  41. Example:
  42.  
  43. Summary of Stuff         -----------
  44.                                |  baselines are \baselineskip apart
  45.    I am summing up       ______|____
  46.  
  47.  
  48.    I would prefer e-mail responses, but will look out for posted responses.
  49. Send responses to clin@eng.umd.edu.  Thanks in advance.
  50.  
  51. --
  52. Charles Lin
  53. clin@eng.umd.edu
  54.