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