home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / text / frame / 2440 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.8 KB  |  52 lines

  1. Newsgroups: comp.text.frame
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!odin!mahakala.corp.sgi.com!clarke
  3. From: clarke@mahakala.corp.sgi.com (David Clarke)
  4. Subject: Two columns, one flow
  5. Message-ID: <1992Jul23.162546.4342@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: mahakala.corp.sgi.com
  8. Organization: Silicon Graphics, Inc., Mountain View, CA, USA
  9. Date: Thu, 23 Jul 1992 16:25:46 GMT
  10. Lines: 40
  11.  
  12. NOTE:  this should be interesting to anyone following the troff vs frame discussion.
  13. I believe this may be one area where troff has a better answer.
  14.  
  15. --------------------------------------------------------------
  16.  
  17. One of the templates we use has figures in a side column to the left of the main
  18. text flow.  The figure and the caption are in frames that are anchored to the main
  19. text flow.  I've set up the autonumbering so that in-line and side bar figures number
  20. sequentially.  So far, so good.
  21.  
  22. Now we're trying to translate our docs into SGML.  I figured that the side figures wouldn't
  23. pose a problem.  If Frame is smart enough to recognize a sequence of autonumbered para-
  24. graphs, then it ought to contain enough info to place the text from those paragraphs in 
  25. sequence in the MIF file and we could just pick up the text as part of the main flow.  The 
  26. problem is that the side figure captions don't pass through because they're not part of the 
  27. main text flow.  The *anchors* are, but the *text* is not.  Just for laughs, I tried to ouput
  28. to ASCII, using Save As to see where these side captions showed up.  They came out at the 
  29. head of the file, autonumbers and all.
  30.  
  31. So the problem now is to find a way to integrate these side captions into the main text flow,
  32. without involving alot of hand work.  My best try so far is to place the caption following
  33. the paragraph I want it to appear next to.  Then I apply a FigTitleMargin paratag that
  34. moves the text beyond the left margin of the main flow and gives it a huge negative
  35. Space Above. For the "preceding" paragraph, I change the Space Below to a negative 
  36. number based on the number of lines in the caption (-11pts per line).  This puts the 
  37. last lines of the two paragraphs in the same vertical position.
  38.  
  39. I can set the default Space Above for FigTitleMargin to something like -100pts, so that
  40. the space between the two paragraphs is governed by the Space Below of the preceding
  41. paragraph.  The problem is that I have to set the Space Below for this preceding paragraph
  42. based on the number of lines in the caption, and no matter what I set it to it varies from the 
  43. default for that tag so when I apply a Use Formats I'd lose that custom spacing.
  44.  
  45. Has anyone come up with a better way to do this using *one* flow?  I'd really like something
  46. that would avoid custom tagging and just use defaults of standard template tags.
  47.  
  48. -----------------
  49. David Clarke
  50. Production Editor
  51. clarke@corp.sgi.com
  52.