John,
> I've done some more experimentation and can now give a better
> description of the problem. I have attached a test-case, which hopefully
> won't be removed by the list.
> I've been playing around with changing the BoundingBox and
> PageBoundingBox by hand (ie text editor) and find that `latex && dvipdf`
> between them don't appear to pay much attention to the bounding box or
> pageboundingbox. I haven't managed to crop the image by reducing them and
> I can't make it move around by changing the left-most limit of either
> bounding box. It seems that somewhere along the lines the bounding box
> is re-calculated, which isn't going to help with the text alignment. A
> white background on a white page doesn't help with this either!
> On to the attached test case. I've included a Makefile so it should be
> easy to generate a pdf of all of this.
>
> I have created 4 simple diagrams and included them in a latex document.
> 1. Automatically created bounding box with no latex text
> 2. Automatically created bounding box with latex text. This figure ends
> up off-centre because the original latex string is wider than the
> square. (This is the original problem I found and am trying to work
> around by setting the bounding box manually)
> 3. Manual bounding box with no latex text
> 4. Manual bounding box with latex text. In this case the figure ends up
> centred but the latex text is in the wrong place. The
> PageBoundingBox width and the latex parbox are of equivalent width
> (wider than fig 3.) but it looks like the tex and eps files are
> using a different origin.
I chose a slightly different solution, which was to leave the parbox
width alone, and instead adjust the position of the text based on the
manually-specified bounding box. This does not correct for the width
of the string in xcircuit itself, so when recompiling your example
with the corrected xcircuit, your examples (1) and (2) still come out
wrong, but (3) and (4) are correct.
The alternative solution would be to have xcircuit recompute its
bounding box while ignoring all LaTeX strings, but that could cause
problems if there were only LaTeX strings in the drawing, giving it
zero dimensions. The solution I have chosen gives you a way to
manipulate the figures as you want, which hopefully is good enough
for you.
I have submitted the corrections to the CVS database, and the new
distribution will be compiled automatically tonight.
Thanks for providing such detailed information with examples; it
really helped me get to the bottom of the problem quickly. The few
days of delay (well, okay, almost a week) on this end were due solely
to having a chip tape-out deadline yesterday.
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev