cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

display image(graphic) side-by-side

julie.t.yu
1-Newbie

display image(graphic) side-by-side

adapters,
Can someone tell me is there anyway I can display the images
side-by-side, I had try the fosi, but it doesn't seem to kept my image
together.


Julie T. Yu
Software Engineer
(703)676-4191
SAIC, Applied Content Technologies Division
julie.t.yu@saic.com
http://www.xml.saic.com <http: www.xml.saic.com="/>


10 REPLIES 10

- you habe to set the image as block
- then adjust the indent so that the images can be place side by side
- then use side by side text alignment

cu Dirk

I haven't tried setting up two graphics like this, but I think side-by-side is the key. Try looking into the archives for "algroup" and you should generate many hits.

You could try setting up your data something like this:
<wrapper>
<graphic>
<graphic>
</wrapper>

If you set the each graphic element-in-context, context of wrapper and paying attention to occurrence(first and notfirst), to side-by-side. Set align to top and define necessary column widths using indent for each e-i-c and you should be able to get it with some trial and error.

We've got a similar construct for procedures that looks sorta like:
<procedure>
<graphic>
<orderedlist>
</procedure>

Our model aligns the graphic and the ordered list at the top and side-by-side works okay. The graphic is set to scale to fit its defined algroup column.

Note that graphic elements have no content as they are file or entity references essentially. This aspect can present difficulty for side-by-side alignment.

Hope this helps,
Jason

>>> JULIE.T.YU@saic.com 03/14/02 11:19AM >>>
adapters,
Can someone tell me is there anyway I can display the images
side-by-side, I had try the fosi, but it doesn't seem to kept my image
together.


Julie T. Yu
Software Engineer
(703)676-4191
SAIC, Applied Content Technologies Division


We've had problems doing this. Pending the right solution, you can fix the
problem on a case-by-case basis by putting the graphics in a single row, two
cell table.


Thank you for your info, but each of my graphic need to have title and
caption display under it, so how do I still kept the graphic next to each
other and the title under each of the graphic.

Julie

Julie-
You could place the graphics in columns. I have used this on my projects.
You can tell the graphics to use the two column layout and the text to use a
one layout. This might be something to try.

Kim

You did not tell us if you neet it for Editor or composed view.

For Editor view you must use a two columns table and put each graphic/caption
in a cell.

For composed view there are, at least, 3 solutions:
1) use algroup
2) use a two columns page layout
3) use a table

In all cases and depending on your data structure you will have to write tricky
ACL code or (this is always my advise in case of batch formatting) preprocess
your source to transform it to a structure that is suitable to your layout
requirement (you could use XSLT, OmniMark, ACL, Perl, Python ...).

Be aware that, using a FOSI, it is very rare that a storage/exchange structure
is suitable to a complex formatting output spec.

> Thank you for your info, but each of my graphic need to have title and
> caption display under it, so how do I still kept the graphic next to each
> other and the title under each of the graphic.
>
> Julie
>

I need to have my graphic to display side by side in Editor view, I can
create a XSL stylesheet to solve my compose view. I know table can slove the
problem, but base on our DTD, table are not valid at the point. when insert
graphic first time, it had to be in the center, then if there is a second
one or third graphic, then they have to be display side by side in the
center and their title is right below to each of the graphic.
I had try the column, it kinder working but maybe I still doing something
wrong in the FOSI. Thanks for you all's info.

Julie Yu


There is only a subset of FOSI characteristics that are supported in Edit
window.

It is not possible to display element side-by-side without using a table
because multicolumn page layout and algroup, among others, are not supported
for screen FOSI.

I can't remember where to find the compatibility table in the online help.

> I need to have my graphic to display side by side in Editor view, I can
> create a XSL stylesheet to solve my compose view. I know table can slove the
> problem, but base on our DTD, table are not valid at the point. when insert
> graphic first time, it had to be in the center, then if there is a second
> one or third graphic, then they have to be display side by side in the
> center and their title is right below to each of the graphic.
> I had try the column, it kinder working but maybe I still doing something
> wrong in the FOSI. Thanks for you all's info.
>
> Julie Yu
>

I think this reference is to the topic "Formatting support tables -
overview". This is in the online help at FOSIs|features available
in|summary. Or if you have a command line up, type "help 5869" as this
is the help topic number. If you have a topic up in online help on
Windows, you can figure out the help topic number by doing a view
source in the help viewer which will show you the HTML source for the
topic. The first tag after the will have a name like
"helpXXXX" where XXXX is the help topic number. Of course if yo...












Ed, it's 11PM on Saturday and I'm partying again :).

Now to the issue at hand. In the e-i-c for your graphic, make sure you
don't have a textbrk with a start or endline set to 1. Also depending on
the attributes you have available for your graphic, you may be able to
specify the location for the graphic.

In the FOSI, you can (depending on the size of the graphic) specify location
for the first, last and other graphics.

On the down side, I've been trying to get a good "fix" on multiple graphics
in a line. Sometimes the FOSI works and other times it doesn't.

Here are a couple of examples to look at. These are for the graphic and not
the caption, etc.

<e-i-c gi="graphic" occur="only">
<charlist>

<indent leftind="0" firstln="0">
<quadding quad="center" lastquad="lcenter">
<presp minimum="3pt" nominal="4pt" maximum="6pt" priority="high">
<textbrk startpg="off" startln="1" endln="1"></charlist>
<att>
<specval attname="hplace" attval="right">
<charsubset>
<quadding quad="right" lastquad="lright"></charsubset>
</att>
<att>
<specval attname="hplace" attval="left">
<charsubset>
<quadding quad="left" lastquad="lleft"></charsubset>
</att>
<att>
<specval attname="graphsty" attval="end">
<charsubset>
<textbrk endln="1"></charsubset>
</att>
</e-i-c>
<e-i-c gi="graphic" context="figure" occur="only">
<charlist>

<indent leftind="0" firstln="0">
<quadding quad="center" lastquad="lcenter">
<presp minimum="3pt" nominal="4pt" maximum="6pt" priority="high">
<textbrk startpg="off" startln="1" endln="1"></charlist>
<att>
<specval attname="hplace" attval="right">
<charsubset>
<quadding quad="right" lastquad="lright"></charsubset>
</att>
<att>
<specval attname="hplace" attval="left">
<charsubset>
<quadding quad="left" lastquad="lleft"></charsubset>
</att>
<att>
<specval attname="graphsty" attval="end">
<charsubset>
<textbrk endln="1"></charsubset>
</att>
</e-i-c>

This works for both the output on screen and paper. The screen display may
be limited (as pointed out in another response, but depending on screen
availablity FOSI settings and graphic sizes you can have the graphics appear
side by side.

Hope this helps a bit.

Lynn E. Hales
Information Technology Consultant
lhales@csc.com
(757) 262-3495
Announcements