home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / text / tex / 9433 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  2.1 KB

  1. Path: sparky!uunet!mcsun!ieunet!ul.ie!kennedyj
  2. From: kennedyj@ul.ie (Nonar the Insane)
  3. Newsgroups: comp.text.tex
  4. Subject: How to define this environment ?
  5. Message-ID: <19398.2a6d7ac3@ul.ie>
  6. Date: 22 Jul 92 15:12:03 GMT
  7. Organization: Jaglan Beta
  8. Lines: 50
  9.  
  10.  
  11. Hello there ...
  12.  
  13. I have been trying (unsuccessfully) to do the following in Latex and was
  14. wondering if anybody could help me ...
  15.  
  16. I would like to be able to define an environment or command (or something :-))
  17. that would take a sentence (maybe as the first parameter) and split it up to
  18. fit into a particular width. It would then take the Information associated
  19. with the sentence (as the second parameter?) and format it within the available
  20. width left (with a slight space between the sentence and the information).
  21.  
  22. For Example:
  23.  
  24. \item[This should be left justifi...]
  25. This should be done as normal...
  26.  
  27. \item[This is the second item]
  28. This is the second items desc...
  29.  
  30. would result in the following
  31.  
  32. This should   This should be  done as normal for a page
  33. be left       and cd ncdscnd ndfnvjdfnvjkndf jvndfdvf v
  34. justified     fv fdnfdn vdfvdfvdfjkndfjkvn jdfnv dfjnvv
  35. over here     vnfjnvd fjkvndj fvndfjn  jdfnvjd fnvjvn n
  36.               fvndj nvndf jkdfjkvjkdfvjk njvnfj fjvnvnv
  37.               fkmvklvdfmvkdfm dfkvmvcvc,mv,cxm .,xcmv x
  38.  
  39. This is the   This  is  the  second  items  description
  40. second item   which djcnsdjn cjksdncn sdjknc sdjcn sdjd
  41.               cccds ds, every Tuesday ate three burgers
  42.               at about Three O'Clock ?
  43.  
  44. <----------------- \textwidth ------------------------>
  45.  
  46.  
  47. I apologise if I have not been very specific, but I can't figure it out
  48. at all ...
  49.  
  50. I would greatly appreciate any help on this ...
  51.  
  52. Thanks in advance,
  53. --
  54. Jim Kennedy                |  Mr. Postman look and see                 |
  55. Software Specialist        |  If there's a message in your bag for me  |
  56. University of Limerick     |  Could be a bomb or could be a letter     |
  57. Ireland                    |  It dont matter it can only get better    |
  58.                            |                                           |
  59. Email: kennedyj@ul.ie      |  -- World Party, When the Rainbow Comes   |
  60.